Click here to Skip to main content
15,902,782 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,
how can i restrict user to go into results page by just typing pages url in addressbar .
i want user to go first to exam page, then he will be redirected to results page, but if he just types the url of results page, he is redirected to result page, which i don't want to happen.
Posted
Comments
[no name] 21-Nov-12 2:57am    
OK so what have you tried ?
Jasbeer Singh 21-Nov-12 2:58am    
i dont know what should i try here, if it was before login, i can try session, but i want to retrict after login.

1 solution

Try using
Request.UrlReferrer


If this value is empty it means that user is requesting the page by typing the url in address bar.

It should be exam page in your case.

Hope this helps.
 
Share this answer
 
Comments
Jasbeer Singh 21-Nov-12 8:10am    
i want to restrict user. what to do for that

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