Formation of url(using query strings)
-
Hi i have 3 web pages in my website as first one login.aspx, second one home.aspx third one info.aspx, if i enter into the site the default page is login.aspx, after login.aspx, home.aspx will come and after home,aspx info.aspx will come. This is the normal flow of execution. . But i want a URL like, with that URL if i enter the site, i should able to open the page info.aspx directly and before opening the page info.aspx it should check my login credentials using login.aspx. Can you suggest any ideas for this and if possible give me full length code in asp.net using c#.
-
Hi i have 3 web pages in my website as first one login.aspx, second one home.aspx third one info.aspx, if i enter into the site the default page is login.aspx, after login.aspx, home.aspx will come and after home,aspx info.aspx will come. This is the normal flow of execution. . But i want a URL like, with that URL if i enter the site, i should able to open the page info.aspx directly and before opening the page info.aspx it should check my login credentials using login.aspx. Can you suggest any ideas for this and if possible give me full length code in asp.net using c#.
Have a look at http://aspnet.4guysfromrolla.com/articles/020205-1.aspx it gives you a nice url/parameter manager. You could specify in the inital url which page you want to go in after login. for example: localhost:1885/DevelopmentWebsite/login.aspx?redirect=info when you authenticate the user you can check the redirect param and make your redirection based on that value.