Search code examples
asp.netpropertiescustom-server-controls

How to add custom property to asp.net custom server control?


I have created an asp.net custom control and now want to pass some values to it from the page which will use the control.Is there any way i can add my own property to the control (like Text property is present for a Label control) ?


Solution

  • It's a class. Add a public property to it.