开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜