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?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Mar 2, 2012, 2:13 AM
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.
SenthilkumarPosted Mar 2, 2012, 12:58 AM
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.