DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   ASP.NET (http://www.daniweb.com/forums/forum18.html)
-   -   Page Navigation (http://www.daniweb.com/forums/thread122959.html)

nandhinijp May 7th, 2008 8:13 am
Page Navigation
 
At the time of login Redirect to one page particularly.In my site Users can view some of the pages without login.
My question is If i am in x page.At that page i want to use login page.After login I want to return that x page.But its constantly navigated to one particular page which specified in login button click.
whats the solution?

majestic0110 May 7th, 2008 8:57 am
Re: Page Navigation
 
I would be glad to help you but can you say that in other words - didn't quite get it lol what do you mean you want to use login page? do you mean you want to navigate to the login page ?

raj416 May 7th, 2008 9:44 am
Re: Page Navigation
 
If you are in x page.

set a querystring or hidden field if u wanna to go login page
for eg: login.aspx?page="X"




At that page you want to use login page.

in login page save the variable in hidden field ...




After login you want to return that x page.


if user logged successfully based on hidden field value you can redirect to particular x page

majestic0110 May 7th, 2008 9:46 am
Re: Page Navigation
 
You are following me Raj lol

nandhinijp May 7th, 2008 1:44 pm
Re: Page Navigation
 
k.My one more doubt.I am using usercontrol for menu that means login.. account.. etc.At the usercontrol only i had given navigating url..Its common for all pages.At this time how can use querystring for particular page.Coz only one time using navigating url.Can u understand?

raj416 May 7th, 2008 11:52 pm
Re: Page Navigation
 
Coz only one time using navigating url.Can u understand?

for this
sorry i cant get u ....



i think u have to check session value before going to the secured pages .. if there is no session u can redirect the user to login page with querystring.. u can check session values in ascx controls too...

nandhinijp May 8th, 2008 4:44 am
Re: Page Navigation
 
I am using usercontrol for menu.I specify the url in that ascx page.I am using only one control in entire site. How to specify querystring for particular page?
if each and every page has navigating url,easily specify querystring.

raj416 May 8th, 2008 5:20 am
Re: Page Navigation
 
i think you have to write the code when login button click event fires... not in the ascx menu...

nandhinijp May 8th, 2008 7:56 am
Re: Page Navigation
 
k.


All times are GMT -4. The time now is 2:27 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC