Questions tagged [url-action]
36 questions
0
votes
2 answers
How to get parameter from url action
i have this medthod:
public ActionResult Edit(string Id) {
return PartialView("Edit",Id);
}
and myView:

Hello Sun
- 133
- 1
- 4
- 16
0
votes
2 answers
Signout function on button click event in MVC3 in entity framework
I'm using mvc3 with razor
I have a button for signout a user, I use the following code
shared/_layout.cshtml
//button
…
gs11111
- 649
- 2
- 17
- 49
0
votes
1 answer
catching base url when using catchall maproute of asp .net mvc
If I use a maproute like
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
The resulting url of Url.Action("","")…

serefbilge
- 1,654
- 4
- 29
- 55
0
votes
1 answer
Simulate a javascript history.back using razor
I have javascript code like this:

sebagiar
- 155
- 1
- 2
- 11
0
votes
1 answer
@Url.Action with parameter
I'm tring tyUrl.Action to need to pass multiple parameters to
I need to load dialog box with multiple parameters with url.action. How can I do that? I tried few ways but nothing worked:
diag.load('@Url.Action("Action", "Controller", new…

user1480864
- 1,455
- 3
- 16
- 23
0
votes
1 answer
Why links generated with @Url.Action in JavaScript are not in lowercase when using AttributeRouting?
I have this code in a JavaScript function:
var url = '@Url.Action(MVC.Membership.User.ActionNames.Update, MVC.Membership.User.Name)';
url += "?userName=" + userName;
ul.append("" + userName + " ");
Membership is…

Leniel Maccaferri
- 100,159
- 46
- 371
- 480