Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am making an application using Asp.net MVC,

I have a url which is generating dynamically like http:\localhost:4351\username

I want the functionality that if a user copy it on address bar it'll redirect to a new address like

http:\localhost:4355\users\profile\username

I've a controller named users and an action named profile defined in it

How can i implement this functionality?
Posted

1 solution

 
Share this answer
 
v2

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