C# Class Subtext.Web.Controls.ConnectionStringBuilder

Inheritance: System.Web.UI.WebControls.WebControl, INamingContainer
Mostra file Open project: ayende/Subtext Class Usage Examples

Protected Properties

Property Type Description
authMode System.Web.UI.WebControls.RadioButtonList
connResult System.Web.UI.WebControls.Label
databaseName System.Web.UI.WebControls.DropDownList
machineName System.Web.UI.WebControls.DropDownList
otherMachineName System.Web.UI.WebControls.TextBox
password System.Web.UI.WebControls.TextBox
refreshDatabase System.Web.UI.WebControls.LinkButton
testConnection System.Web.UI.WebControls.Button
username System.Web.UI.WebControls.TextBox

Private Properties

Property Type Description
BuildAdvancedBuilder System.Web.UI.HtmlControls.HtmlTable
BuildAuthenticationRow System.Web.UI.HtmlControls.HtmlTableRow
BuildDatabaseRow System.Web.UI.HtmlControls.HtmlTableRow
BuildMainTable System.Web.UI.HtmlControls.HtmlTable
BuildPasswordRow System.Web.UI.HtmlControls.HtmlTableRow
BuildServerNameRow System.Web.UI.HtmlControls.HtmlTableRow
BuildTestConnRow System.Web.UI.HtmlControls.HtmlTableRow
BuildUsernameRow System.Web.UI.HtmlControls.HtmlTableRow
CheckSQLDMO bool
InitializeComponent void
PopulateDatabaseNamesCmb void
PopulateServerNameCmb void
SetConnectionString void
authMode_SelectedIndexChanged void
refreshDatabase_Click void
testConnection_Click void

Protected Methods

Method Description
CreateChildControls ( ) : void

Creates the child controls for this control.

LoadData ( ) : void
OnInit ( EventArgs e ) : void
OnPreRender ( EventArgs e ) : void

Called during the page init event.

Private Methods

Method Description
BuildAdvancedBuilder ( ) : System.Web.UI.HtmlControls.HtmlTable

Build the advanced Connection String Builder Build the UI, attach events, and populate the fields

BuildAuthenticationRow ( ) : System.Web.UI.HtmlControls.HtmlTableRow
BuildDatabaseRow ( ) : System.Web.UI.HtmlControls.HtmlTableRow
BuildMainTable ( ) : System.Web.UI.HtmlControls.HtmlTable

Build the main UI Table

BuildPasswordRow ( ) : System.Web.UI.HtmlControls.HtmlTableRow
BuildServerNameRow ( ) : System.Web.UI.HtmlControls.HtmlTableRow
BuildTestConnRow ( ) : System.Web.UI.HtmlControls.HtmlTableRow
BuildUsernameRow ( ) : System.Web.UI.HtmlControls.HtmlTableRow
CheckSQLDMO ( ) : bool
InitializeComponent ( ) : void
PopulateDatabaseNamesCmb ( ) : void

Populate the databases dropdown list with the DBs found on the specified server

PopulateServerNameCmb ( ) : void

Uses SQL-DMO to retrieve all servers available on the network

SetConnectionString ( ) : void
authMode_SelectedIndexChanged ( object sender, EventArgs e ) : void
refreshDatabase_Click ( object sender, EventArgs e ) : void
testConnection_Click ( object sender, EventArgs e ) : void

Method Details

CreateChildControls() protected method

Creates the child controls for this control.
protected CreateChildControls ( ) : void
return void

LoadData() protected method

protected LoadData ( ) : void
return void

OnInit() protected method

protected OnInit ( EventArgs e ) : void
e System.EventArgs
return void

OnPreRender() protected method

Called during the page init event.
protected OnPreRender ( EventArgs e ) : void
e System.EventArgs
return void

Property Details

authMode protected_oe property

protected RadioButtonList,System.Web.UI.WebControls authMode
return System.Web.UI.WebControls.RadioButtonList

connResult protected_oe property

protected Label,System.Web.UI.WebControls connResult
return System.Web.UI.WebControls.Label

databaseName protected_oe property

protected DropDownList,System.Web.UI.WebControls databaseName
return System.Web.UI.WebControls.DropDownList

machineName protected_oe property

protected DropDownList,System.Web.UI.WebControls machineName
return System.Web.UI.WebControls.DropDownList

otherMachineName protected_oe property

protected TextBox,System.Web.UI.WebControls otherMachineName
return System.Web.UI.WebControls.TextBox

password protected_oe property

protected TextBox,System.Web.UI.WebControls password
return System.Web.UI.WebControls.TextBox

refreshDatabase protected_oe property

protected LinkButton,System.Web.UI.WebControls refreshDatabase
return System.Web.UI.WebControls.LinkButton

testConnection protected_oe property

protected Button,System.Web.UI.WebControls testConnection
return System.Web.UI.WebControls.Button

username protected_oe property

protected TextBox,System.Web.UI.WebControls username
return System.Web.UI.WebControls.TextBox