::vielleicht so:
::
::in Control1.asxc.cs:
::
::public static control2 ControlToBeModified;
::
::in der Seite m��te es dann evtl. so aussehen:
::
::protected control1 MyControl1;
::protected control2 MyControl2;
::
::MyControl1.ControlToBeModified.Property = PropertyWert;

Vielen Dank f�r Deinen "Augen�ffner" :-)

Das scheint ziemlich gut zu funktionieren... Allerdings hab ich noch ein
Problem. Also ich hab das nun folgendermassen implementiert:

Control1.ascx:
----------------
private static Control2 uscheader = new Control2();
                
public static string UscHeader {
        get { return uscheader.Title; }
        set { uscheader.Title = value; }
}

Control2.ascx
--------------
private string title;

public string Title {
        get { return this.title; }
        set { this.title = value; }
}


In der Layout-Seite setze ich dann zum Test:
gBuilderGUI.navigation.navigation.UscHeader = DateTime.Now.ToString();

Wenn ich nun mit dem Debugger das ganze durchgehe, sehe ich, dass beiden
Properties der richtige Wert zugewiesen wird. Wenn nun aber die
Page_Load - Methode von Control2.ascx gestartet wird, verliert das
Property von Control2 seinen Wert (Control 1 beh�llt ihn)... Was soll
das? :-P

Ich hoffe Du verstehst das wirre Zeugs das ich hier schreibe :-)

Dani


_______________________________________________
Asp.net mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/asp.net

Antwort per Email an