routevalues Questions
3
Solved
I'm coming from JavaScript, and I know that { } is an object literal, not needing to require the new Object call; I'm wondering if it's the same with C# in the {"id",id}, {"saveChangesError",true} ...
Comfit asked 12/4, 2012 at 22:45
5
The Model of SearchResults.aspx is an instance of PersonSearch; when the request for a new page arrive (a GET request), the action method should take it and compute the new results.
[AcceptVerbs(H...
Shult asked 27/11, 2009 at 18:15
4
Solved
I have a view which I show result of a search and sort in a paged list. I add column headers as links to be enable the user to sort based on a column this way:
<tr>
<th>
@Html.Actio...
Sufflate asked 29/8, 2016 at 17:45
3
Solved
I have an actionlink in view, I need it to pass parameter containing hyphen (-). Changing the name convention is not possible. How do I do this?
<li>@Html.ActionLink("abc", "abc", "abc", new...
Adalbert asked 17/12, 2014 at 17:52
1
Solved
I have a "Thingy" controller for that looks like:
[HttpPost]
public ActionResult DeleteConfirmed(long? id) {
// <Validate ID, delete associated records>
return RedirectToAction("Index", "T...
Evildoer asked 22/10, 2014 at 21:43
1
Solved
I have a need to use ActionLink to link to ann edit screen for my ViewModel A.
A has a composite key, so to link to it, the route values will have to have 3 pramaters, like this:
<%: Html.Acti...
Koblas asked 23/11, 2012 at 17:50
5
Solved
The very famous ActionLink:
<%: Html.ActionLink("Back to List", "Index")%>
Now, this link is in my Details view. The Index view is a search page. The URL of that looks like this:
http:/...
Sudbury asked 23/9, 2010 at 15:29
5
All,
Getting to grips with ASP.NET MVC. So far, so good, but this one is a little nuts.
I have a view model that contains a dictionary of attributes for a hyperlink, used like this:
menu = model...
Aliment asked 13/3, 2010 at 19:28
2
Solved
Is there a method to extract the area, controller, action, and querystring from a URL in ASP.NET MVC? Don't want to reinvent the wheel implementing my own if there's already a way to do it.
Thanks...
Cogitable asked 2/9, 2010 at 13:28
1
© 2022 - 2024 — McMap. All rights reserved.