If you have a model for your view you can do
Html.TextBox("Title")
Which automaticly (through reflection) fills in the Model.Title value as value, so you don’t need to do
Html.TextBox("Title", Model.Title)
|
If you have a model for your view you can do Html.TextBox("Title")
Which automaticly (through reflection) fills in the Model.Title value as value, so you don’t need to do Html.TextBox("Title", Model.Title)
2 Responses to “ASP.NET MVC: Html.Textbox”
Leave a Reply
|
And shepherds we shall be, for thee my Lord for thee, power hath descended forth from thy hand, that our feet may swiftly carry out thy command. We shall flow a river forth to thee, and teeming with souls shall it ever be. In nomine Patris, et Filii, et Spiritus Sancti.
hi,
i have used the syntax mentioned above to create a textbox for a data entry form in one of my asp.net mvc project. the page has some values coming from the database as well. does this can be a issue for not rendering the textboxes in the page?
thanks
I am not sure if I understand your problem correctly (you can contact my on my email if you need help).
Is your data in the model?