actionlink Questions
3
Solved
I'm having a little problem with this setup here I have a list of .ascx files and they all do different tasks in terms of calculations to the controller itself. So on my .aspx page I click on an Aj...
Pangermanism asked 12/5, 2009 at 17:39
3
Solved
The website I'm working on has some fairly complicated routing structures and we're experiencing some difficulties working with the routing engine to build URLs the way we need them to be built.
W...
Subclimax asked 30/11, 2009 at 1:13
1
Solved
I have the following routes defined for my application:
routes.MapRoute(
"Referral", // Route name
"{referralCode}", // URL with parameters
new { controller = "Home", action = "Index" } // Para...
Exorcism asked 31/12, 2010 at 17:42
3
Solved
I would like users to be able to see the corresponding URL for an anchor tag generated by Html.ActionLink() when they hover over the link. This is done by setting the title attribute but where I'm ...
Superannuate asked 21/12, 2010 at 22:21
1
Solved
<%: Html.ActionLink("Share Me", "Index", "Mall", new { username = Model.Username }, null)%>
results as expected according to mapped routes:
<a href="/Mall/Username">Share Me</a>...
Cameo asked 23/9, 2010 at 14:1
1
Solved
I'm wondering if it's possible to conditionally add a parameter in a call to a method.
For example, I am rendering a bunch of links (six total) for navigation in my Site.Master:
<%= Html.Actio...
Ibnsina asked 13/5, 2010 at 4:12
1
Solved
I want to write an HtmlHelper to render an ActionLink with pre-set values, eg.
<%=Html.PageLink("Page 1", "page-slug");%>
where PageLink is a function that calls ActionLink with a known Ac...
Bobbette asked 11/4, 2010 at 13:1
1
Solved
I have a a view that has the following code:
<h2><%= Model.Company.CompanyName %></h2>
<h3>Projects</h3>
<ul>
<%
foreach (Project p in Model.Company.Proje...
Sediment asked 11/2, 2010 at 1:16
4
Solved
In my ASP.NET MVC application I want a user to add a value into a textbox and then press my Ajax.ActionLink. I want to do something like this:
Ajax.ActionLink("Go", "Action", "Controller", new { v...
Condensed asked 15/5, 2009 at 6:29
1
Solved
I have a question regarding RouteLink vs. ActionLink.
Consider the following route
routes.MapRoute("Routename1",
"{someEnum}/SpecificAction/{id}/{stringId}",
new { controller = "MyController", ...
Swisher asked 17/12, 2009 at 9:50
2
Solved
I have a controller with the codes like this:
[AcceptVerbs("POST")]
public ActionResult Create(FormCollection collection)
{
//why is that the collection is null?
}
I am calling this action usin...
Nagano asked 11/10, 2009 at 8:58
1
Solved
I don't exactly understand how ASP.NETs ActionLinks work. I see that they have a event handler for OnSuccess and OnFailure, but I can't find anything that describes how success and failure is deter...
Labor asked 26/7, 2009 at 7:28
4
Solved
I think that the title pretty much sums it up:
What's the difference between RouteLink() and ActionLink() in ASP.NET MVC?
i.e. when do you use Html.RouteLink() and when do you use Html.ActionLink...
Schoenburg asked 14/5, 2009 at 18:3
1
I create an amount of actions in MVC controllers.
public ActionResult DoSmth1(string token)
public ActionResult DoAnother2(string token)
And when I have to call ActionLink..
=Html.ActionLink<...
Crural asked 28/1, 2009 at 19:5
© 2022 - 2024 — McMap. All rights reserved.