Browse by Tags

Related Posts

  • Re: Extension Methods in NVelocity View Engine Helper

    Adam is correct. A patch is required for the nVelocity view engine to handle helpers. My current thoughts are a wrapper for the existing helpers that implement IDuck. The wrapper will need to be made aware of extension classes and then reflect over those classes to collect all of the extension methods...
    Posted to ASP.NET MVC (Forum) by wcpierce on 12-27-2007, 12:00 AM
    Filed under: Extension methods, nvelocity, htmlhelper
  • HtmlHelper in a controller

    Hi all. I have a need for using Html.RenderUserControl() inside my controller. Specifically, I am doing some AJAX calls whose response is small enough (such as a single form field) to not warrant a full RenderView(). Instead, I am doing HttpContext.Response.Write(). My problem is that I find myself duplicating...
    Posted to ASP.NET MVC (Forum) by Orion2480 on 03-03-2008, 12:00 AM
    Filed under: Controller, ajax, htmlhelper
  • ASP.NET MVC Framework Preview 2 Bug ?

    Hello, I am playing with the Preview 2 of the MVC Framework and noticed something strange: When I use the "Html" property (HtmlHelper Instance) in a ViewPage to render a FORM tag like this: <%= Html.Form("MyController", "MyAction") %> I end up with this markup: <form...
    Posted to ASP.NET 3.5 Extensions Preview (Forum) by astaykov on 03-10-2008, 12:00 AM
    Filed under: MVC, HtmlHelper
  • Re: ASP.NET MVC Framework Preview 2 Bug ?

    Hm, After several more scenarios I revealed the strange, may be, behavior of that extension method. We should use <% Html.Form("MyController", "MyAction") %> instead of <%= Html.Form("MyController", "MyAction") %>, Because the helper method Form(HtmlHelper...
    Posted to ASP.NET 3.5 Extensions Preview (Forum) by astaykov on 03-11-2008, 12:00 AM
    Filed under: MVC, HtmlHelper
  • 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: ASP.NET MVC, MVCToolkit, htmlhelper, mvc toolkit, Html.Select
  • Where are all my HtmlHelper methods?!?!

    Ok. I downloaded the ASP.NET MVC Preview 2 from the following link and installed it: http://www.microsoft.com/downloads/details.aspx?FamilyId=38CC4CF1-773A-47E1-8125-BA3369BF54A3&displaylang=en#RelatedLinks When I attempt to write code like this in my viewpage <%= Html.Form %> I get no love...
    Posted to ASP.NET MVC (Forum) by serverside6 on 04-28-2008, 12:00 AM
    Filed under: asp.net, htmlhelper, MVC
  • Suggestion: Html Helper - Why not allow id AND name attribute to be specified?

    Stands to reason that there should be overloads that allow you to specify the "id" AND "name" for form elements and not assume id = name. Is there a reason why this isn't the case? I'm thinking of the case where I want a form elements' name to change but I don't want...
    Posted to ASP.NET MVC (Forum) by dmo145 on 05-08-2008, 12:00 AM
    Filed under: ASP.NET MVC, helpers, htmlhelper
Page 1 of 1 (7 items)