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.

dont forget to provide permission to image folder.
else you'll end up with an security exception

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.