By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,681 Members | 1,775 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,681 IT Pros & Developers. It's quick & easy.

Unable to redirect after login

P: n/a
After logging-in, I am not able to redirect to target.aspx. I am using
System.Web.UI.WebControls.Login class in a
simple sample code for Form based authentication . Redirecting to
target.aspx works when I use either
"http://localhost:8080/" or "http://IP:8080", but not when I use
machine name in URL, example http://machine-name:8080
I overloaded OnLoggingIn(), Authenticate() and OnLoggedIn(); and
none of them got called; and this behaviour was seen whenever I used
http://machine-name:8080. The only one event that I got fired was
Init().

When I used "http://localhost:8080/", every event got fired.
Please let me know, how to tackle this issue.
Thanks
Ramesh

Jun 6 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
if your entire app is running under port :8080 just redirect to your page
after they log in

like

if(userIsValid)
{
response.redirect("~/takethemhere.aspx");
}
else
{
response.write("your not worthy");
}

If your only your redirect page is under port :8080 it should work;

try and access it from another computer other then your local box. I've
discovered (not all the time but sometimes) that I would get an error when
trying to access http://computername:412/web.aspx from my pc but if I went
to another pc and try to access it I was fine, so try that and see what
happens

<as*******@gmail.comwrote in message
news:11*********************@o11g2000prd.googlegro ups.com...
After logging-in, I am not able to redirect to target.aspx. I am using
System.Web.UI.WebControls.Login class in a
simple sample code for Form based authentication . Redirecting to
target.aspx works when I use either
"http://localhost:8080/" or "http://IP:8080", but not when I use
machine name in URL, example http://machine-name:8080
I overloaded OnLoggingIn(), Authenticate() and OnLoggedIn(); and
none of them got called; and this behaviour was seen whenever I used
http://machine-name:8080. The only one event that I got fired was
Init().

When I used "http://localhost:8080/", every event got fired.
Please let me know, how to tackle this issue.
Thanks
Ramesh

Jun 8 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.