This documentation is archived and is not being maintained.

UrlBuilder.BuildUrl Method

Starts a URL picker to build a URL.

Overload List

Starts a URL picker to build a URL.

[Visual Basic] Overloads Public Shared Function BuildUrl(IComponent, Control, String, String, String) As String
[C#] public static string BuildUrl(IComponent, Control, string, string, string);
[C++] public: static String* BuildUrl(IComponent*, Control*, String*, String*, String*);
[JScript] public static function BuildUrl(IComponent, Control, String, String, String) : String;

Starts the URL picker to build a URL, using the specified UrlBuilderOptions.

[Visual Basic] Overloads Public Shared Function BuildUrl(IComponent, Control, String, String, String, UrlBuilderOptions) As String
[C#] public static string BuildUrl(IComponent, Control, string, string, string, UrlBuilderOptions);
[C++] public: static String* BuildUrl(IComponent*, Control*, String*, String*, String*, UrlBuilderOptions);
[JScript] public static function BuildUrl(IComponent, Control, String, String, String, UrlBuilderOptions) : String;

Example

[Visual Basic, C#, C++] Note   This example shows how to use one of the overloaded versions of BuildUrl. For other examples that might be available, see the individual overload topics.
[Visual Basic] 
' Create a parent control.
Dim c As 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.
System.Web.UI.Design.UrlBuilder.BuildUrl(Me.Component, c, "http://www.example.com", "Select a URL", "", UrlBuilderOptions.None)

[C#] 
// 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.
System.Web.UI.Design.UrlBuilder.BuildUrl(this.Component, c, "http://www.example.com", 
                                            "Select a URL", "", UrlBuilderOptions.None);                      

[C++] 
// 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, S"http://www.example.com",
   S"Select a URL", S"", UrlBuilderOptions::None);

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

UrlBuilder Class | UrlBuilder Members | System.Web.UI.Design Namespace

Show: