fileuploads in asp.net 1.1
-
-
hi. i have a file upload and a button. On button click other upload control should be visible initially which dont. But on post back the path in 1st upload control disappears. i would have use ajax if it is 2.0 but im using 1.1 any ideas how to do this.
can u post ur aspx page and code which you r using ?
-
can u post ur aspx page and code which you r using ?
not exactly but briefly
<input class="input" id="imgFile1" type="file" name="imgFile1" runat="server">
<asp:linkbutton id="lnkimg2" Runat="server" Text='<IMG height="14" src="../images/add-child.gif" width="14" align="absMiddle" border="0"Add New Image'CausesValidation="False"></asp:linkbutton>
<input class="input" id="imgFile2" type="file" name="imgFile2" runat="server" visible="false"><asp:button id="btnSubmit" Runat="server" Text="Submit" CssClass="button"></asp:button>
//link button click
imgFile2.visible=true;//buttonsubmit click
code for inserting....once link button clicked path in upload1 disappears as page loads.