TenantSetHostUrlDialog.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.Object
The object that sends the event.
- e
Type: System.EventArgs
The data for the event.
Remarks
This method validates whether the URL entered in TxtProfilePageHostUrl is valid, and 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.