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
Create folders for perticular cliet
Last post 12-02-2010, 2:16 AM by
Kenneth
. 3 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
11-30-2010, 8:24 AM
65206
Khansaab
Joined on 11-30-2010
Posts 9
Create folders for perticular cliet
Reply
Quote
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
Kenneth
Joined on 02-13-2008
Posts 3,886
Re: Create folders for perticular cliet
Reply
Quote
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
Khansaab
Joined on 11-30-2010
Posts 9
Re: Create folders for perticular cliet
Reply
Quote
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
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