Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
ASP.Net Image Gallery
»
Re: Create folders for perticular cliet
Re: Create folders for perticular cliet
12-02-2010, 2:16 AM
Kenneth
Joined on 02-13-2008
Posts 3,886
Re: Create folders for perticular cliet
Reply
Quote
Hi Khansaab,
Try this example
<%@ Page Language=
"C#"
%>
<%@ Register TagPrefix=
"DotNetGallery"
Namespace=
"DotNetGallery"
Assembly=
"DotNetGallery"
%>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
<script runat=
"server"
>
protected
override
void
OnLoad(EventArgs e)
{
if
(!IsPostBack)
{
galleryBrowser1.GalleryFolder =
"~/GalleryFiles"
;
}
base
.OnLoad(e);
}
protected
void
btnChangeFolder_Click(
object
sender, EventArgs e)
{
galleryBrowser1.GalleryFolder =
"~/Uploads/"
+ Convert.ToInt32(Session[
"Client_ID"
]);
}
</script>
<html xmlns=
"http://www.w3.org/1999/xhtml"
>
<head runat=
"server"
>
<title>Untitled Page</title>
</head>
<body>
<form id=
"form1"
runat=
"server"
>
<DotNetGallery:GalleryBrowser ID=
"galleryBrowser1"
runat=
"server"
AllowEdit=
"true"
Layout=
"Explorer"
/>
<asp:Button ID=
"btnChangeFolder"
runat=
"server"
Text=
"Change store folder"
OnClick=
"btnChangeFolder_Click"
/>
</form>
</body>
</html>
Regards,
Ken
View Complete Thread