问题描述
usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingSystem.Web.UI.HtmlControls;usingSystem.Drawing;usingSystem.Drawing.Imaging;usingSystem.Drawing.Design;usingSystem.ComponentModel;usingSystem.IO;usingSystem.Text;#endregionnamespaceBright.WebControls{///<summary>///ThumbnailImageViewerControl缩略图Viewer控件///</summary>[ToolboxData("<{0}:ThumbViewerrunat="server"ImageUrl=""Title=""Width="100"Height="100"/>")][ToolboxBitmap(typeof(System.Web.UI.WebControls.Image))]publicclassThumbViewer:System.Web.UI.WebControls.Image{#regionProperties&Fields#regionUrlsprivatestring_srcImageUrl;[Category("Appearance"),Description("TheURLoftheimage."),DefaultValue(""),Bindable(true)]publicoverridestringImageUrl{get{returnViewState["ImageUrl"]==null?string.Empty:ViewState["ImageUrl"].ToString();}set{ViewState["ImageUrl"]=value;}......