Difference Between Click and F5?

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.
 
K

Kevin Spencer

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.
 
B

bdwise

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top