Hallo,
also ich habe mal eine Frage zu Controls. Was ist jetzt genau was? Es gibt ja CompositeControls, WebControls, UserControls und CustomControls. Was ist jetzt aber was? Kann mir da mal jemand eine Übersicht geben, was man wofür nimmt?
Danke 😃
Hallo math55,
Kurz:
Composite Control ist eine Zusammenfassung mehrerer Controls. Das Composite Control reagiert auch auf Events der enthaltenen Controls und kann Properties der enthaltenen Controls nach aussen weitergeben.
Vom Web Control werden alle Controls abgeleitet, die unter ASP.net verwendet werden. Quasi das Gegenstück zum Control aus der Windows Forms Welt
Das User Control ist ein leeres Control in dem du dann bei 0 anfängst.
Ausführlich:
A composite control renders a user interface that reuses the functionality of existing controls. A composite control can synthesize properties from the properties of its child controls and handle events raised by its child controls. It can also expose custom properties and events.
Serves as the base class that defines the methods, properties and events common to all controls in the System.Web.UI.WebControls namespace
Provides an empty control that can be used to create other controls.
Hoffe das hilft dir erstmal weiter.
Es ist toll jemand zu sein, der nichts von der persönlichen Meinung Anderer hält. - frisch-live.de
Hallo math55,
vieleicht auch interessant für Dich. ASP. NET Server Controls – eine Kampfansage an „Clipboard Inheritance“ in neun Teilen.
Wenn Du dir die Serie angesehen hast, dann weißt du ganz genau, wie man welche Controls einsetzen kann.
Grüße Stephan
--
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland 2007 - 2011