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 17:15:20
 
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
01652152
Message ID:
01652160
Views:
32
>Here is how I am testing if the page is re-posting. I put the following code in the Page_Load method:
>
>On the second thought, I think in my case the page is NOT reposting. Here is what I did to verify it (please tell me if I am correct). I put the following code in the Page_Load method of the page. And I never see the .text showing ‘reposted’.
>
>
>           if (!Page.IsPostBack)
>            {
>                OutputLabel.Text = "Just loaded the page ";
>            }
>            else
>            {
>                OutputLabel.Text = "Page Reposted ";
>            }
>
>
>And I NEVER see the text "Page Reposted" Does it mean that the flickering of the page tab is just a normal occurrence?

I wanted to verify some of that. I am adding this reference:

https://forums.asp.net/t/1416127.aspx?how+to+check+postback

You may see if this corresponds. On first look, your code appears to be ok.

However, I assume your form action method is post.
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