?
Not even .Net's IsPostBack method can distinguish between an initial
page request and a subsequent page refresh ...
To do that, you will probably need to use a session variable to track
when the page is initially requested
Seb wrote:
> Hello
>
> Sorry but it's good to detect a POST but not to detect a refresh.
>
> Thanks
>
> Sebastien
>
>
>
> "Anthony Jones" wrote:
>
>> "Seb" <> wrote in message
>> news:4703f4e6$0$14466$...
>>> Hello,
>>>
>>> Is there the IsPostBack command in ASP (not ASP.net) ?
>>> Or How can I detect a refresh in a ASP page ?
>>>
>>>
>>> Thanks
>>>
>>> Sebastien
>>>
>>
>> Function IsPostBack()
>> IsPostBack = (Request.ServerVariables("REQUEST_METHOD") = "POST")
>> End Function
>>
>>
>>
>>
>> --
>> Anthony Jones - MVP ASP/ASP.NET
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
|