Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to verify if page is reposting or not
Message
 
 
To
21/06/2017 16:13:45
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
01652152
Message ID:
01652155
Views:
36
>>I am testing a code of using an UpdatePanel control with the code behind that validates an entry in a text box. The idea is to make the page do whatever it is supposed to do without re-posting. First I thought that it definitely works and the page is not re-posting. But then I noticed that the IE symbol on the tab of the page "jumps" or "flicks" just a tiny bit. But I am not sure. How do I verify/validate that the page is or is not reposing?
>
>If you are trying to detect a postback, this might do it:
>
>
>oProcess.oPage.IsPostBack
>
>
>...where oPage is the object reference to your page.
>
>You can also detect a post such as:
>
>
>' If this is a post
>If oRequest.ServerVariables("REQUEST_METHOD") = "POST" Then
>   lPost = True
>   Else
>   lPost = False
>End If
>
Where do I put this code? in the Page_Load method? Also, how do I instantiate the oRequest?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform