Questions tagged [routevalues]

50 questions
0
votes
1 answer

Html.BeginForm with dynamic routevalues

I need to add a dynamic routevalue in html.beginform, something like this Html.BeginForm("action", "controller", new { somethingID = "some js function or jquery that get the value from a textbox" })) I know mvc is already passing the…
0
votes
1 answer

URL Rewriting on my ASP .NET MVC website

I'm working on an image viewer, so I've a controller named Viewer and when I pass it routeValues it is passed in the URL like this : http://www.mywebsite.com/Viewer?category=1&image=2 Here is the link used to get on this page :…
ggobbe
  • 171
  • 1
  • 9
0
votes
1 answer

html.actionlink routevalues error

recently I have been trying to add a link that allows people to delete their own comments on my website. I have followed the advice of the answer of the question asked here. This is what my code looks like now: @Html.ActionLink("x","DeleteComment",…
user1504679
0
votes
3 answers

Add Value to RoutValues and keep Current Values in ASP.NET MVC 3

I have a view with two form one of them for declare rows per page. In post action I need my Url be the same and just add new parameter. at now I use like this: [HttpPost] public ActionResult Index(FormCollection collection) { //Calculate Row…
Saeid
  • 13,224
  • 32
  • 107
  • 173
-1
votes
2 answers

Passing object RouteValues to the search button

I would like to pass object RouteValues parameter to that button
1 2 3
4