Composite, webControl, CustomControl?
-
What are the diffrens? I builded first one control where i put together plain html in to string builders that i later rendered, buy this i couldent get any event raised in my control. i Supose this is the webControl then? The second one was a control where i added childcontrols and then rendered them, by this i even got events to be raised in the control. what kind of control is this? What control is not to be used? is there any compability problems to use childcontrols that render them selfs? i thinking on IE and FireFox?
-
What are the diffrens? I builded first one control where i put together plain html in to string builders that i later rendered, buy this i couldent get any event raised in my control. i Supose this is the webControl then? The second one was a control where i added childcontrols and then rendered them, by this i even got events to be raised in the control. what kind of control is this? What control is not to be used? is there any compability problems to use childcontrols that render them selfs? i thinking on IE and FireFox?
A WebControl is the parent object to a composite control. A composite control is a type of custom control. A composite control, as defined by Microsoft, is a control that consists of 2 or more controls. For instance, a composite control might contain a DropDownList and a RequiredFieldValidator. A custom control inherits from Control or WebControl and is uniquely defined by the developer. HTH, -BC