大家帮帮我呀...急呀.....
谢谢多位了....

解决方案 »

  1.   

    use UrlEditor, seehttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuidesignurleditorclasstopic.asp[EditorAttribute(typeof(System.Web.UI.Design.UrlEditor), typeof(UITypeEditor))]
    public string URL
    {
        get
        {
            return http_url;
        }
        set
        {
            http_url = value;
        }
    }
    if you want to use ImageUrlEditor[Category("Buttons"), 
     DefaultValue(""), 
     Description("First button's image URL."), 
     <B>EditorAttribute(typeof(System.Web.UI.Design.ImageUrlEditor), 
     typeof(System.Drawing.Design.UITypeEditor))</B>] 
    public string FirstButtonImageUrl 
    {
       get { object o = ViewState["FirstButtonImageUrl"]; 
             return (o==null) ? String.Empty : (string) o; }
       set { ViewState["FirstButtonImageUrl"] = value.Trim(); } 
    }