P
Peter
Hi all
The following code only work for the first click, if i click the
image button second time, it doesn't add a control dynamically. How to fix?
Protected Sub ImageButton1_Click(ByVal sender As Object, ByVal e As
System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click
Session("numberOfUploadField") = Session("numberOfUploadField") + 1
Dim fileUpload As New FileUpload()
fileUpload.ID = "fileUpload" & Session("numberOfUploadField")
uploadPanel.Controls.Add(fileUpload)
End Sub
thanks
from Peter ([email protected])
The following code only work for the first click, if i click the
image button second time, it doesn't add a control dynamically. How to fix?
Protected Sub ImageButton1_Click(ByVal sender As Object, ByVal e As
System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click
Session("numberOfUploadField") = Session("numberOfUploadField") + 1
Dim fileUpload As New FileUpload()
fileUpload.ID = "fileUpload" & Session("numberOfUploadField")
uploadPanel.Controls.Add(fileUpload)
End Sub
thanks
from Peter ([email protected])