Click here to Skip to main content
15,887,428 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a default aspx which has a master page with it i have this javascript for upload of file, so how can i save this into a folder call files
JavaScript
<script type = "text/javascript">
     var counter = 0;

           function AddFileUpload() {
               var div = document.createElement('DIV');
               div.innerHTML = '<input id="file' + counter + '" name = "file' + counter + '" type="file" /><input id="Button' + counter + '" type="button" value="Remove" onclick = "RemoveFileUpload(this)" />';
               document.getElementById("FileUploadContainer").appendChild(div);
               counter++;
           }
</script>


   <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent" >

           <span style ="font-family:Arial">Click to add files</span>  

           <br /><br />

           <div id = "FileUploadContainer"  runat="server" >

           </div>
           <br />
           <input id="ButtonAdd" type="button" value="add" onclick = "AddFileUpload()" />
           <asp:Button ID="btnUpload" runat="server" Text="Upload"  />
       <asp:Label ID="lbl2" runat="server" ForeColor="Red"></asp:Label>
           <br />

   </asp:Content>
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900