Hi Friends,
I want to know that one thing for a server control, If we need to have same properties like color maxlength, size, and allowed character throughout the application. How do we handle this? Please give an explanation about it?
Handling server control properties
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


SenthilkumarRank #387 · 6.5K reputationPosted Mar 1, 2012, 7:58 PM EST
I didn't understand your question clearly.
Are you talking about override the properties of the server control then you need to create the custom control to inherit the appropriate control. These properties has to be overridden.
Generally you to want to set have set of the properties to apply manually then you may define properties/constants/enums.
If this is not answering your question then please explain me about the question again.
Jignesh TrivediRank #16 · 50.3K reputationPosted Mar 1, 2012, 9:13 PM EST
As per my understanding u required ur custom properties like maxlength,allowcharacter. so u must create custom control.
please refer
http://frejnorling.wordpress.com/2011/04/15/creating-a-custom-web-server-control-in-asp-net-using-visual-studio-2010/
good article.