C# 输入字符串的格式不正确

C# 输入字符串的格式不正确,c#,string.format,C#,String.format,下面的代码生成一个错误,指出我的输入字符串格式不正确。为什么? private void button7_Click(object sender, EventArgs e) { string uriAddTagtoGroup = string.Format("http://localhost:8000/Service/AddTagtoGroup/{group}/{tag}", textBox6.Text, textBox7.Text)

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

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?
}
使用序数

使用序数

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