C# Класс RockWeb.Blocks.Core.CampusContextSetter

Наследование: Rock.Web.UI.RockBlock
Показать файл Открыть проект

Защищенные методы

Метод Описание
Block_BlockUpdated ( object sender, EventArgs e ) : void

Handles the BlockUpdated event of the control.

LoadDropdowns ( ) : void

Loads the campuses

OnInit ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.Init event.

OnLoad ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.Load event.

SetCampusContext ( int campusId, bool refreshPage = false ) : Campus

Sets the campus context.

rptCampuses_ItemCommand ( object source, System.Web.UI.WebControls.RepeaterCommandEventArgs e ) : void

Handles the ItemCommand event of the rptCampuses control.

Приватные методы

Метод Описание
GetIPAddress ( ) : string

Gets the ip address. From: http://stackoverflow.com/questions/735350/how-to-get-a-users-client-ip-address-in-asp-net

SetCampus ( ) : void

Описание методов

Block_BlockUpdated() защищенный Метод

Handles the BlockUpdated event of the control.
protected Block_BlockUpdated ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
Результат void

LoadDropdowns() защищенный Метод

Loads the campuses
protected LoadDropdowns ( ) : void
Результат void

OnInit() защищенный Метод

Raises the E:System.Web.UI.Control.Init event.
protected OnInit ( EventArgs e ) : void
e System.EventArgs An object that contains the event data.
Результат void

OnLoad() защищенный Метод

Raises the E:System.Web.UI.Control.Load event.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs The object that contains the event data.
Результат void

SetCampusContext() защищенный Метод

Sets the campus context.
protected SetCampusContext ( int campusId, bool refreshPage = false ) : Campus
campusId int The campus identifier.
refreshPage bool if set to true [refresh page].
Результат Campus

rptCampuses_ItemCommand() защищенный Метод

Handles the ItemCommand event of the rptCampuses control.
protected rptCampuses_ItemCommand ( object source, System.Web.UI.WebControls.RepeaterCommandEventArgs e ) : void
source object The source of the event.
e System.Web.UI.WebControls.RepeaterCommandEventArgs The instance containing the event data.
Результат void