C# Class Rock.Web.UI.Controls.AddressControl

Inheritance: System.Web.UI.WebControls.CompositeControl, IRockControl
Exibir arquivo Open project: SparkDevNetwork/Rock Class Usage Examples

Private Properties

Property Type Description
BindCountries void
BindStates void
SetOrganizationAddressDefaults void

Public Methods

Method Description
AddressControl ( ) : System

Initializes a new instance of the AddressControl class.

GetDefaultCountry ( ) : string

Gets the default country.

GetDefaultState ( ) : string

Gets the default state.

GetValues ( Rock location ) : void

Gets the values.

RenderBaseControl ( System.Web.UI.HtmlTextWriter writer ) : void

Renders the base control.

RenderControl ( System.Web.UI.HtmlTextWriter writer ) : void

Outputs server control content to a provided T:System.Web.UI.HtmlTextWriter object and stores tracing information about the control if tracing is enabled.

SetValues ( Rock location ) : void

Sets the values.

_ddlCountry_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the _ddlCountry control.

Protected Methods

Method Description
CreateChildControls ( ) : void

Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.

Private Methods

Method Description
BindCountries ( ) : void

Binds the countries.

BindStates ( string country ) : void

Binds the states.

SetOrganizationAddressDefaults ( ) : void

Sets the organization address defaults.

Method Details

AddressControl() public method

Initializes a new instance of the AddressControl class.
public AddressControl ( ) : System
return System

CreateChildControls() protected method

Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
protected CreateChildControls ( ) : void
return void

GetDefaultCountry() public method

Gets the default country.
public GetDefaultCountry ( ) : string
return string

GetDefaultState() public method

Gets the default state.
public GetDefaultState ( ) : string
return string

GetValues() public method

Gets the values.
public GetValues ( Rock location ) : void
location Rock The location.
return void

RenderBaseControl() public method

Renders the base control.
public RenderBaseControl ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The writer.
return void

RenderControl() public method

Outputs server control content to a provided T:System.Web.UI.HtmlTextWriter object and stores tracing information about the control if tracing is enabled.
public RenderControl ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The object that receives the control content.
return void

SetValues() public method

Sets the values.
public SetValues ( Rock location ) : void
location Rock The location.
return void

_ddlCountry_SelectedIndexChanged() public method

Handles the SelectedIndexChanged event of the _ddlCountry control.
public _ddlCountry_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void