url.action Questions

9

Solved

The Objective: I have to print a PDF on a new tab after some tasks have finished correctly. Steps: I want to execute a method that should go to the server, take the PDF and open it on a new Tab,...
Indehiscent asked 11/4, 2013 at 8:39

5

Solved

In listing controller I have, public ActionResult GetByList(string name, string contact) { var NameCollection = Service.GetByName(name); var ContactCollection = Service.GetByContact(contact)...
Agamemnon asked 8/6, 2011 at 12:29

4

Solved

The problem in Html.ActionLink() is that you can't add additional html content inside the tag that it generates. For example, if you want to add an icon besides the text like: <a href="/Admin/U...
Morentz asked 20/5, 2015 at 5:50

7

Solved

How can I use Url.Action() in a class file of MVC project? Like: namespace _3harf { public class myFunction { public static void CheckUserAdminPanelPermissionToAccess() { if (ReferenceEquals...
Fiona asked 1/1, 2014 at 13:44

3

Solved

I have written following jquery in my partial view: $.ajax({ type: "POST", url: '@Url.Action("PostActionName", "ControllerName")', data: { Id: "01" }, success: function(data) { if (data.suc...
Tbar asked 17/4, 2013 at 6:3

1

Solved

I am trying to send through multiple parameters through the Url.Action. $('#dialog').dialog({ autoOpen: false, width: 850, height: 420, resizable: false, title: 'Vehicle details', modal: tru...
Landreth asked 2/11, 2015 at 13:56

2

Solved

I have the following code which gives me a syntax error - unterminated string constant.I've matched up the quotes can't seem to spot an issue. Any ideas? It works fine, the syntax error is just ann...
Quarterback asked 7/5, 2013 at 13:50

3

Solved

I'm using ASP.Net MVC. Here's my code snippets from a controller named Course: public ActionResult List(int id) { var viewmodel.ShowUrl = Url.Action("Show", "Course"); ... } public ActionResu...
Sabo asked 17/4, 2012 at 22:23

3

Solved

call a partial view on @url.action. i am displaying the records using url.action and want to load the partial view when user click on the records. here is my code on which i want to call the parti...
Elis asked 17/11, 2014 at 15:6

2

Solved

I have a code as below in razor view <a href="@Url.Action("Details", "Mycontr", new {id =16}, Request.Url.Scheme)"> while I double click on this item it is redirected to below Url http://...
Westfalen asked 15/3, 2013 at 19:56

2

Solved

In my main navigation I have a link to: Url.Action("Items", "FAQ"); The link works fine and I get to ~/Item/FAQ However, I have links which contain parameters, so: ~/Items/FAQ/Question-1 This ...
Grayce asked 27/1, 2011 at 17:23

2

Solved

I am calling a controller method using Url.action like, location.href = '@Url.Action("Display", "Customer", new { username = "abc",name = "abcdef",country = "India",email = "[email protected]...
Grati asked 14/2, 2013 at 5:49

3

Solved

I have a link in a page that goes like this: Url.Action("List", "Item", new { category = "seasons" }) The Route that matches that page also has a parentGroup and group parameters Ex: /Seasons/M...
Charissacharisse asked 8/8, 2011 at 6:15

2

Solved

I want to send the variables itemId and entityModel to the ActionResult CreateNote: public ActionResult CreateNote( [ModelBinder(typeof(Models.JsonModelBinder))] NoteModel Model, string cmd, lon...
Jamesjamesian asked 3/1, 2012 at 11:22

1

Solved

I'm trying to add int[] array to my Url.Action something like this: var routeData = new RouteValueDictionary(); for (int i = 0; i < Model.GroupsId.Length; i++) { routeData.Add("GroupsId[" + i...
Roana asked 18/6, 2011 at 10:13

1

Solved

This is somewhat related to another question I've asked but I figure why not ask it seperately. If I were to place something like the following in a view <td><img src='<%= Url.Action(...
Pantheon asked 18/11, 2009 at 21:25
1

© 2022 - 2024 — McMap. All rights reserved.