UrlBuilder Class
.NET Framework 3.0
Starts a URL editor that allows a user to select or create a URL. This class cannot be inherited.
Namespace: System.Web.UI.Design
Assembly: System.Design (in system.design.dll)
Assembly: System.Design (in system.design.dll)
The following code example shows how to use the BuildUrl method to launch a URL builder from a menu command at design time.
// This method handles the "Launch Url Builder UI" menu command. // Invokes the BuildUrl method of the System.Web.UI.Design.UrlBuilder. private void launchUrlBuilder(object sender, EventArgs e) { // Create a parent control. System.Windows.Forms.Control c = new System.Windows.Forms.Control(); c.CreateControl(); // Launch the Url Builder using the specified control // parent, initial URL, empty relative base URL path, // window caption, filter string and URLBuilderOptions value. UrlBuilder.BuildUrl( this.Component, c, "http://www.example.com", "Select a URL", "", UrlBuilderOptions.None); }
- SecurityPermission for calling unmanaged code. Demand value: Demand; Associated enumeration: UnmanagedCode.
Community Additions
ADD
Show: