namespace DBLayer.Models
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
public partial class CustomerBasicDetail
{
[Required]
public string DOB { get; set; }
}
}
MVC View
@using (Html.BeginForm()) {
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)
<table class="csstable1" align="center">
<tr >
<td align="right">
@Html.LabelFor(model => model.DOB)
</td>
<td >
@Html.EditorFor(model => model.DOB, new { id="Dob"})
@Html.ValidationMessageFor(model => model.DOB)
</td>
</tr>
<tr >
<td align="right">
</td>
<td ><input type="submit" value="Create" />
</td>
</tr>
</table>
I have a model and View like above.I need to add calender controller for that view.Can anyone tell me how to that?.