2011-03-10 55 views
0

我使用以下代碼在我的頁面上添加smoe fileupload控件。我希望每個人都有一個換行符,但是無法正常工作。在循環中添加換行符

For i As Integer = 1 To 2 
     Dim fileupload As FileUpload = New FileUpload 
     fileupload.ID = "FileUp" & i 
     placeUpload.Controls.Add(fileupload) 
    Next 

感謝

回答

1
For i As Integer = 1 To 2 
    Dim fileupload As FileUpload = New FileUpload 
    fileupload.ID = "FileUp" & i 
    placeUpload.Controls.Add(fileupload) 
    placeUpload.Controls.Add(new LiteralControl("<br />")) 
Next 
+0

好極了,非常感謝 – ajguk 2011-03-10 15:31:49