J
Josema
Hi...
I have a web custom control (inherits from webcontrol) that has (by default) a button and a textbox, i would like to know how its possible, when i click this button, adding a button more "on the fly", wich dont dissapear when i click again this last button.... for example...
protected Button mybutton
protected TextBox mytextbox
protected override OnInit(
InitializeComponen
private void InitializeComponent(
//Instanciate the control
this.mybutton=new Button()
this.mytextbox=new TextBox()
//referencing the event
this.mybutton.click +=new Eventhandler....
//adding the controls to this webcustomcontro
this.controls.add(this.mybutton
this.controls.add(this.mytextbox
private void Onclick(.......
Button buttonextra=new Button()
buttonextra.click=new Event........(buttonextra_click)..
this.controls.add(buttonextra)
private void buttonextra(Object sender System.EventArgs
Response.write("hello world")
this example shows to me a button when i click the first button, but when i click the buttonextra this button dissapear, and i want that this generated button remains in the form permanently..
Thanks
Josema.
I have a web custom control (inherits from webcontrol) that has (by default) a button and a textbox, i would like to know how its possible, when i click this button, adding a button more "on the fly", wich dont dissapear when i click again this last button.... for example...
protected Button mybutton
protected TextBox mytextbox
protected override OnInit(
InitializeComponen
private void InitializeComponent(
//Instanciate the control
this.mybutton=new Button()
this.mytextbox=new TextBox()
//referencing the event
this.mybutton.click +=new Eventhandler....
//adding the controls to this webcustomcontro
this.controls.add(this.mybutton
this.controls.add(this.mytextbox
private void Onclick(.......
Button buttonextra=new Button()
buttonextra.click=new Event........(buttonextra_click)..
this.controls.add(buttonextra)
private void buttonextra(Object sender System.EventArgs
Response.write("hello world")
this example shows to me a button when i click the first button, but when i click the buttonextra this button dissapear, and i want that this generated button remains in the form permanently..
Thanks
Josema.