Forums | Support | Company
File Upload

ASP Image Gallery

A Complete, Feature Rich, Image Gallery Program

Deployment ASP Gallery

ASP Gallery is 100% HTML and JavaScript code on the client, and ASP code on the server, and can be setup on your web server in just 5 minutes, simply by following this setup guide.

1. Deploying Gallery Client files.

The "aspgallery" folder and all file it contains (located in the archive) should be deployed to http://{your site}/{your application}/aspgallery/ on your web site.

2. Adding Gallery into ASP page.

  1. <%@  language="VBScript" %>   
  2. <!--Step 1: Register gallery to your page -->     
  3. <!-- #include file="aspgallery/include_aspgallery.asp" -->   
  4. <%   
  5.   
  6. 'Step 2: Create gallery web service   
  7. AspGallery_ImagingMethod="AspNetService"  
  8.   
  9. 'Step 3: Create gallery object   
  10. Dim gallery   
  11. Set gallery=new AspGallery   
  12. gallery.AllowEdit=True 'default is false   
  13. gallery.AllowPostComment=True 'default is false   
  14. gallery.AllowShowComment=True 'default is true   
  15.   
  16. gallery.GalleryFolder="defaultalbum"  'the path to the image directory   
  17. 'set the user info for comment poster   
  18. gallery.LogonUserID="[email protected]"  
  19. gallery.LogonUserName="UserName"  
  20.   
  21. gallery.ProcessAjaxPostback()   
  22.   
  23. %>   
  24. <html>   
  25. <head>   
  26. </head>   
  27. <body>   
  28.     <!-- 'Step 4: Render gallery-->   
  29.     <%=gallery.GetString() %>   
  30. </body>   
  31. </html>  

3. Adding Admin Console and Slide Show button into page.

  1. <a href="#" onclick="thegallerybrowser.ShowEditor();return false;">Admin Console</a> |    
  2. <a href="#" onclick="thegallerybrowser.ShowSlider();return false;">Start slide show</a>  
Copyright 2003-2012 ASP Image Gallery. All rights reserved. | ASP.NET Image Gallery