actionlink Questions

2

Alright, so I was unable to find any posts with people trying to do this. I have an MVC4 razor view which contains a jQuery DataTable with a list of Vendor data. In the 1st column I have added 3 b...
Lille asked 6/8, 2013 at 22:35

1

Solved

I want to embed a URL in an applet parameter. The only way I know to create automatically the URL is Html.ActionLink(), but I want only the inner HREF attribute, not the whole link. Is there anot...
Capitalistic asked 28/3, 2013 at 14:44

1

Solved

I have a view that lists a bunch of categories: <ul> <li>@Html.ActionLink("All", "Index", "Products")</li> @foreach (var item in Model.ProductCategories) { <li>@Html.Ac...
Exsect asked 31/1, 2013 at 23:14

1

Solved

Possible Duplicate: Including an anchor tag in an asp.net mvc Html.ActionLink The code : @Html.ActionLink("Link", "Action", "Controller", new { id = Id } ) For the moment I can gener...
Rightism asked 12/12, 2012 at 8:20

3

Solved

In an ASP.NET MVC view I'd like to include a link of the form: <a href="blah">Link text <span>with further descriptive text</span></a> Trying to include the <span> ...
Undermine asked 31/12, 2008 at 9:34

3

Solved

I'm playing around with the some MvcMusicStore example based shop and having some problems with the MVC3 Ajax.ActionLink / Ajax.RouteLink helpers. The problem is that it simply does not generate an...

4

Solved

I have a simple page displaying thumbnail list , I want to to add a pager , i have added two action links <li class="ui-pagination-next">@Html.ActionLink("Next", "Paginate", "Home", new { ...
Mislay asked 7/9, 2012 at 9:16

2

Solved

I'm looking for a way to alter the class of an ActionLink in the controller based on specific criteria (not found in the model so I can't write a conditional in the view itself). But i can't seem t...
Yelenayelich asked 4/6, 2009 at 17:32

1

Solved

I am working asp.net mvc3. I have an action link like following: @Html.ActionLink("Yes", "Admin", "Foo", null, new { @class = "link" }) How can I modify this to create a link in https as oppose...
Furlani asked 28/6, 2012 at 15:36

2

Solved

I can call an asp.net mvc controller via Ajax.ActionLink("Get customers","GetCustomers","Customer"); I can do the same with the Html.ActionLink and a jquery ajax call. Where is the difference?
Lannylanolin asked 23/4, 2012 at 8:42

2

Solved

I have a ViewModel with a Filter property that has many properties that I use to filter my data Example: class MyViewModel : IHasFilter { public MyData[] Data { get; set; } public FilterViewMod...
Profuse asked 4/4, 2012 at 8:51

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

2

Solved

I have an ASP MVC 3 website that has a Feedback form and should require SSL. Now, I have an action called Feedback inside a controller called 'ContactUs' that is responsible for viewing and proces...
Mcvey asked 15/3, 2012 at 12:26

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

3

Just building a quick, simple site with MVC 3 RC2 and RavenDB to test some things out. I've been able to make a bunch of projects, but I'm curious as to how Html.ActionLink() handles a raven DB I...
Appreciation asked 24/12, 2010 at 18:49

2

Solved

I have been trying to do an actionlink like: <li>@Html.ActionLink("Home", "Index", "Invoice", new { id = "homelink" })</li> So what I have is linkText, an actionname, a controller na...
Romelda asked 16/1, 2012 at 20:39

4

Solved

I have a POST method declared in my controller: [AcceptVerbs(HttpVerbs.Post)] public ActionResult UpdateComments(int id, string comments) { // ... } and an ActionLink in my view: <%= Ajax....
Blunder asked 14/6, 2010 at 11:44

5

Solved

As the question says, Is it possible to use an ActionLink containing an element, and if not, what is the best way to achieve it? For example, lets say I have a Span element, I want the whole thing...
Gilda asked 3/11, 2011 at 6:10

2

Solved

I am trying to navigate to an MVC action by POSTing rather than GETting. (The action is a DELETE, and I don't want it reachable by an external link.) I am using a link in a grid generated by Aja...
Heed asked 17/6, 2010 at 20:48

3

Solved

I have an Index method that does double duty as showing a list of posts and a queried list of posts and can also have pages so you get urls like /News/Page/1 or /News?query=test When a user clicks...
Vicegerent asked 13/1, 2011 at 22:36

2

Solved

What i'm trying to do: Try to delete a record using a "proper" HTTP Delete. Controller Code: [HttpDelete] public void DeleteRun(int RunId) { repository.RemoveEntry(RunId); } Razor View: ...
Tumid asked 3/8, 2011 at 21:45

1

How can I send the value of the TextBox as a parameter of the ActionLink? I need to use the Html.TextBoxFor <%= Html.TextBoxFor(m => m.SomeField)%> <%= Ajax.ActionLink("Link Text", "M...
Neville asked 14/7, 2011 at 20:6

3

Solved

Trying to have a AJAX action link which when clicked, should do a HttpGet to an action method which returns a PartialViewResult and shoves the HTML into a div. Here's my View: <div id="admin-o...
Sargent asked 20/4, 2011 at 4:31

1

Solved

How do I add a css class to this actionlink? I have read you do it something like new { class = button } but I'm not sure where to put it within my actionlink: <%= Html.ActionLink("View P...
Dumbhead asked 9/4, 2011 at 23:26

1

Solved

Ok, I want to add some security to my site via the ActionLink method. If the user has enough rights to access the action/controller then the ActionLink should render the link. If not, It should ret...
Tough asked 29/3, 2011 at 18:13

© 2022 - 2024 — McMap. All rights reserved.