Laden...

Was ist was? WebControl, UserControl etc.

Erstellt von math55 vor 13 Jahren Letzter Beitrag vor 13 Jahren 2.643 Views
math55 Themenstarter:in
314 Beiträge seit 2007
vor 13 Jahren
Was ist was? WebControl, UserControl etc.

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 😃

2.082 Beiträge seit 2005
vor 13 Jahren

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:

CompositeControls

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.

WebControl

Serves as the base class that defines the methods, properties and events common to all controls in the System.Web.UI.WebControls namespace

UserControl

Provides an empty control that can be used to create other controls.

CustomControl

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

math55 Themenstarter:in
314 Beiträge seit 2007
vor 13 Jahren

Ich werd mir das mal durchlesen, danke vorerst!!

699 Beiträge seit 2007
vor 13 Jahren

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

5.941 Beiträge seit 2005
vor 13 Jahren

--
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland 2007 - 2011