2012-04-07 3 views
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? 
} 

답변

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

사용 서수

속임수를 썼는지
+1

! 고맙습니다. –

관련 문제