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 17:15:20
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
01652152
Message ID:
01652161
Views:
39
>>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.

Thank you.
"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
Reply
Map
View

Click here to load this message in the networking platform