IsPostBack for ASP

  • Thread starter Thread starter Seb
  • Start date Start date
S

Seb

Hello,

Is there the IsPostBack command in ASP (not ASP.net) ?
Or How can I detect a refresh in a ASP page ?


Thanks

Sebastien
 
No, and can't remember for the life of me.


try the microsoft.public.inetserver.asp.general newsgroups, someone in there
may know.
 
Is there the IsPostBack command in ASP (not ASP.net) ?
Or How can I detect a refresh in a ASP page ?

You're in the wrong newsgroup - this one if for ASP.NET...

For ASP Classic questions, please post in
microsoft.public.inetserver.asp.general
 
<%@ language="javascript" %>
<%
if (Request.Form["isPostback"] != null) Response.Write('postback');
%>

<form action="thispage.asp" method="get">
<input type="hidden" name="isPostback value="1" >
</form>


-- bruce (sqlwork.com)
 
Seb said:
Hello,

Is there the IsPostBack command in ASP (not ASP.net) ?
No

Or How can I detect a refresh in a ASP page ?

Check the form collection of the Request object (Request.Forms). If not a
postback, it will be empty.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
 
Back
Top