M
mahsa
Hi I add butoon dynamidly to page but I have to double clock ob button until it work I set auto post back =true for butoon that if i click just one time on it it run the void but still I have to click button twic
//new Ro
TableRow r2 = new TableRow()
TableCell c20 = new TableCell()
c20.ColumnSpan=7
c20.CssClass="content"
c20.VerticalAlign=VerticalAlign.Middle
c20.HorizontalAlign=HorizontalAlign.Right
c20.Height=25
Button Btn_CA=new Button()
Btn_CA.Attributes.Add("AutoPostBack","true")
Btn_CA.Click += new System.EventHandler(this.FormData_Changed)
Btn_CA.Text="Calculate"
Btn_CA.ToolTip="Click Here To Calculate Items"
c20.Controls.Add(Btn_CA)
//new Ro
TableRow r2 = new TableRow()
TableCell c20 = new TableCell()
c20.ColumnSpan=7
c20.CssClass="content"
c20.VerticalAlign=VerticalAlign.Middle
c20.HorizontalAlign=HorizontalAlign.Right
c20.Height=25
Button Btn_CA=new Button()
Btn_CA.Attributes.Add("AutoPostBack","true")
Btn_CA.Click += new System.EventHandler(this.FormData_Changed)
Btn_CA.Text="Calculate"
Btn_CA.ToolTip="Click Here To Calculate Items"
c20.Controls.Add(Btn_CA)