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

Popular posts from this blog

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

iphone - Smoothing a rounded stroke in Core Graphics -

c++ - QtQuick: QQmlApplicationEngine failed to load component qrc:/main.qml:23 Invalid attached object assignment -