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
Tejas TrivediRank #1,247 · 1.4K reputationPosted Sep 19, 2016, 9:52 PM EDT
Nageshwar Rao78 reputationPosted Sep 19, 2016, 10:21 PM EDT
Tejas TrivediRank #1,247 · 1.4K reputationPosted Sep 19, 2016, 10:31 PM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts