Click here to Skip to main content
15,885,032 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have 4 hyper links for all html pages.
1. Home Page
2. Customer Page
3. Report Page
4. Help Page
When I click each page it will redirect to another page using controller.

When I click 'Help Page' I want to know, user from which page they clicked 'Help Page'
based on that I need to do action.

Basically we can decide based on the url, so I would require previous page url to use in Help controller.

What I have tried:

I tried with below code
string returnURL = Request.UrlReferrer.ToString();


But not helps in dotnet core.
Posted
Updated 3-Mar-22 21:23pm

 
Share this answer
 
Comments
vasanthkumarmk 18-Mar-21 9:19am    
Thanks!!! Instead of redirecting to previous page, I need to get entire url for previous page.
Hello, I'm having the same problem, did you find the solution to it? If yes, can you send me the code here on how you did it?
 
Share this answer
 
Comments
Richard Deeming 4-Mar-22 3:44am    
"Me too" is not a solution to this question.

If you want to ask for more information, click the "Have a Question or Comment?" button under the question and post a comment.

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