Expand|Select|Wrap|Line Numbers
- TableCell cell5 = new TableCell();
- Button b = new Button();
- b.Text = "Save";
- b.Style.Add("Width", "90px");
- b.CommandArgument = (i + 1).ToString();
- b.Click += new EventHandler(save_Click);
- cell5.Controls.Add(b);
- row.Cells.Add(cell5);
When i click edit it also brings up a few new rows for the alias of the email account i just clicked. When i click delete next to the aliases it sometimes deletes (but i have to click it twice again), sometimes it deletes the wrong one. Sometimes it adds a new one with a username of the disk quote for that email account eg. 6@domain.com
The function that makes the table is in the page_Load() because if i put it anywhere else, it deletes the table every time I post back to the server :s
Anyone came across this before or know how to fix any of these problems?
Edit:
i read the html source of the table, when i load the page, values of the edit button
[HTML]<input type="submit" name="ctl17" value="Edit" style="Width:43px;" />[/HTML]
and then after i clicked it once...
[HTML]<input type="submit" name="ctl05" value="Edit" style="Width:43px;" />[/HTML]
then when i click that one, it called the edit_Click()