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)
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?