Difference Between Click and F5?

  • Thread starter Thread starter bdwise
  • Start date Start date
B

bdwise

I have a page where I detect a postback in the codebehind. But I need
to tell the difference between a postback and use pushing [F5].

How can I do that?

Thanks.
 
Check the IsPostBack property of the Page on the server side. Pressing F5
makes a fresh call for the page.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
On some of my pages, if a user uses the BACK button, they get prompted
that the page has expired and needs refreshing. What is a good way to
keep that from happening? I don't mind loading old data or whatever
and let the user manually get things again, I just don't want that
"error box" to show.


Thanks.



Kevin Spencer said:
Check the IsPostBack property of the Page on the server side. Pressing F5
makes a fresh call for the page.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

bdwise said:
I have a page where I detect a postback in the codebehind. But I need
to tell the difference between a postback and use pushing [F5].

How can I do that?

Thanks.
 
Back
Top