开发者

increment label

开发者 https://www.devze.com 2023-01-14 01:45 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消