I want to set current date in @Html.EditorFor but i don't know the correct syntax. what syntax that can i use to set curent date?
this is the code that i've tried but it not work
@Html.EditorFor(model => model.ID_Emp, new { htmlAttributes = new { @value = @Session["Username"].ToString(), @class = "form-control"} })
i expect that would set automatically when run the page but it wasnt showed
Aucun commentaire:
Enregistrer un commentaire