The situation here is a little bit odd. I have two pages downloads.aspx and
login.aspx.
In downloads.aspx if an user wants to download a private file s/he is required to
register or login.
The login link, from downloads.aspx, is as follows:
<a href="login.aspx?ref=~/downloads.aspx">
If I run the page the login is correctly performed and redirects to download.aspx. Since I wanted to debug some behavior in the login.aspx page I put some watches in the
Page_Load
event handler but...it never goes there! The same applies for the other method
Login()
within login.aspx code behind.
So I thought, since it performs the redirect, it should go again in the Page_Load event handler of downloads.aspx but...also there the same problem! Everything is perfect at runtime but, in debug mode when redirects from login.aspx, it does not enter downloads.aspx!!! This bothers me since after the redirect I want to perform some computation before displaying again the downloads.aspx page.
Thanks, I tried it, no success. Still I do not understand how it is possible that page load does not get executed if the page is displayed. I tried to clear the cache, etc...Is it possible that a javascript hinders the execution of page load? Still does
not make sense but...
TRINAKRIAE
Member
211 Points
147 Posts
ASP.NET WEb Forms application does not enter Page_Load after redirection from login
Feb 24, 2012 02:18 PM|LINK
The situation here is a little bit odd. I have two pages downloads.aspx and login.aspx.
In downloads.aspx if an user wants to download a private file s/he is required to register or login.
The login link, from downloads.aspx, is as follows:
If I run the page the login is correctly performed and redirects to download.aspx. Since I wanted to debug some behavior in the login.aspx page I put some watches in the
event handler but...it never goes there! The same applies for the other method within login.aspx code behind.So I thought, since it performs the redirect, it should go again in the Page_Load event handler of downloads.aspx but...also there the same problem! Everything is perfect at runtime but, in debug mode when redirects from login.aspx, it does not enter downloads.aspx!!! This bothers me since after the redirect I want to perform some computation before displaying again the downloads.aspx page.
I also tried to set
before the redirects but no luck! Anybody knows what can be the cause? </div>rickjames961
Participant
775 Points
174 Posts
Re: ASP.NET WEb Forms application does not enter Page_Load after redirection from login
Feb 24, 2012 03:16 PM|LINK
Have you checked to make sure that AutoEventWireup = true?
Friedrich Nietzsche
TRINAKRIAE
Member
211 Points
147 Posts
Re: ASP.NET WEb Forms application does not enter Page_Load after redirection from login
Feb 27, 2012 03:00 PM|LINK
In which page? Both? Many thanks!
roopeshreddy
All-Star
20155 Points
3328 Posts
Re: ASP.NET WEb Forms application does not enter Page_Load after redirection from login
Feb 27, 2012 03:08 PM|LINK
Hi,
Yeah! Set the AutoEventWireup="true" property for both the pages!
Hope it helps u...
Roopesh Reddy C
Roopesh's Space
TRINAKRIAE
Member
211 Points
147 Posts
Re: ASP.NET WEb Forms application does not enter Page_Load after redirection from login
Feb 28, 2012 08:05 AM|LINK
Thanks, I tried it, no success. Still I do not understand how it is possible that page load does not get executed if the page is displayed. I tried to clear the cache, etc...Is it possible that a javascript hinders the execution of page load? Still does not make sense but...
roopeshreddy
All-Star
20155 Points
3328 Posts
Re: ASP.NET WEb Forms application does not enter Page_Load after redirection from login
Feb 28, 2012 12:29 PM|LINK
Hi,
Try ReBuild the web application!
Hope it helps u...
Roopesh Reddy C
Roopesh's Space
rickjames961
Participant
775 Points
174 Posts
Re: ASP.NET WEb Forms application does not enter Page_Load after redirection from login
Apr 26, 2012 07:11 PM|LINK
Were you able to resolve this issue.
Friedrich Nietzsche