0

下面的代码会产生一个错误,指出我的输入字符串格式不正确。为什么?

private void button7_Click(object sender, EventArgs e)
{
    string uriAddTagtoGroup = 
      string.Format("http://localhost:8000/Service/AddTagtoGroup/{group}/{tag}",
                    textBox6.Text, textBox7.Text);
    //line above says input string was not in the correct format?
}
4

1 回答 1

5
 string.Format("http://localhost:8000/Service/AddTagtoGroup/{0}/{1}", 
                textBox6.Text, textBox7.Text);

使用序数

于 2012-04-07T15:48:15.943 回答