469,647 Members | 1,789 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,647 developers. It's quick & easy.

Page_Load event

Maybe someone can help me out here. I have a web form that enables
viewstate. When i leave the form to another form in the application and
then return to it via a hyperlink, the Page_Load event is not called. Anyone
know why this might happen and how to force Page_Load?
Thanks

Roger
Nov 18 '05 #1
2 1664
Perhaps the page is being cached?
To prevent caching try this code:

Response.Expires = 0
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache")

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Roger" <Th******@Superhero.com> wrote in message
news:un**************@TK2MSFTNGP09.phx.gbl...
Maybe someone can help me out here. I have a web form that enables
viewstate. When i leave the form to another form in the application and
then return to it via a hyperlink, the Page_Load event is not called. Anyone know why this might happen and how to force Page_Load?
Thanks

Roger

Nov 18 '05 #2
I tried that code, but it didn't seem to work quite right. Although, when I
added a meta tag to the HTML code, it worked like a charm.

Thanks

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:OO**************@TK2MSFTNGP09.phx.gbl...
Perhaps the page is being cached?
To prevent caching try this code:

Response.Expires = 0
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache")

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Roger" <Th******@Superhero.com> wrote in message
news:un**************@TK2MSFTNGP09.phx.gbl...
Maybe someone can help me out here. I have a web form that enables
viewstate. When i leave the form to another form in the application and
then return to it via a hyperlink, the Page_Load event is not called.

Anyone
know why this might happen and how to force Page_Load?
Thanks

Roger


Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Studio P.M. | last post: by
7 posts views Thread by Jibey | last post: by
14 posts views Thread by V. Jenks | last post: by
2 posts views Thread by Dave | last post: by
4 posts views Thread by Seraph | last post: by
5 posts views Thread by Andy | last post: by
1 post views Thread by puja | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.