I am having these two textboxes for start date and end date. On These two textboxes I use datepicker. Also I am having an uplodify on this page. When I fill the date on these textboxes and click on upload button to upload picture. I got the following error as "Missing Instance Data for this DateTimePicker"
Code for HTml:
<div class="clearfix mrb10">
<div class="vp-dt-left">@Resources.Languages.Start<span class="orange">*</span>:</div>
<div class="vp-dt-right">
@Html.TextBoxFor(m => m.StartDate, "{0:d}", new { @class = "vp-box-input-125 SelectDate requiredField", @readonly = "readonly", @Style = "width:72px!important;" })
</div>
</div>
<div class="clearfix">
<div class="vp-dt-left">@Resources.Languages.End<span class="orange">*</span>:</div>
<div class="vp-dt-right">
@Html.TextBoxFor(m => m.EndDate, "{0:d}", new { @class = "vp-box-input-125 SelectDate requiredField", @readonly = "readonly", @Style = "width:72px!important;" })
</div>
</div>
Jquery Code:
$('.SelectDate').datepicker({
});
Script File:
Please help me to solve this problem. Thanks.