Saturday, March 28, 2015

How to set ReadOnly and HiddenInput in MVC



 ReadOnly and HiddenInput in MVC

[System.Web.Mvc.HiddenInput(DisplayValue=false)]
public int ID { get; set; }

[System.ComponentModel.ReadOnly(true)]
public string Name { get; set; }

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.