Browse by Tags

Related Posts

  • AJAX Html Editor in ASP.NET MVC

    Hello, I'm trying to update my database with mvc and the new Html Editor in the AJAX Toolkit. I found out how to load the editor with text from the database C#: Editor pEdit = new Editor (); pEdit.ID = "PageEditor" ; pEdit.Content = Model.PageText; pEdit.Attributes.Add( "name"...
    Posted to ASP.NET MVC (Forum) by beeboent on 05-15-2009, 12:00 AM
    Filed under: MVC, UpdateFrom, Ajax and MVC, Edit, html editor
  • UpdateFrom() bug in Preview 2?

    Hi everybody. Mi second post here :). I'm having a problem with UpdateFrom() and I think it might be a bug. In Preview 1, if I tried to UpdateFrom() an instance with invalid data, I would get a PopulateTypeException with all the errors detailed, as in: class Person { public int Age { get ; set ;...
    Posted to ASP.NET MVC (Forum) by nicosabena on 03-12-2008, 12:00 AM
    Filed under: UpdateFrom, ASP.NET MVC
  • Mocking the Request.Form object

    Hi, I'm trying to write a unit test for a controller action. This action uses the UpdateFrom(Request.Form) helper method to populate an object before writing it to a database. I would like to mock the Request.Form object in order to run a unit test against this action. However, it seems that the...
    Posted to ASP.NET MVC (Forum) by Bill_G on 01-29-2008, 12:00 AM
    Filed under: request.form, UpdateFrom, httprequest, mock
  • UpdateFrom and Encoding

    Hi, I installed MVCToolkit and played with tutorials. I tried to create some Product object (Linq To Sql) in an action method: But encoding for string values in Request.Form didn't happen and I successfully saved javascript code as product name :( [ControllerAction] public void CreateNew() { Product...
    Posted to ASP.NET MVC (Forum) by dmtr on 12-14-2007, 12:00 AM
    Filed under: UpdateFrom
  • Suggestion for UpdateFrom() Extension Method method

    Please consider a version of UpdateFrom() that does not raise exceptions and just returns a collection of validation errors. Exceptions are expensive for simple validations I think that is why the tryParse methods were introduced to FCL. Also if an exception is raised immediatly after encountering the...
    Posted to ASP.NET MVC (Forum) by aregsar on 12-13-2007, 12:00 AM
    Filed under: UpdateFrom
  • Re: UpdateFrom() bug in Preview 2?

    Hi again Rob. Were you able to reproduce the error?
    Posted to ASP.NET MVC (Forum) by nicosabena on 03-13-2008, 12:00 AM
    Filed under: UpdateFrom
Page 1 of 1 (6 items)