下面的代码产生一个错误,说我的输入字符串格式不正确.为什么?
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?
}
Run Code Online (Sandbox Code Playgroud)
string.Format("http://localhost:8000/Service/AddTagtoGroup/{0}/{1}",
textBox6.Text, textBox7.Text);
Run Code Online (Sandbox Code Playgroud)
使用序数