Browse by Tags

Related Posts

  • Re: Passing ViewData to MVC User Controls

    This is a bug. Nice catch. It works if you have a strongly typed ViewData or if your ViewData is an anonymous type. I was able to do <%=ViewData["Count"]%> when I used List1 as the ViewDataKey and I used an anonymous type for my view data. It uses a TypeDescriptor to get the properties...
    Posted to ASP.NET MVC (Forum) by abombss on 12-17-2007, 12:00 AM
    Filed under: ASP.NET MVC, MVC, workaround, bug
  • Extra defaults bug

    Hi, Steps to reproduce: Create a new MVC App Create an MVC Controller called Products. Add 2 controller actions, one called List which takes no parameters, one called View which takes an int Id Create 2 views for the 2 actions. Open Views/Shared/Site.Master Add 2 links next to Home and About <%= Html...
    Posted to ASP.NET MVC (Forum) by tgmdbm on 12-21-2007, 12:00 AM
    Filed under: MVC, Routes, bug
  • 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, bug, MVCToolkit, URLs
  • Bug in HttpRequest.PhysicalPath

    I just noticed today when I was playing around with path's that PhysicalPath does not return the path to the actual view file executing. Adding the following to the Views/Home/About.aspx view produces an incorrect result. < h6 >Physical Path: < %=Context.Request.PhysicalPath %></ h6...
    Posted to ASP.NET MVC (Forum) by abombss on 01-03-2008, 12:00 AM
    Filed under: MVC, bug
  • Re: Determine the current controller and action?

    Yeah might be a bug. I just looked at reflector and ViewPage.RenderView sets the ViewContext and ViewUserControl.RenderView does not. Looking at the Url property on ViewUserControl it is calling into the parent page to get the helper. { return ViewPage.Url.}
    Posted to ASP.NET MVC (Forum) by abombss on 01-14-2008, 12:00 AM
    Filed under: bug, MVC
Page 1 of 1 (5 items)