logout page in asp 3.5 with c#

Posted by Suneel161 under Regular Expressions on 2/10/2010 | Views : 6377 | Status : [Member] | Replies : 4
hi,
im already created login page in that page user name ,password and login button .
how to write logout page code send me step by step instructions.




Responses

Posted by: Vuyiswamb on: 2/10/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
You don't need to Create another page. You can enable certain controls according to the status of the Login. Look at Dotnetfunda, there is LinkButton that checks the Session if its null if its not then it will display the username. but if its null you can post, if you try to post a new post you will be redirected to the login page. There is no separate page for this. It is done on one page. Understand ?

Thank you for posting at Dotnetfunda
[Administrator]

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

Posted by: Raja on: 2/10/2010 [Member] Starter

Up
0
Down
Go through this tutorials

http://www.dotnetfunda.com/tutorials/controls/loginview.aspx to lear how LoginView works.

Thanks

Regards,
Raja, USA

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

Posted by: Abhi2434 on: 2/10/2010 [Member] [Microsoft_MVP] [MVP] Silver

Up
0
Down
If I would be in your place I would have created my own login page using normal html controls.

Other than that, if you want to create login page using <asp:Login use this:
http://msdn.microsoft.com/en-us/library/ms178331.aspx

www.abhisheksur.com

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

Posted by: Bubbly on: 2/10/2010 [Member] Bronze

Up
0
Down
Hello,

Check this link

http://www.c-sharpcorner.com/UploadFile/raj1979/LoginControl07242008104351AM/LoginControl.aspx

++
Thanks & Regards,
Deepika

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

Login to post response