2011-12-02 2 views
0

내 탐색 URL에 두 개의 매개 변수를 전달하여 내 downloading.aspx 파일에서 매개 변수를 요청하려고합니다.URL, 하이퍼 링크 단추 탐색

난 항상이 오류가 ...

Index (zero based) must be greater than or equal to zero and less than the size of the argument list. 

이 내 코드입니다 :이 오류가 왜 모르겠어요

HL.NavigateUrl = String.Format("downloading.aspx?path={0}&file={1}" + GetTheCurrentDirectory(selectedNodeValue) + fri.Name); 

... 누군가가 나를 도울 수 있습니까?

대단히 감사합니다.

답변

3

이 대신 수행 및 String.format와

HL.NavigateUrl = String.Format("downloading.aspx?path={0}&file={1}", GetTheCurrentDirectory(selectedNodeValue), fri.Name); 

매개 변수는 메서드 호출에 별도의 매개 변수, 또는 전부 및 String.format를 제거해야합니다 : 완벽하게 작동

HL.NavigateUrl = "downloading.aspx?path={0}&file={1}" + GetTheCurrentDirectory(selectedNodeValue) + fri.Name; 
+0

. 고마워 친구 . – Kiwimoisi