Create folders for perticular cliet

Last post 12-02-2010, 2:16 AM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  11-30-2010, 8:24 AM 65206

    Create folders for perticular cliet

    I want to create folder for user........
    each user has its Folder or categories and  store images...
    Please reply soon and help me out
  •  11-30-2010, 7:49 PM 65209 in reply to 65206

    Re: Create folders for perticular cliet

    Hi Khansaab,
     
    You can depending on the user to set a different folder by property "GalleryFolder", like below
     
           galleryBrowser1.GalleryFolder = "~/FolderName";
     
    Regards,
     
    ken
  •  12-01-2010, 3:20 AM 65212 in reply to 65209

    Re: Create folders for perticular cliet

    thanks i did it
    bt this way 
     
    GalleryBrowser1.GalleryFolder = "~/Uploads/" + Convert.ToInt32(Session["Client_ID"]);
     
    it creates folder for clients...
     
     
    But now problem is if i want store selected folder path by using Button....
     can i do this....?
     
  •  12-02-2010, 2:16 AM 65229 in reply to 65212

    Re: Create folders for perticular cliet

    Hi Khansaab,
     
    Try this example
     
    1. <%@ Page Language="C#" %>  
    2.   
    3. <%@ Register TagPrefix="DotNetGallery" Namespace="DotNetGallery" Assembly="DotNetGallery" %>  
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    5.   
    6. <script runat="server">  
    7.     protected override void OnLoad(EventArgs e)  
    8.     {  
    9.         if (!IsPostBack)  
    10.         {  
    11.             galleryBrowser1.GalleryFolder = "~/GalleryFiles";  
    12.         }  
    13.         base.OnLoad(e);  
    14.     }  
    15.   
    16.     protected void btnChangeFolder_Click(object sender, EventArgs e)  
    17.     {  
    18.         galleryBrowser1.GalleryFolder = "~/Uploads/" + Convert.ToInt32(Session["Client_ID"]);  
    19.     }  
    20. </script>  
    21.   
    22. <html xmlns="http://www.w3.org/1999/xhtml">  
    23. <head runat="server">  
    24.     <title>Untitled Page</title>  
    25. </head>  
    26. <body>  
    27.     <form id="form1" runat="server">  
    28.         <DotNetGallery:GalleryBrowser ID="galleryBrowser1" runat="server" AllowEdit="true"  
    29.             Layout="Explorer" />  
    30.         <asp:Button ID="btnChangeFolder" runat="server" Text="Change store folder" OnClick="btnChangeFolder_Click" />  
    31.     </form>  
    32. </body>  
    33. </html> 
     
    Regards,
     
    Ken
View as RSS news feed in XML