Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW TO KNOW WHETHERA PAGE IS POSTBACK OR NOT

Status
Not open for further replies.

locationsetc

Programmer
Aug 2, 2004
16
0
0
US
hello friends,

can anyone tell me, in ASP, how do we know that a page is loaded first time or not..i mean how do we know whether a page is postback or not

please help me
thank you
 
'first time load
Request.Form.Count = 0

'postback
Request.Form.Count > 0
 
Or...

Code:
if request.form() <> "" then
  'this code executes if there is a form post
else
  'this code executes if there is no form post
end if

Hope this helps!

gtg.jpg

GTG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top