0

hi,

After searching in google for a long time i found this code for uploading multiple files at a time in .net. so here is the code

---sample.aspx---

<%@ Page Language="VB" %>



<script runat="server">
    Private Sub InsertMsg(ByVal msg As String)
        
    End Sub
		
   
    Private Sub Attachments1_AttachmentAdded(ByVal sender As Object, ByVal args As AttachmentItemEventArgs)
        InsertMsg(args.Item.FileName + " has been uploaded.")
    End Sub

    Private Sub ButtonDeleteAll_Click(ByVal sender As Object, ByVal e As EventArgs)
        InsertMsg("Attachments1.DeleteAllAttachments();")
        Attachments1.DeleteAllAttachments()
    End Sub

    
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    
    <link rel="stylesheet" href="demo.css" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div class="mod">
            <div class="bd600">
                <div class="content">
                    <MagicAjax:AjaxPanel ID="MagicAjax1" runat="server">
                        
                        <br />
                        
                        <CuteWebUI:UploadAttachments InsertText="Browse" runat="server"
                            ID="Attachments1" MultipleFilesUpload="true" 
                            OnAttachmentAdded="Attachments1_AttachmentAdded" ShowCheckBoxes="False">
                        </CuteWebUI:UploadAttachments>
                        <asp:Button ID="ButtonDeleteAll" runat="server" Text="Delete All" OnClick="ButtonDeleteAll_Click" />&nbsp;&nbsp;
                        <br />
                        <br />
                        
                     
                        
                    </MagicAjax:AjaxPanel>
                </div>
            </div>
        </div>
    </form>
</body>
</html>

so here is my doubt.. how can i save all the uploaded images in a folder..

Thank u.

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by dnanetwork
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.