User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 391,779 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,452 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 414 | Replies: 8 | Solved
Reply
Join Date: Dec 2007
Posts: 84
Reputation: nandhinijp is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
nandhinijp nandhinijp is offline Offline
Junior Poster in Training

Page Navigation

  #1  
May 7th, 2008
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?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,123
Reputation: majestic0110 is on a distinguished road 
Rep Power: 3
Solved Threads: 47
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Veteran Poster

Re: Page Navigation

  #2  
May 7th, 2008
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 ?
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
Reply With Quote  
Join Date: Jan 2008
Posts: 13
Reputation: raj416 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 2
raj416 raj416 is offline Offline
Newbie Poster

Re: Page Navigation

  #3  
May 7th, 2008
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
Reply With Quote  
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,123
Reputation: majestic0110 is on a distinguished road 
Rep Power: 3
Solved Threads: 47
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Veteran Poster

Re: Page Navigation

  #4  
May 7th, 2008
You are following me Raj lol
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
Reply With Quote  
Join Date: Dec 2007
Posts: 84
Reputation: nandhinijp is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
nandhinijp nandhinijp is offline Offline
Junior Poster in Training

Re: Page Navigation

  #5  
May 7th, 2008
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?
Reply With Quote  
Join Date: Jan 2008
Posts: 13
Reputation: raj416 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 2
raj416 raj416 is offline Offline
Newbie Poster

Re: Page Navigation

  #6  
May 7th, 2008
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...
Reply With Quote  
Join Date: Dec 2007
Posts: 84
Reputation: nandhinijp is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
nandhinijp nandhinijp is offline Offline
Junior Poster in Training

Re: Page Navigation

  #7  
May 8th, 2008
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.
Reply With Quote  
Join Date: Jan 2008
Posts: 13
Reputation: raj416 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 2
raj416 raj416 is offline Offline
Newbie Poster

Re: Page Navigation

  #8  
May 8th, 2008
i think you have to write the code when login button click event fires... not in the ascx menu...
Reply With Quote  
Join Date: Dec 2007
Posts: 84
Reputation: nandhinijp is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
nandhinijp nandhinijp is offline Offline
Junior Poster in Training

Re: Page Navigation

  #9  
May 8th, 2008
k.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ASP.NET Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 4:54 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC