Click here to Skip to main content
12,634,107 members (23,770 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB VB.NET
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 20-Nov-12 21:56pm
Comments
Krunal R 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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.161208.2 | Last Updated 21 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100