i need to know that how to bind value in html text box in mvc from database.
i am using datepicker in that input type textbox.
<input type="text" name="objmember.BirthDate" data-beatpicker="true" class="span4" />
i am able to submit the value from this textbox in database field but while edit it i need to already show the date in this input type text box.on the other hand other textbox are showing the value fine.
@Html.TextBoxFor(m => m.objmember.Name, new { placeholder = "Name", @class = "span4" })
i am using viewModel in this view.but writing
name="objmember.BirthDate"
is not binding the value with this textbox.
above default textbox of mvc works fine with it.but on using input type text it is not binding the value. i have to use this datepicker in input type field because it is not working with @Html.Textbox.
Please give me some solution to this problem.