using System;
//System.Web.HttpContext.Current.Response.Write("");
/*-----------------------------------------------------------------------------------*\
* shawl.qiu class v
\*-----------------------------------------------------------------------------------*/
//---------------------------------------------------------------------begin class a
public class a
{
//-----------------------------------begin event
public a()
{
}
//-----------------------------------begin public constant
//-----------------------begin about
public const String auSubject="";
public const String auVersion="v1.0";
public const String au="shawl.qiu";
public const String auEmail="shawl.qiu@gmail.com";
public const String auBlog="http://blog.csdn.net/btbtd";
public const String auCreateDate="2007-1-25";
//-----------------------end about
//-----------------------------------end public constant
//-----------------------------------begin public property
//-----------------------------------end public property
//-----------------------------------begin private property
//-----------------------------------end private property
}
//---------------------------------------------------------------------end class a
gallery.cs
using System;
using System.Web;
using System.IO;
using System.Text.RegularExpressions;
//a t=new a();
/*-----------------------------------------------------------------------------------*\
* shawl.qiu c# .net Gallery class v1.0
\*-----------------------------------------------------------------------------------*/
//---------------------------------------------------------------------begin class Gallery
public class Gallery
{
//-----------------------------------begin event
public Gallery()
{
}
//-----------------------------------begin public constant
//-----------------------begin about
public const String auSubject="shawl.qiu c# .net Gallery class";
public const String auVersion="v1.0";
public const String au="shawl.qiu";
public const String auEmail="shawl.qiu@gmail.com";
public const String auBlog="http://blog.csdn.net/btbtd";
public const String auCreateDate="2007-2-5";
//-----------------------end about
//-----------------------------------end public constant
//-----------------------------------begin public variable
public String Path="/images/";
public String ThumbFolder="thumb";
public String ShowExtension=".jpg|.jpeg|.gif|.png";
//public Strin
//-----------------------------------end public variable
//-----------------------------------begin public method
public void Go()
{
//--------------------------------检测指定的图片路径是否存在
Path_Phs=System.Web.HttpContext.Current.Server.MapPath(Path);
if(!Path_Phs.EndsWith("\\"))
{
Path_Phs+="\\";
}
if(!Directory.Exists(Path_Phs))
{
System.Web.HttpContext.Current.Response.Write(WordGallery.PathNotExists);
PathExists=false;
goto End;
}