Dear Support,
I'm having a little issue with the Ajax Manager.
With a button, I would like to dynamically add RadNumericTextboxes to a simple html table.
This is a fraction of the code:
| // click new row |
| protected void buttonNewRow_Click(object sender, EventArgs e) |
| { |
| // session |
| if (Session["rowCount"] == null) |
| Session["rowCount"] = 0; |
| // get int |
| int rowCount = (int)Session["rowCount"]; |
| Session["rowCount"] = ++rowCount; |
| } |
| // load page |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| // add 5 rows by default |
| for (int i = 0; i < 5; i++) |
| AddRow(); |
| // add button clicked rows |
| if (Session["rowCount"] != null) |
| { |
| for (int i = 0; i < (int)Session["rowCount"]; i++) |
| AddRow(); |
| } |
| } |
Everything works fine, except... the first time I click nothing happens!
Is there any way to solve this issue? Or am I doing it totally wrong?
