简体   繁体   中英

Page_Load event not firing when using Response.Redirect()

I have two forms in my web application (Page1 and Page2). Now Page1 is having a grid on whose row_command event i am going to Page2. And on load event of Page2 i am checking a condition which if false i am going to Page1 using Response.Redirect().

Now when i am going from Page2 to Page1 the load event of Page1 is not getting fired. i have used cache clearing and response.end ,but its not helping. But when i am using Server.Transfer the load event of Page1 is getting fired.

Awaiting for ur response .Guys

It should get called during Response.Redirect. Make sure there is no IsPostBack checks anywhere in the page load.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM