Hi
I want whem Add Modal Popup opens ISActive value by default should be Y & disabled.
**********************
public class Location
{
private string _isactive = "Y";
[Key]
[Display(Name = "Id")]
public string Id { get; set; }
[DataType(DataType.Text)]
[RegularExpression(@"^[a-zA-Z'.\s]{1,25}$", ErrorMessage = "Special Characters not allowed")]
[Required(ErrorMessage = "Please enter Location"), MaxLength(25)]
[Display(Name = "Description")]
public string Description { get; set; }
[Display(Name = "Active")]
public string IsActive
{
get { return _isactive; }
set { _isactive = value; }
}
}
******************************************
Add New Location
@**@
Thanks
Sachin SinghPosted May 31, 2021, 7:11 PM
Ramco RamcoPosted May 31, 2021, 3:47 PM
Sachin SinghPosted May 31, 2021, 2:24 PM