Custom Web User Control
Here is an example of a Web User Control. This sample includes a variety of controls inside of the custom Web User Control.

This sample includes:
  • User control property access (custom header)
  • DropDownList
  • CheckBoxList
  • Label
  • Image
  • RadioButtonList
  • Calendar
  • AdRotator
  • Hyperlink
  • Button
  • TextBox
  • Events (Event Trigger)
-Devdmans



Custom Header: Customer header set from the owning control using a property in the custom user control.







Sample Label Control

<February 2012>
SuMoTuWeThFrSa
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910

Ad banner 3


HyperLink




Clicking the 'Trigger Event Button' will raise an event in the web user control. This event will send the information in the text box (to the left of the button) to the web page where the control is used. The information will be populated in a text box on the owning form.




This text box below will be populated with the information passed from the event raised from the user control above. Enter text into the text box next to the 'Trigger Event Button' in the user control above. Then click the button to see the event get handled.