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

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -