Hello EveryOne!!
Well, My problem is the next:
I'm already creating controls dynamically using RadAjaxManager
Until There Everything works like a charm!! =D
Here the code
That is the code for create the controls
and as I said, it works like a charm!
But my problem is when I want to save the data bounded to the control (dynamic controls are a common RadioButtons and they have a 1 for a "Yes" or 0 for "No" )
and when I click on the Update button
Well, My problem is the next:
I'm already creating controls dynamically using RadAjaxManager
Until There Everything works like a charm!! =D
Here the code
| foreach (DataRow dr in dt.Rows) |
| { |
| RadioButtonList rbl = new RadioButtonList(); |
| try |
| { |
| rbl.ID = "rbl_" + dr["PK"].ToString(); |
| rbl.Items.Add(new ListItem("SI", "1")); |
| rbl.Items.Add(new ListItem("NO", "0")); |
| if (Convert.ToBoolean(dr["isCompleted"].ToString())) |
| { rbl.SelectedValue = "1"; } |
| else { rbl.SelectedValue = "0"; } |
| rbl.RepeatDirection = RepeatDirection.Horizontal; |
| this.panel.Controls.Add(rbl); |
| } |
| catch (Exception LoEx) { this.lblMsgError.Text = LoEx.Message; } |
| finally |
| { |
| rbl = null; |
| i++; |
| } |
| } |
and as I said, it works like a charm!
But my problem is when I want to save the data bounded to the control (dynamic controls are a common RadioButtons and they have a 1 for a "Yes" or 0 for "No" )
and when I click on the Update button