Setting default value for @Html.EditorFor in asp.net much

added by jalpesh
8/15/2011 2:39:51 PM

1124 Views

Yesterday one of my friend asked me to set default value for @HTML.EditorFor. So I decided to write this blog post. In this blog post I am going to Explain How we create Default values for model Entities. So Let’s start this via taking a simple example Model class called User. In User Model class I have created two properties UserName and UserJoinedDate. Following is a code for that.using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace CodeSimplified.Mod...


0 comments