Browse by Tags

Related Posts

  • Html.RadioButton gives invalid html, does not persist state.

    Issue 1: Invalid Html Unless I am mis-using the RadioButton helper, it is generating invalid html. for example, if you do the following in your view: Apply Fee <%= Html.RadioButton("asdf", true) %><br /> Waive Fee <%= Html.RadioButton("asdf", false) %> You get the...
    Posted to ASP.NET MVC (Forum) by davisnw on 12-20-2008, 12:00 AM
    Filed under: mvc toolkit, MVCToolkit, bugs, "ASP.NET MVC" HtmlHelper ActionLink "Unit Tests"
  • Controlling the view?

    How does one control the view from a controller? Perhaps it is my misunderstanding of the MVC architecture, but most, if not all, of the ASP.MVC+TDD examples I've seen only go so far as to test that the data returned from the controller is correct. Isn't it the responsibility of the controller...
    Posted to ASP.NET MVC (Forum) by alexdresko on 07-22-2008, 12:00 AM
    Filed under: MVC, MVC .net business rules logic, MVC ASP.NET, MVC Pattern, mvc smellycode architecture controllerneedsrefactoring help mvcisthetruth, mvc unit testing, mvc view, MVC ViewPage, MVCToolkit, TDD, Test ViewPage, asp mvc, ASP.NET MVC, Asp.Net MVC Framework, aspnetmvc, aspnetmvc mvc, Mvc general question, mvc .net, MVC.net, ASP mvc, mvc form, MVC view data, asP.net mvc preview 3, MVC Extensions
  • Using HtmlHelper.Select

    I have a need to build a select list box with the contents of a database table. I also need to add a "None" choice into the list. Right now I am doing this by inserting the "None" entry and then looping the collection from the database. Is there a way to do this using Html.Select...
    Posted to ASP.NET MVC (Forum) by kscott on 03-11-2008, 12:00 AM
    Filed under: mvc toolkit, MVCToolkit, ASP.NET MVC, Html.Select, htmlhelper
  • MVC Preview 2 Relative URL Resolution Bug

    The following code: <% = Html.Image( "~/Content/Images/test.gif" ) %> Outputs the following incorrect URL path in the Preview 2 release of the MVC framework: <img src="/ AppBaseContent /Images/test.gif" alt="test.gif" /> Note the missing directory separator between...
    Posted to ASP.NET MVC (Forum) by ian_a_anderson on 03-06-2008, 12:00 AM
    Filed under: MVC, MVCToolkit, ASP.NET MVC, MVC Preview 2
  • MVC Routing Question: Passing Objects???

    Can a custom route such as: // Note: Change Url= to Url="[controller].mvc/[action]/[updatedobject]" to enable // automatic support on IIS6 //Default IIS 6.0 Route: RouteTable .Routes.Add( new Route { Url = "[controller].mvc/[action]/[updatedobject]" , Defaults = new { action = "Index"...
    Posted to ASP.NET MVC (Forum) by knorwick on 02-22-2008, 12:00 AM
    Filed under: MVC ASP.NET, MVC Membership, MVC Pattern, MvcApplication5, MVCToolkit, object, ASP.NET MVC, Controller
  • MVCToolkit URL Bugs

    Bug 1 If I create a controller action as follows... public void List(int category) ... and use the MVCToolkit HtmlHelper.ActionLink<T> as follows... <%= Html.ActionLink<ProductController>( x => x.List(Category), "View Products for this category" ) %> ... it generates the...
    Posted to ASP.NET MVC (Forum) by tgmdbm on 12-21-2007, 12:00 AM
    Filed under: MVC, MVCToolkit, URLs, bug
  • Re: How about a very complex page which need many "MVC modules/parts" ?

    I think there are a couple valid MVC methodologies being debated here: The Primary-Controller Method , where one main Controller is essentially responsible for the start-to-finish processing of the Request/Response This is the method that the ASP.Net MVC CTP is currently geared towards, and understandably...
    Posted to ASP.NET MVC (Forum) by ian_a_anderson on 12-20-2007, 12:00 AM
    Filed under: MVC, MVC Pattern, mvc view, MVCToolkit, ASP.NET MVC
  • MVCToolkit and nulls

    Hi I'd like the MVCToolkit to be tolerant of nulls. I've been using ?? "" to avoid the null errors. <%= Html.TextBox( "Name", ViewData.Name ?? "" ) %> As an aside, I'm really excited about extension methods, cos you can call them on null objects!!!!!! public...
    Posted to ASP.NET MVC (Forum) by tgmdbm on 12-19-2007, 12:00 AM
    Filed under: MVCToolkit, suggestion, Extension methods
  • MVC Toolkit for MVC 1.0 RTM?

    Where can I find the MVC Toolkit for the RTM version of MVC? I found a preview download from Rob Conery's blog, but it appears to use a number of outdating classes, and so doesn't work with the released version of MVC. There is a lot of functionality that I really want to use in there, especially...
    Posted to ASP.NET MVC (Forum) by erick t on 08-19-2009, 12:00 AM
    Filed under: MVCToolkit
  • Re: Error accessing ViewContext from a ViewUserControl

    Ahh, i think I've found it. In RenderUserControl only Html is set. Try using Html.ViewContext instead of just ViewContext.
    Posted to ASP.NET MVC (Forum) by tgmdbm on 01-21-2008, 12:00 AM
    Filed under: MVCToolkit, bug
Page 1 of 2 (11 items) 1 2 Next >