Hello,
Is there the IsPostBack command in ASP (not ASP.net) ?
Or How can I detect a refresh in a ASP page ?
Thanks
Sebastien
Mike - 03 Oct 2007 20:14 GMT
No, and can't remember for the life of me.
try the microsoft.public.inetserver.asp.general newsgroups, someone in there
may know.
> Hello,
>
[quoted text clipped - 4 lines]
>
> Sebastien
Mark Rae [MVP] - 03 Oct 2007 20:15 GMT
> 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

Signature
Mark Rae
ASP.NET MVP
http://www.markrae.net
bruce barker - 03 Oct 2007 21:15 GMT
<%@ 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)
> Hello,
>
[quoted text clipped - 4 lines]
>
> Sebastien
Cowboy (Gregory A. Beamer) - 03 Oct 2007 21:23 GMT
> 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.

Signature
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
*************************************************
| Think outside the box!
*************************************************