R
Ray
Hi All,
I am having problem to get the ID of fileupload control in as loop:
<form enctype="multipart/form-data" method="post" runat="server">
<asp:FileUpLoad id="FileName1" runat="server" />
<asp:FileUpLoad id="FileName2" runat="server" />
<asp:FileUpLoad id="FileName3" runat="server" />
</form>
Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles
Me.Load
If Page.IsPostBack Then
Dim i As Integer
For i = 0 to Page.Controls.Count - 1
Response.Write(Page.Controls(i).ID & "<br>")
Next
Response.end()
End If
End Sub
this return empty, any help?
Thanks
Ray
I am having problem to get the ID of fileupload control in as loop:
<form enctype="multipart/form-data" method="post" runat="server">
<asp:FileUpLoad id="FileName1" runat="server" />
<asp:FileUpLoad id="FileName2" runat="server" />
<asp:FileUpLoad id="FileName3" runat="server" />
</form>
Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles
Me.Load
If Page.IsPostBack Then
Dim i As Integer
For i = 0 to Page.Controls.Count - 1
Response.Write(Page.Controls(i).ID & "<br>")
Next
Response.end()
End If
End Sub
this return empty, any help?
Thanks
Ray