how to get privious page url with paramete on error page

Posted by Sushant under ASP.NET on 4/30/2013 | Points: 10 | Views : 960 | Status : [Member] | Replies : 4
Hi
on error no 404(page not found), i am redirecting to one error page, on that error page i want to get previous page url with parameters.I am using Request.UrlReferrer.ToString(); this giving null value reference please help how can i get previous page url on error page with parameters


thanks in advance

Sushat


Responses

Posted by: Jitendrasoft09 on: 4/30/2013 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi
You can take the url of previous page with query string with parameter, please look into below link that would be helpful for you.

Jitendra Kumar
If my post helps you, plz mark as an answer.

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

Posted by: Sushant on: 4/30/2013 [Member] Starter | Points: 25

Up
0
Down
@jitendrrasoft09
You forgot mentioning reference Link

Sushat

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

Posted by: Jitendrasoft09 on: 5/1/2013 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi Sushant,
Sorry, please look into below link -
http://stackoverflow.com/questions/2650340/how-to-keep-parameters-on-url-when-write-a-custom-404-error-page


Jitendra Kumar
If my post helps you, plz mark as an answer.

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

Posted by: Sushant on: 5/1/2013 [Member] Starter | Points: 25

Up
0
Down
@jitendrrasoft09
dear
Request.ServerVariables("HTTP_REFERER");
giving error because ServerVariables is property but used as method
giving this type of error



Sushat

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

Login to post response