Hi,
maybe someone sees my mistake...
Heres some code from my WebCostumControl:
------------------------------------------------------------
.
.
.
Button btn = new Button();
TextBox tb = new TextBox();
protected override void OnInit(System.EventArgs e)
{
btn.Click += new System.EventHandler(this.btnSearch_Click);
}
override protected void CreateChildControls()
{
this.Controls.Add(btn);
}
private void btnSearch_Click(object sender, System.EventArgs e)
{
//do something
}
.
.
.
Why the hell the event doest fire?
Thanks
-WebJumper
maybe someone sees my mistake...
Heres some code from my WebCostumControl:
------------------------------------------------------------
.
.
.
Button btn = new Button();
TextBox tb = new TextBox();
protected override void OnInit(System.EventArgs e)
{
btn.Click += new System.EventHandler(this.btnSearch_Click);
}
override protected void CreateChildControls()
{
this.Controls.Add(btn);
}
private void btnSearch_Click(object sender, System.EventArgs e)
{
//do something
}
.
.
.
Why the hell the event doest fire?
Thanks
-WebJumper