ASP.NET MVC 3, user defined id for field -


can 1 help?

@html.editorfor(model => model.property, new { id = "some value" }) not working. when view source displays element id "id=model.property"

how resolve this.

thanks.

if need prefix generated id, use viewdata.templateinfo.htmlfieldprefix property. otherwise, use html.textbox, html.checkbox, etc... or write entire input element tag yourself.


Comments

Popular posts from this blog

how to build hyperlink for query string in php -

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

queue - mq_receive: message too long -