C# Class ActivEarth.Competition.Contests.ContestCreationPage

显示文件 Open project: mlcamilli/ActivEarth

Protected Properties

Property Type Description
ContestNameLabel global::System.Web.UI.WebControls.Label
ContestNameRequired global::System.Web.UI.WebControls.RequiredFieldValidator
CreateContestButton global::System.Web.UI.WebControls.Button
CreateContestValidationSummary global::System.Web.UI.WebControls.ValidationSummary
ErrorMessage global::System.Web.UI.WebControls.Literal
Label1 global::System.Web.UI.WebControls.Label
ToolKitScript global::AjaxControlToolkit.ToolkitScriptManager
chkContestSearchable global::System.Web.UI.WebControls.CheckBox
contestDescriptionLabel global::System.Web.UI.WebControls.Label
contestEndDateCalender global::AjaxControlToolkit.CalendarExtender
contestEndDateLabel global::System.Web.UI.WebControls.Label
contestEndDateRequired global::System.Web.UI.WebControls.RequiredFieldValidator
contestEndFormat global::System.Web.UI.WebControls.RegularExpressionValidator
contestEndGoalLabel global::System.Web.UI.WebControls.Label
contestEndsAfterStart global::System.Web.UI.WebControls.CustomValidator
contestModeGoalPanel global::System.Web.UI.WebControls.Panel
contestModeGoalRequired global::System.Web.UI.WebControls.RequiredFieldValidator
contestModeLabel global::System.Web.UI.WebControls.Label
contestModeTimePanel global::System.Web.UI.WebControls.Panel
contestStartAfterToday global::System.Web.UI.WebControls.CustomValidator
contestStartDateCalender global::AjaxControlToolkit.CalendarExtender
contestStartDateLabel global::System.Web.UI.WebControls.Label
contestStartFormat global::System.Web.UI.WebControls.RegularExpressionValidator
contestStartRequired global::System.Web.UI.WebControls.RequiredFieldValidator
contestTypeLabel global::System.Web.UI.WebControls.Label
ddlContestMode global::System.Web.UI.WebControls.DropDownList
ddlContestType global::System.Web.UI.WebControls.DropDownList
ddlStatisticMeasured global::System.Web.UI.WebControls.DropDownList
displayEndDateCalender global::System.Web.UI.WebControls.ImageButton
displayStartDateCalender global::System.Web.UI.WebControls.ImageButton
lblContestSearchable global::System.Web.UI.WebControls.Label
txbContestDescription global::System.Web.UI.WebControls.TextBox
txbContestEndDate global::System.Web.UI.WebControls.TextBox
txbContestEndGoal global::System.Web.UI.WebControls.TextBox
txbContestEndGoalFilter global::AjaxControlToolkit.FilteredTextBoxExtender
txbContestName global::System.Web.UI.WebControls.TextBox
txbContestStartDate global::System.Web.UI.WebControls.TextBox

Protected Methods

Method Description
CreateContest ( object sender, EventArgs e ) : void

Click event for the Create Contest button. Creates a Contest from the user supplied fields.

Page_Load ( object sender, EventArgs e ) : void

Loads the page.

ValidateEndDate ( object source, ServerValidateEventArgs args ) : void

Used to validate that the end date of a contest is on or after the start date.

ValidateStartDate ( object source, ServerValidateEventArgs args ) : void

Used to validate that the start date of a contest is after the current date.

ddlContestMode_SelectedIndexChanged ( object sender, EventArgs e ) : void

Index changed event for contest mode selection. Used to update the user fields when the contest mode is changed.

Private Methods

Method Description
SetModeDisplay ( ) : void

Updates the display on the page to display the correct Contest end mode entry.

Method Details

CreateContest() protected method

Click event for the Create Contest button. Creates a Contest from the user supplied fields.
protected CreateContest ( object sender, EventArgs e ) : void
sender object Object that sent the event
e EventArgs The event arguments.
return void

Page_Load() protected method

Loads the page.
protected Page_Load ( object sender, EventArgs e ) : void
sender object Object that requested the page load.
e EventArgs The event arguments.
return void

ValidateEndDate() protected method

Used to validate that the end date of a contest is on or after the start date.
protected ValidateEndDate ( object source, ServerValidateEventArgs args ) : void
source object
args ServerValidateEventArgs
return void

ValidateStartDate() protected method

Used to validate that the start date of a contest is after the current date.
protected ValidateStartDate ( object source, ServerValidateEventArgs args ) : void
source object
args ServerValidateEventArgs
return void

ddlContestMode_SelectedIndexChanged() protected method

Index changed event for contest mode selection. Used to update the user fields when the contest mode is changed.
protected ddlContestMode_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object Object that sent the event
e EventArgs The event arguments.
return void

Property Details

ContestNameLabel protected_oe property

ContestNameLabel control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Label ContestNameLabel
return global::System.Web.UI.WebControls.Label

ContestNameRequired protected_oe property

ContestNameRequired control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.RequiredFieldValidator ContestNameRequired
return global::System.Web.UI.WebControls.RequiredFieldValidator

CreateContestButton protected_oe property

CreateContestButton control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Button CreateContestButton
return global::System.Web.UI.WebControls.Button

CreateContestValidationSummary protected_oe property

CreateContestValidationSummary control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.ValidationSummary CreateContestValidationSummary
return global::System.Web.UI.WebControls.ValidationSummary

ErrorMessage protected_oe property

ErrorMessage control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal ErrorMessage
return global::System.Web.UI.WebControls.Literal

Label1 protected_oe property

Label1 control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Label Label1
return global::System.Web.UI.WebControls.Label

ToolKitScript protected_oe property

ToolKitScript control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::AjaxControlToolkit.ToolkitScriptManager ToolKitScript
return global::AjaxControlToolkit.ToolkitScriptManager

chkContestSearchable protected_oe property

chkContestSearchable control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.CheckBox chkContestSearchable
return global::System.Web.UI.WebControls.CheckBox

contestDescriptionLabel protected_oe property

contestDescriptionLabel control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Label contestDescriptionLabel
return global::System.Web.UI.WebControls.Label

contestEndDateCalender protected_oe property

contestEndDateCalender control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::AjaxControlToolkit.CalendarExtender contestEndDateCalender
return global::AjaxControlToolkit.CalendarExtender

contestEndDateLabel protected_oe property

contestEndDateLabel control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Label contestEndDateLabel
return global::System.Web.UI.WebControls.Label

contestEndDateRequired protected_oe property

contestEndDateRequired control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.RequiredFieldValidator contestEndDateRequired
return global::System.Web.UI.WebControls.RequiredFieldValidator

contestEndFormat protected_oe property

contestEndFormat control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.RegularExpressionValidator contestEndFormat
return global::System.Web.UI.WebControls.RegularExpressionValidator

contestEndGoalLabel protected_oe property

contestEndGoalLabel control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Label contestEndGoalLabel
return global::System.Web.UI.WebControls.Label

contestEndsAfterStart protected_oe property

contestEndsAfterStart control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.CustomValidator contestEndsAfterStart
return global::System.Web.UI.WebControls.CustomValidator

contestModeGoalPanel protected_oe property

contestModeGoalPanel control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Panel contestModeGoalPanel
return global::System.Web.UI.WebControls.Panel

contestModeGoalRequired protected_oe property

contestModeGoalRequired control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.RequiredFieldValidator contestModeGoalRequired
return global::System.Web.UI.WebControls.RequiredFieldValidator

contestModeLabel protected_oe property

contestModeLabel control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Label contestModeLabel
return global::System.Web.UI.WebControls.Label

contestModeTimePanel protected_oe property

contestModeTimePanel control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Panel contestModeTimePanel
return global::System.Web.UI.WebControls.Panel

contestStartAfterToday protected_oe property

contestStartAfterToday control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.CustomValidator contestStartAfterToday
return global::System.Web.UI.WebControls.CustomValidator

contestStartDateCalender protected_oe property

contestStartDateCalender control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::AjaxControlToolkit.CalendarExtender contestStartDateCalender
return global::AjaxControlToolkit.CalendarExtender

contestStartDateLabel protected_oe property

contestStartDateLabel control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Label contestStartDateLabel
return global::System.Web.UI.WebControls.Label

contestStartFormat protected_oe property

contestStartFormat control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.RegularExpressionValidator contestStartFormat
return global::System.Web.UI.WebControls.RegularExpressionValidator

contestStartRequired protected_oe property

contestStartRequired control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.RequiredFieldValidator contestStartRequired
return global::System.Web.UI.WebControls.RequiredFieldValidator

contestTypeLabel protected_oe property

contestTypeLabel control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Label contestTypeLabel
return global::System.Web.UI.WebControls.Label

ddlContestMode protected_oe property

ddlContestMode control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.DropDownList ddlContestMode
return global::System.Web.UI.WebControls.DropDownList

ddlContestType protected_oe property

ddlContestType control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.DropDownList ddlContestType
return global::System.Web.UI.WebControls.DropDownList

ddlStatisticMeasured protected_oe property

ddlStatisticMeasured control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.DropDownList ddlStatisticMeasured
return global::System.Web.UI.WebControls.DropDownList

displayEndDateCalender protected_oe property

displayEndDateCalender control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.ImageButton displayEndDateCalender
return global::System.Web.UI.WebControls.ImageButton

displayStartDateCalender protected_oe property

displayStartDateCalender control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.ImageButton displayStartDateCalender
return global::System.Web.UI.WebControls.ImageButton

lblContestSearchable protected_oe property

lblContestSearchable control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Label lblContestSearchable
return global::System.Web.UI.WebControls.Label

txbContestDescription protected_oe property

txbContestDescription control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.TextBox txbContestDescription
return global::System.Web.UI.WebControls.TextBox

txbContestEndDate protected_oe property

txbContestEndDate control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.TextBox txbContestEndDate
return global::System.Web.UI.WebControls.TextBox

txbContestEndGoal protected_oe property

txbContestEndGoal control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.TextBox txbContestEndGoal
return global::System.Web.UI.WebControls.TextBox

txbContestEndGoalFilter protected_oe property

txbContestEndGoalFilter control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::AjaxControlToolkit.FilteredTextBoxExtender txbContestEndGoalFilter
return global::AjaxControlToolkit.FilteredTextBoxExtender

txbContestName protected_oe property

txbContestName control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.TextBox txbContestName
return global::System.Web.UI.WebControls.TextBox

txbContestStartDate protected_oe property

txbContestStartDate control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.TextBox txbContestStartDate
return global::System.Web.UI.WebControls.TextBox