increment label
I have a button that adds a new row to the view with the following code. Is there a way to increment the label? What I would like is to say "Name 1:" "Name 2:" for every row.
string s = "<table>\r\n";
s += " <tr>\r\n";
s += " <td>\r\n";
s += " &l开发者_StackOverflow中文版t;label>Name: </label>";
s += " <input></input>";
s += " </td>\r\n";
s += " <td>\r\n"
s += "</table>\r\n";
Pass the index of that previous row into whatever calls this code. Add 1.
精彩评论