C# Class ActivEarth.Groups.CreateGroup

Inheritance: System.Web.UI.Page
Exibir arquivo Open project: mlcamilli/ActivEarth

Protected Properties

Property Type Description
AddHashTagButton global::System.Web.UI.WebControls.Button
CancelButton global::System.Web.UI.WebControls.Button
ClearHashTagsButton global::System.Web.UI.WebControls.Button
CreateGroupButton global::System.Web.UI.WebControls.Button
DescriptionLabel global::System.Web.UI.WebControls.Label
DescriptionRequired global::System.Web.UI.WebControls.RequiredFieldValidator
ErrorMessage global::System.Web.UI.WebControls.Literal
GroupNameLabel global::System.Web.UI.WebControls.Label
GroupNameRequired global::System.Web.UI.WebControls.RequiredFieldValidator
RegisterGroupValidationSummary global::System.Web.UI.WebControls.ValidationSummary
lblAllHashTags global::System.Web.UI.WebControls.Label
lblHashTag global::System.Web.UI.WebControls.Label
lblHashTags global::System.Web.UI.WebControls.Label
txbDescription global::System.Web.UI.WebControls.TextBox
txbGroupName global::System.Web.UI.WebControls.TextBox
txbHashTag global::System.Web.UI.WebControls.TextBox

Protected Methods

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

Method called when the Add Hashtag Button is clicked. Adds the text in txbHashTag to the list of Hashtags and clears the text in txbHashtag.

Cancel ( object sender, EventArgs e ) : void

Method called when the Cancel Button is clicked. Redirects the user back to the Groups page.

CreateNewGroup ( object sender, EventArgs e ) : void

Method called when the Create Group Button is clicked. Pulls information from the text boxes on the page, adds a welcome message to the Group wall, and inserts the new group into the Database.

Page_Load ( object sender, EventArgs e ) : void

Prepares the list of hashtags when the page loads. Other fields are empty for the new Group. Redirects if the User is not logged in.

RemoveHashTags ( object sender, EventArgs e ) : void

Method called when the Remove Hashtags Button is clicked. Clears the list of Hashtags.

Method Details

AddHashTag() protected method

Method called when the Add Hashtag Button is clicked. Adds the text in txbHashTag to the list of Hashtags and clears the text in txbHashtag.
protected AddHashTag ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Cancel() protected method

Method called when the Cancel Button is clicked. Redirects the user back to the Groups page.
protected Cancel ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

CreateNewGroup() protected method

Method called when the Create Group Button is clicked. Pulls information from the text boxes on the page, adds a welcome message to the Group wall, and inserts the new group into the Database.
protected CreateNewGroup ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Page_Load() protected method

Prepares the list of hashtags when the page loads. Other fields are empty for the new Group. Redirects if the User is not logged in.
protected Page_Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

RemoveHashTags() protected method

Method called when the Remove Hashtags Button is clicked. Clears the list of Hashtags.
protected RemoveHashTags ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Property Details

AddHashTagButton protected_oe property

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

CancelButton protected_oe property

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

ClearHashTagsButton protected_oe property

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

CreateGroupButton protected_oe property

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

DescriptionLabel protected_oe property

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

DescriptionRequired protected_oe property

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

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

GroupNameLabel protected_oe property

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

GroupNameRequired protected_oe property

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

RegisterGroupValidationSummary protected_oe property

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

lblAllHashTags protected_oe property

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

lblHashTag protected_oe property

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

lblHashTags protected_oe property

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

txbDescription protected_oe property

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

txbGroupName protected_oe property

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

txbHashTag protected_oe property

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