4
"V" In value should be capital, @Value.
Now test the same.
1
Sorry this is also not working,
I have tried
@{
string current = DateTime.Now.ToString();
}
@Html.TextBoxFor(model=>model.Dated, "{0:d MMM yyyy}", new {@class="form-control",@type="date", @Value = current })
but its not working
1
Hello Sachin,
I have tried capital V
@Html.TextBoxFor(model=>model.Dated,new {@class="form-control",@type="date", @Value = DateTime.Now.ToString("MM/dd/yyyy") })
but still it is not working