Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invoking Url Builder Dialog
Message
From
21/09/2005 14:45:09
 
 
To
21/09/2005 12:10:49
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01051591
Message ID:
01051741
Views:
7
Hi again Bonnie,

Yep, the article revealed what had to be done. Basically you add design time support by adding custom attributes to the public property, so my Url property with the attributes becomes:
[Browsable(true), Category("Behavior"), Description("URL to redirect the user to when the count down ends. If this property is blank, no redirection takes place."), DefaultValue(""), Bindable(true), Editor("System.Web.UI.Design.UrlEditor", typeof(System.Drawing.Design.UITypeEditor))]
    public string NavigateUrl
    {
        get { return this._NavigateUrl; }
        set { this._NavigateUrl = value; }
}
The key attributes for my case are the "Browsable(...)" and "Editor(...)" attributes which invoke the appropriate editor for the Property in the design environment. Pretty cool, but difficult to find out the details from the documentation ... at least for me.

Bill

>Bill,
>
>I am not an ASP.NET person at all, but your question got me thinking because it's an interesting and perfectly valid thing to want to do. I figured that you would have to at least look at using Attributes, since they pretty much control design-time stuff. I did a search on MSDN for "attributes NavigateURL", and one of the pages is this:
>
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/ASPNet-AddDesignTimeSupport.asp
>
>I didn't read the whole thing, but from what I browsed through, it sounds like it might have the answer to your question. Please let me know if this helps.
>
>~~Bonnie
>
>
>>In the Properties Window for the ASP.NET Hyperlink control, the NavigateUrl property invokes a dialog to select/build the desired Url. I have a Custom Control that has a similar Url custom property string. How do you get the Properties Window interface for the custom property to display the dialog to the user to build the Url? Haven't been able to find anything in the Help or Google on this.
>>
>>Thanks,
>>Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform