Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

Unable to redirect after login

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
asnowfall@gmail.com - 06 Jun 2007 20:31 GMT
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
Mike - 08 Jun 2007 20:37 GMT
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

> After logging-in, I am not able to redirect to target.aspx. I am using
> System.Web.UI.WebControls.Login class in a
[quoted text clipped - 13 lines]
> Thanks
> Ramesh

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.