Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to verify if page is reposting or not
Message
From
21/06/2017 16:13:45
 
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
01652152
Message ID:
01652153
Views:
40
Likes (1)
>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
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform