Click here to Skip to main content
15,910,981 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i am working on a project in which there is a page of "post requirement".here i want the user cannot post any requirement before registered or login.If user is registered than can submit the requirement.otherwise on submit button click redirect to register page.












Thank You.
Posted

You need to learn how authentication works in ASP.Net
Google a bit about the topic and try to learn.
http://msdn.microsoft.com/en-us/library/xdt4thhy.aspx[^]
 
Share this answer
 
First of all you should set validator in you page to validate your controls and
always store the username in session object if submits successfully. after submitting data redirect to second page. In second page you must check the session object whether it is not empty. If empty redirect to login page.

In this page Anonymous User cannot open you pages indirectly.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900