L
lirlir
Hi to all,
i have this problem:
my sample combine 2 components,
the first one is a simple aspx page (T1.aspx) with a
Button runat server and with the next code:
private void Page_Load(object sender, System.EventArgs e)
{
C1 c = new C1();
this.FindControl("Form1").Controls.Add(c);
}
the second component is a UserControl (C1.ascx) that i create dynamiclly like that:
protected override void Render(HtmlTextWriter writer)
{
TextBox txt = new TextBox();
txt.ID="txtSelectedParams" + UniqueID ;
this.Controls.Add(txt);
base.Render(writer);
}
the problem is that after postback the value on the textbox is gone....
please help me by let me know what am i doing wrong.
lirlir
i have this problem:
my sample combine 2 components,
the first one is a simple aspx page (T1.aspx) with a
Button runat server and with the next code:
private void Page_Load(object sender, System.EventArgs e)
{
C1 c = new C1();
this.FindControl("Form1").Controls.Add(c);
}
the second component is a UserControl (C1.ascx) that i create dynamiclly like that:
protected override void Render(HtmlTextWriter writer)
{
TextBox txt = new TextBox();
txt.ID="txtSelectedParams" + UniqueID ;
this.Controls.Add(txt);
base.Render(writer);
}
the problem is that after postback the value on the textbox is gone....
please help me by let me know what am i doing wrong.
lirlir