0
kicks
Setting default value for @Html.EditorFor in asp.net much
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...