Deployment
There are 3 simple steps to install DotNet Gallery in your application:
1. Install the assembly
Copy the DotNetGallery.dll assembly to your application bin folder or into the GAC (Global Assembly Cache).
2. Add Uploader httpModule to web.config's httpModules list
IIS 6.0 and IIS 7.0 Classic mode
<system.web>
<httpModules>
<add name="DotNetGallery.UploadModule" type="DotNetGallery.UploadModule,DotNetGallery"/>
</httpModules>
</system.web>
IIS 7.0 Integrated mode
<system.webServer>
<modules>
<add name="DotNetGallery.UploadModule" type="DotNetGallery.UploadModule,DotNetGallery"/>
</modules>
</system.webServer>
3. Adding DotNet Gallery to an ASP.NET Page
Here is the minimal ASP.NET page you would need to display the "/myGallery" directory of images as an image gallery:
<%@ Register TagPrefix="DotNetGallery" Namespace="DotNetGallery" Assembly="DotNetGallery" %>
<dotnetgallery:gallerybrowser id="dotnetgallery1" GalleryFolder="/myGallery" runat="server"></dotnetgallery:gallerybrowser>
|