Nageshwar Rao

Nageshwar Rao

  • NA
  • 74
  • 35k

Reads data frm config file

Sep 20 2016 1:36 AM
Hi
I have code which is set 25 string lenght
[StringLength(25, ErrorMessageResourceType = typeof(CampaignResource.VendorCampaign), ErrorMessageResourceName = "InvalidLengthDescription1")]
 
Now i dnt want to set that length constant i need to change according to config file value,what value i am giving in config that value should take .How can do by using custom Attribute,plz gve sample code 

Answers (3)