Hi pat8719,
Please try the code below,
Aspx
<%if(GalleryBrowser1.AllowEdit){%>
<a href="#" onclick="thegallerybrowser.ShowEditor();return false;">Upload Photos</a> |
<%}%>
<a href="#" onclick="thegallerybrowser.ShowSlider();return false;">View as slide show</a>
</div>
<dotnetgallery:gallerybrowser runat="server" id="GalleryBrowser1" Width="780" Height="400" />
C#
- protected override void OnInit(EventArgs e)
- {
- base.OnInit(e);
-
- GalleryBrowser1.Layout="SlideShow";
- string folder = "~/GalleryFiles/" + _profileUser.UserName + sport.sportName.Trim() + "/";
- if (!System.IO.Directory.Exists(Server.MapPath(folder)))
- System.IO.Directory.CreateDirectory(Server.MapPath(folder));
- GalleryBrowser1.GalleryFolder = folder;
- GalleryBrowser1.LogonUserName = HttpContext.Current.Profile.UserName;
- GalleryBrowser1.Viewer = "LightBox";
- GalleryBrowser1.ConsoleLayout = "Explorer";
- GalleryBrowser1.Theme = "Classic";
- GalleryBrowser1.Layout = "Classic";
-
-
-
-
-
-
-
- GalleryBrowser1.AllowEdit=true;
- GalleryBrowser1.AllowPostComment=true;
- GalleryBrowser1.AllowShowComment=true;
-
-
- }
Regards,
Jeff