Click here to Skip to main content
15,887,746 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Bad Behavior Pin
jkirkerx15-Jun-16 10:18
professionaljkirkerx15-Jun-16 10:18 
GeneralRe: Bad Behavior Pin
BobbyStrain15-Jun-16 12:44
BobbyStrain15-Jun-16 12:44 
GeneralRe: Bad Behavior Pin
Nathan Minier16-Jun-16 1:18
professionalNathan Minier16-Jun-16 1:18 
GeneralRe: Bad Behavior Pin
BobbyStrain16-Jun-16 6:24
BobbyStrain16-Jun-16 6:24 
GeneralRe: Bad Behavior Pin
Nathan Minier17-Jun-16 1:57
professionalNathan Minier17-Jun-16 1:57 
GeneralRe: Bad Behavior Pin
BobbyStrain17-Jun-16 5:50
BobbyStrain17-Jun-16 5:50 
Question@Url is saying "the name url doesn't exist in the current context" ASP.MVC 4 Pin
indian14314-Jun-16 10:02
indian14314-Jun-16 10:02 
AnswerRe: @Url is saying "the name url doesn't exist in the current context" ASP.MVC 4 Pin
jkirkerx15-Jun-16 7:24
professionaljkirkerx15-Jun-16 7:24 
Well you can use a Razor Html Helper
ActionLink to make a button
@Html.ActionLink("Create User", "Create", "User", new { userID = "-1"] }, new { @class = "btn btn-default" })

Or an A element using Url.Action for the href, then change the class to make it look like an button.
<a class="btn btn-default" href="@Url.Action("Create", "User", new { userID = "-1" })" data-toggle="tooltip" data-placement="bottom" title="Create User" data-original-title="Create User">Create User</a>

I did look at your code. You need to create a model in the controller actionresult "Create" and return it in the view, so the page has a model to work with.
GeneralRe: @Url is saying "the name url doesn't exist in the current context" ASP.MVC 4 Pin
indian14315-Jun-16 8:06
indian14315-Jun-16 8:06 
GeneralRe: @Url is saying "the name url doesn't exist in the current context" ASP.MVC 4 Pin
jkirkerx15-Jun-16 13:09
professionaljkirkerx15-Jun-16 13:09 
GeneralRe: @Url is saying "the name url doesn't exist in the current context" ASP.MVC 4 Pin
indian14315-Jun-16 23:05
indian14315-Jun-16 23:05 
GeneralRe: @Url is saying "the name url doesn't exist in the current context" ASP.MVC 4 Pin
indian14316-Jun-16 9:08
indian14316-Jun-16 9:08 
GeneralRe: @Url is saying "the name url doesn't exist in the current context" ASP.MVC 4 Pin
jkirkerx16-Jun-16 10:37
professionaljkirkerx16-Jun-16 10:37 
GeneralRe: @Url is saying "the name url doesn't exist in the current context" ASP.MVC 4 Pin
indian14316-Jun-16 16:52
indian14316-Jun-16 16:52 
GeneralRe: @Url is saying "the name url doesn't exist in the current context" ASP.MVC 4 Pin
indian14316-Jun-16 22:45
indian14316-Jun-16 22:45 
GeneralRe: @Url is saying "the name url doesn't exist in the current context" ASP.MVC 4 Pin
jkirkerx17-Jun-16 5:54
professionaljkirkerx17-Jun-16 5:54 
GeneralRe: @Url is saying "the name url doesn't exist in the current context" ASP.MVC 4 Pin
indian14317-Jun-16 9:15
indian14317-Jun-16 9:15 
GeneralRe: @Url is saying "the name url doesn't exist in the current context" ASP.MVC 4 Pin
jkirkerx19-Jun-16 7:07
professionaljkirkerx19-Jun-16 7:07 
Question.NET Oracle.DataAccess.Client Pin
Karan_TN14-Jun-16 3:52
Karan_TN14-Jun-16 3:52 
AnswerRe: .NET Oracle.DataAccess.Client Pin
John C Rayan14-Jun-16 4:22
professionalJohn C Rayan14-Jun-16 4:22 
Question.net Pin
Member 1257929012-Jun-16 7:59
Member 1257929012-Jun-16 7:59 
AnswerRe: .net Pin
Richard MacCutchan12-Jun-16 23:00
mveRichard MacCutchan12-Jun-16 23:00 
AnswerRe: .net Pin
F-ES Sitecore12-Jun-16 23:32
professionalF-ES Sitecore12-Jun-16 23:32 
AnswerRe: .net Pin
Richard Deeming13-Jun-16 2:05
mveRichard Deeming13-Jun-16 2:05 
GeneralRe: .net Pin
ZurdoDev15-Jun-16 9:40
professionalZurdoDev15-Jun-16 9:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.