How to create a textbox (from toolbox) in asp.net mvc2 web application? -


the toolbox says there no usable control in group?

i have create textbox in asp.net mvc2 web application?

please explain.

the toolbox habit might have learned webforms development no longer applies in asp.net mvc. in asp.net mvc write code. , generate textbox (<input type="text" ...) use textboxfor html helper:

<%= html.textboxfor(x => x.someviewmodelproperty) %> 

or if don't have typed view (although should if want designed mvc application)

<%= html.textbox("someviewmodelproperty") %> 

so goodbye server controls , toolboxes , hello asp.net mvc.


Comments

Popular posts from this blog

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -

jQuery clickable div with working mailto link inside -