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

This is My Application default url - http://localhost:43190/.. It has some productnames displayed as Html.Routelink.. When I click that link it takes me to
http://localhost:43190/Detail/1 (or) respective Product ID..
But when I hit back the productnames are displayed as Url..

Ex:
Football
Bat

If I hit Football it will go to http://localhost:43190/Detail/1 and if I hit backspace its displayibg as url
Detail/1
Detail/2
instead of Football.. If i hit F5 its back to normal..

Here is that Routelink..

@Html.RouteLink(@Model.Name,new { controller = "Product", action = "Detail", prod = @Model.ProductID}, new { @class = "" })

Posted

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