Setting default value for @Html.EditorFor in asp.net much(jalpesh.blogspot.com)
submitted by
jalpesh(1347) 9 months, 10 days ago
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...
|category: MVC
|Views: 34
tags:
MVC another
Everyones tags:
Your Tags: