Re: Create folders for perticular cliet

  •  12-02-2010, 2:16 AM

    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 Complete Thread