Suggestion: Html Helper - Why not allow id AND name attribute to be specified?

Last post 05-09-2008 12:28 AM by dmo145. 2 replies.

Sort Posts:

  • Suggestion: Html Helper - Why not allow id AND name attribute to be specified?

    05-08-2008, 3:15 PM
    • Loading...
    • dmo145
    • Joined on 03-28-2008, 4:34 PM
    • Posts 6

    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 its id to change because it will break my javascript. (maybe the property name in my model changed and I need updateFrom to work)

    Is this reasonable?

  • Re: Suggestion: Html Helper - Why not allow id AND name attribute to be specified?

    05-08-2008, 11:29 PM
    Answer
    • Loading...
    • levib
    • Joined on 07-23-2007, 11:50 PM
    • Redmond, WA
    • Posts 51
    • AspNetTeam

    We're aware of this and are working to correct this behavior.

  • Re: Suggestion: Html Helper - Why not allow id AND name attribute to be specified?

    05-09-2008, 12:28 AM
    • Loading...
    • dmo145
    • Joined on 03-28-2008, 4:34 PM
    • Posts 6

    fantastic

Page 1 of 1 (3 items)