Back to list
Views:   0
Replies:  0
Archived
,
Reply 1
Is there any reason you can't use TextBoxFor()?  Or any of the other specific HTML Helpers?  They have overloads for HTML attributes.
King Wilder, Jul 24, 2011
Reply 2
There is no overload for EditorFor that takes this kind of argument...

Alternate solution at

http://aspadvice.com/blogs/kiran/archive/2009/11/29/Adding-html-attributes-support-for-Templates-_2D00_-ASP.Net-MVC-2.0-Beta_2D00_1.aspx

Also check this alternative....
http://stackoverflow.com/questions/1625327/editorfor-and-html-properties

Hope this helps!
Rajesh Pillai, Jul 23, 2011
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas