c# - append a parameter to querystring of existing url asp.net mvc -
I am using asp.net mvc. C #
How can I get an existing URL (it can be a bunch of query string parameters) and then just add another parameter to the xstring. And make it a clickable hyperlink.
variable to pass a custom RouteValueDictionary HTMLAction link. Try doing something like this:
& lt;% var rvd = New RootViewView (ViewContext.RouteData.Values); Forchha (string key in the request.StringString.Keys) {rvd [key] = Request.QueryString [key]; } RVD ["MyParam"] = "Whatever"; Response. White (HTML ActionLink ("Link Text", "Action", RVD)); & Gt%;
Comments
Post a Comment