SetHostUrlDialog.OkButton_Click Method
Handles the Click event of the OkButton control.
Namespace: Microsoft.SharePoint.Portal.WebControls
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Syntax
'Declaration
Protected Sub OkButton_Click ( _
sender As Object, _
e As EventArgs _
)
'Usage
Dim sender As Object
Dim e As EventArgs
Me.OkButton_Click(sender, e)
protected void OkButton_Click(
Object sender,
EventArgs e
)
Parameters
sender
Type: System.ObjectThe object sending the event.
- e
Type: System.EventArgs
Remarks
This method validates that the URL entered in TxtProfilePageHostUrl is valid, and if valid, sets the host site URL to the ProfilePageHostUrl property if the ChkBoxEnableProfileCreation is selected. Otherwise, the host site URL is set to an empty string.
The method registers a startup script that is used to close the dialog.