Somebody knows the answe开发者_JAVA技巧r? I\'m using L2S with field ntext in my dbIn your model, you need to specify the a DataType.MultilineText annotation:
Controller public ActionResult Create() { return View(new PageViewModel()); } [HttpPost] public ActionResult Create(Page page)
Can anyone explain why it is assumed that a non nullable type property should always have a RequiredAttribue?
if i nee开发者_开发问答d remove master layout from my view, how can i do it in MVC2? i tried put code in my view that was shown in documentation http://sparkviewengine.com/documentation/master-layouts
I am currently developing an application with the new ASP.NET MVC2 framework. Originally Istarted writing this application in the ASP.NET MVC1 and I\'m basically just updating it to MVC2.
How can I link to one of my root controllers from one of my areas? <% Html.RenderAction(\"Action\", \"Page\", new {area = \"root\", name = \"Admin\"}); %>
I am trying to write a simple library for MVC2 projects that takes care of user login, e-mail validation, password recovery, etc. Since some of these steps involve user interaction, I need to have Vie
I\'m having trouble adding a validationmessage to my custom editortemplate, this is the line I am using (I\'ve tried posting the entire template code but having no luck)
This is happening when I try to create the entity using a Create style action in Asp.Net MVC 2. The POCO has the following properties:
ASP.NET MVC 2app I have two actions on my controller (Toons): [GET] List [POST] Add App is running on IIS7 integration mode, so /Toons/List works fine. But when I do POST (that redirects to /Toon