How to get the url of the webpage and maintained into another pages?

Posted by Samy33 under ASP.NET on 3/17/2010 | Views : 1272 | Status : [Member] | Replies : 3
Please Help me!!!!!!!!!!!11

I am doing one project . in that project i developed forum concept.In forum application,we must logging in for posting threads and answering threads.if user does not log in and try to post the thread,
I write the code to redirect to login page in my project when session is null of particular user....If he logged in into my web application ,it does not maintain the same post thread post.If user logged in its directly go to the main page.




Responses

Posted by: Raja on: 3/17/2010 [Member] Starter

Up
0
Down
Use Forms Authentication, it will take care of everything you are talking about here.

http://www.dotnetfunda.com/articles/article114.aspx
http://www.dotnetfunda.com/articles/article141.aspx

:)

Regards,
Raja, USA

Samy33, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Syedshakeer on: 3/17/2010 [Member] Starter

Up
0
Down
Hi,
For better understanding on Froms-Authentication check the below link.
http://www.dotnetfunda.com/articles/article423-forms-authentication-.aspx

Syed Shakeer Hussain

Samy33, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gttejas on: 3/19/2010 [Member] Starter

Up
0
Down
Hi,

It is better to use forms authentication in your case. Please refer the link suggested by Raja. However, You can also solve it on other way. generaly form authentication uses returnUrl querystring to keep track of your current page from where it needs to redirect on successful login.

so you can pass this querystring returnUrl while making redirect to login page so inside login page you can know that on which page you need to redirect after successful login.


Thanks.

Regards,
Tejas T




Samy33, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response