C# Class Carrotware.CMS.UI.Controls.GeneralUtilities

Show file Open project: ninianne98/CarrotCakeCMS

Public Methods

Method Description
BindDataBoundControl ( System.Web.UI.WebControls.DataBoundControl ctrl, object dataSource ) : void
BindList ( ListControl ctrl, object dataSource ) : void
BindList ( ListControl ctrl, object dataSource, string SelectedValue ) : void
BindListChooseOne ( ListControl ctrl, object dataSource ) : void
BindListChooseOne ( ListControl ctrl, object dataSource, string SelectedValue ) : void
BindListDefaultText ( ListControl ctrl, object dataSource, string SelectedValue, string EmptyChoiceText, string EmptyChoiceValue ) : void
BindOptionalBooleanList ( ListControl ctrl, string SelectedValue, string EmptyChoiceText, string EmptyChoiceValue, string TrueChoiceText, string FalseChoiceText ) : void
BindOptionalTrueFalseList ( ListControl ctrl ) : void
BindOptionalTrueFalseList ( ListControl ctrl, string SelectedValue ) : void
BindOptionalYesNoList ( ListControl ctrl ) : void
BindOptionalYesNoList ( ListControl ctrl, string SelectedValue ) : void
BindRepeater ( Repeater ctrl, object dataSource ) : void
GetCheckedItemGuids ( GridView grid, bool CollectState, string CheckBoxName, string HiddenName ) : List
GetCheckedItemGuidsByValue ( GridView grid, bool CollectState, string CheckBoxName ) : List
GetCheckedItemString ( GridView grid, bool CollectState, string CheckBoxName, string HiddenName ) : List
GetGuidIDFromQuery ( ) : System.Guid
GetGuidPageIDFromQuery ( ) : System.Guid
GetGuidParameterFromQuery ( string ParmName ) : System.Guid
GetNullableBoolValue ( ListControl ddl ) : bool?
GetSelectedGuid ( ListControl ddl ) : Guid?
GetSelectedInt ( ListControl ddl ) : int?
GetSelectedValue ( ListControl ddl ) : string
GetSelectedValues ( ListControl list ) : List
GetStringParameterFromQuery ( string ParmName ) : string
ResolvePath ( Control srcControl, string sPath ) : string
SelectListValue ( ListControl ctrl, string SelectedValue ) : void
SelectListValues ( ListControl list, List SelectedValues ) : void

Method Details

BindDataBoundControl() public static method

public static BindDataBoundControl ( System.Web.UI.WebControls.DataBoundControl ctrl, object dataSource ) : void
ctrl System.Web.UI.WebControls.DataBoundControl
dataSource object
return void

BindList() public static method

public static BindList ( ListControl ctrl, object dataSource ) : void
ctrl System.Web.UI.WebControls.ListControl
dataSource object
return void

BindList() public static method

public static BindList ( ListControl ctrl, object dataSource, string SelectedValue ) : void
ctrl System.Web.UI.WebControls.ListControl
dataSource object
SelectedValue string
return void

BindListChooseOne() public static method

public static BindListChooseOne ( ListControl ctrl, object dataSource ) : void
ctrl System.Web.UI.WebControls.ListControl
dataSource object
return void

BindListChooseOne() public static method

public static BindListChooseOne ( ListControl ctrl, object dataSource, string SelectedValue ) : void
ctrl System.Web.UI.WebControls.ListControl
dataSource object
SelectedValue string
return void

BindListDefaultText() public static method

public static BindListDefaultText ( ListControl ctrl, object dataSource, string SelectedValue, string EmptyChoiceText, string EmptyChoiceValue ) : void
ctrl System.Web.UI.WebControls.ListControl
dataSource object
SelectedValue string
EmptyChoiceText string
EmptyChoiceValue string
return void

BindOptionalBooleanList() public static method

public static BindOptionalBooleanList ( ListControl ctrl, string SelectedValue, string EmptyChoiceText, string EmptyChoiceValue, string TrueChoiceText, string FalseChoiceText ) : void
ctrl System.Web.UI.WebControls.ListControl
SelectedValue string
EmptyChoiceText string
EmptyChoiceValue string
TrueChoiceText string
FalseChoiceText string
return void

BindOptionalTrueFalseList() public static method

public static BindOptionalTrueFalseList ( ListControl ctrl ) : void
ctrl System.Web.UI.WebControls.ListControl
return void

BindOptionalTrueFalseList() public static method

public static BindOptionalTrueFalseList ( ListControl ctrl, string SelectedValue ) : void
ctrl System.Web.UI.WebControls.ListControl
SelectedValue string
return void

BindOptionalYesNoList() public static method

public static BindOptionalYesNoList ( ListControl ctrl ) : void
ctrl System.Web.UI.WebControls.ListControl
return void

BindOptionalYesNoList() public static method

public static BindOptionalYesNoList ( ListControl ctrl, string SelectedValue ) : void
ctrl System.Web.UI.WebControls.ListControl
SelectedValue string
return void

BindRepeater() public static method

public static BindRepeater ( Repeater ctrl, object dataSource ) : void
ctrl System.Web.UI.WebControls.Repeater
dataSource object
return void

GetCheckedItemGuids() public static method

public static GetCheckedItemGuids ( GridView grid, bool CollectState, string CheckBoxName, string HiddenName ) : List
grid System.Web.UI.WebControls.GridView
CollectState bool
CheckBoxName string
HiddenName string
return List

GetCheckedItemGuidsByValue() public static method

public static GetCheckedItemGuidsByValue ( GridView grid, bool CollectState, string CheckBoxName ) : List
grid System.Web.UI.WebControls.GridView
CollectState bool
CheckBoxName string
return List

GetCheckedItemString() public static method

public static GetCheckedItemString ( GridView grid, bool CollectState, string CheckBoxName, string HiddenName ) : List
grid System.Web.UI.WebControls.GridView
CollectState bool
CheckBoxName string
HiddenName string
return List

GetGuidIDFromQuery() public static method

public static GetGuidIDFromQuery ( ) : System.Guid
return System.Guid

GetGuidPageIDFromQuery() public static method

public static GetGuidPageIDFromQuery ( ) : System.Guid
return System.Guid

GetGuidParameterFromQuery() public static method

public static GetGuidParameterFromQuery ( string ParmName ) : System.Guid
ParmName string
return System.Guid

GetNullableBoolValue() public static method

public static GetNullableBoolValue ( ListControl ddl ) : bool?
ddl System.Web.UI.WebControls.ListControl
return bool?

GetSelectedGuid() public static method

public static GetSelectedGuid ( ListControl ddl ) : Guid?
ddl System.Web.UI.WebControls.ListControl
return Guid?

GetSelectedInt() public static method

public static GetSelectedInt ( ListControl ddl ) : int?
ddl System.Web.UI.WebControls.ListControl
return int?

GetSelectedValue() public static method

public static GetSelectedValue ( ListControl ddl ) : string
ddl System.Web.UI.WebControls.ListControl
return string

GetSelectedValues() public static method

public static GetSelectedValues ( ListControl list ) : List
list System.Web.UI.WebControls.ListControl
return List

GetStringParameterFromQuery() public static method

public static GetStringParameterFromQuery ( string ParmName ) : string
ParmName string
return string

ResolvePath() public static method

public static ResolvePath ( Control srcControl, string sPath ) : string
srcControl System.Web.UI.Control
sPath string
return string

SelectListValue() public static method

public static SelectListValue ( ListControl ctrl, string SelectedValue ) : void
ctrl System.Web.UI.WebControls.ListControl
SelectedValue string
return void

SelectListValues() public static method

public static SelectListValues ( ListControl list, List SelectedValues ) : void
list System.Web.UI.WebControls.ListControl
SelectedValues List
return void