stimmt....

> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Auftrag von Reinhold Becker
> Gesendet: Dienstag, 20. September 2005 15:21
> An: [email protected]
> Betreff: AW: [Asp.net] Custom Control
>
>
> Ich glaub, Du meinst ein WebUserControl, ich mein aber ein CustomControl,
> das einfach über den "new" Konstruktor instanziiert wird.
>
> Gruß,
> Reinhold
>
> > -----Ursprüngliche Nachricht-----
> > Von: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Im Auftrag von Christoph Cluss
> > Gesendet: Dienstag, 20. September 2005 15:16
> > An: [email protected]
> > Betreff: AW: [Asp.net] Custom Control
> >
> > vermute, dass Du das Control mit loadControl lädst...
> > => Du must das Control in der Klasse mit Withevents definieren.
> >
> > z.B.
> >
> > in VB.NET
> >
> > Partial Class deineClass
> >     Inherits System.Web.UI.Page
> >
> >     Private WithEvents DeinControl as DeinControlTyp
> >
> >     Protected Sub Page_Load(ByVal sender As Object, _
> >                     ByVal e As System.EventArgs) Handles Me.Load
> >
> >        DeinControl = CType(LoadControl("DeinControl")),
> > DeinControlTyp )
> >
> >
> >     end Sub
> > end Class
> >
> > das sollte funktionieren...
> >
> > Chris
> >
> >
> > > -----Ursprüngliche Nachricht-----
> > > Von: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]
> > > Auftrag von Reinhold Becker
> > > Gesendet: Dienstag, 20. September 2005 15:07
> > > An: [email protected]
> > > Betreff: [Asp.net] Custom Control
> > >
> > >
> > > Moin Leute,
> > >
> > > Ich hab mir ein Custom Control mit einigen TextBoxen
> > gebaut. Jetzt hab
> > > ich das Problem, daß nach einem Postback alle Daten wech sind. Hab
> > > natürlich auch gleich an if(!Page.IsPostBack()) gedacht,
> > das war es aber nicht.
> > >
> > > Muß man irgendetwas prinzipielles dabei beachten?
> > >
> > > Das CC wird dynamisch mit Daten befüllt aus einem GridView befüllt.
> > >
> > > Grüße,
> > > Reinhold
> > >
> > >
> > > _______________________________________________
> > > Asp.net Mailingliste, Postings senden an:
> > > [email protected]
> > > An-/Abmeldung und Suchfunktion unter:
> > > http://www.glengamoi.com/mailman/listinfo/asp.net
> >
> > _______________________________________________
> > Asp.net Mailingliste, Postings senden an:
> > [email protected]
> > An-/Abmeldung und Suchfunktion unter:
> > http://www.glengamoi.com/mailman/listinfo/asp.net
> >
> >
>
>
> _______________________________________________
> Asp.net Mailingliste, Postings senden an:
> [email protected]
> An-/Abmeldung und Suchfunktion unter:
> http://www.glengamoi.com/mailman/listinfo/asp.net

_______________________________________________
Asp.net Mailingliste, Postings senden an:
[email protected]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net

Antwort per Email an