C# Class ActivEarth.SiteMaster

This class represent the Site Master page, used after user logged in.
Inheritance: System.Web.UI.MasterPage
显示文件 Open project: mlcamilli/ActivEarth

Protected Properties

Property Type Description
CityNotFound global::System.Web.UI.WebControls.Label
DisplayWeatherControl1 global::ActivEarth.Objects.Profile.DisplayWeatherControl
HeadContent global::System.Web.UI.WebControls.ContentPlaceHolder
MainContent global::System.Web.UI.WebControls.ContentPlaceHolder
PostButton global::System.Web.UI.WebControls.Button
RecentActivityTable global::ActivEarth.Account.WallDisplay
_activityScoreImage global::System.Web.UI.WebControls.Image
hlEditProfile global::System.Web.UI.WebControls.HyperLink
hlLogin global::System.Web.UI.WebControls.HyperLink
hlRegister global::System.Web.UI.WebControls.HyperLink
lbLogOut global::System.Web.UI.WebControls.LinkButton
lblActivityScore global::System.Web.UI.WebControls.Label
lblGreenScore global::System.Web.UI.WebControls.Label
lblStatGasSavings global::System.Web.UI.WebControls.Label
lblUserLoggedIn global::System.Web.UI.WebControls.Label
lblUserName global::System.Web.UI.WebControls.Label
txbMessage global::System.Web.UI.WebControls.TextBox
txbTitle global::System.Web.UI.WebControls.TextBox
userIconImage global::System.Web.UI.WebControls.Image

Public Methods

Method Description
getUserImageUrl ( User user, string imageSizeName ) : string

Returns the relative url for an image. Current image sizes are: - icon: a 150x150 image for the user's profile

Protected Methods

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

Prepares the display of the User's Image, Name, Recent Activity, Weather information, and Statistics when the page loads.

PostMessage ( object sender, EventArgs e ) : void

Method called when the Post Button is clicked. Adds a Message to the User's Recent Activity using the text in txbTitle and txbMessage and including a time stamp.

UserLogOut ( object sender, EventArgs e ) : void

Method called when the User clicks the Log Out link. Removes the Users session information and redirects to the Home Page.

Method Details

Page_Load() protected method

Prepares the display of the User's Image, Name, Recent Activity, Weather information, and Statistics when the page loads.
protected Page_Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

PostMessage() protected method

Method called when the Post Button is clicked. Adds a Message to the User's Recent Activity using the text in txbTitle and txbMessage and including a time stamp.
protected PostMessage ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

UserLogOut() protected method

Method called when the User clicks the Log Out link. Removes the Users session information and redirects to the Home Page.
protected UserLogOut ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

getUserImageUrl() public method

Returns the relative url for an image. Current image sizes are: - icon: a 150x150 image for the user's profile
public getUserImageUrl ( User user, string imageSizeName ) : string
user ActivEarth.Objects.Profile.User The user to retrieve the image for.
imageSizeName string The name of the image size to retrieve.
return string

Property Details

CityNotFound protected_oe property

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

DisplayWeatherControl1 protected_oe property

DisplayWeatherControl1 control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::ActivEarth.Objects.Profile.DisplayWeatherControl DisplayWeatherControl1
return global::ActivEarth.Objects.Profile.DisplayWeatherControl

HeadContent protected_oe property

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

MainContent protected_oe property

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

PostButton protected_oe property

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

RecentActivityTable protected_oe property

RecentActivityTable control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::ActivEarth.Account.WallDisplay RecentActivityTable
return global::ActivEarth.Account.WallDisplay

_activityScoreImage protected_oe property

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

hlEditProfile protected_oe property

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

hlLogin protected_oe property

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

hlRegister protected_oe property

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

lbLogOut protected_oe property

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

lblActivityScore protected_oe property

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

lblGreenScore protected_oe property

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

lblStatGasSavings protected_oe property

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

lblUserLoggedIn protected_oe property

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

lblUserName protected_oe property

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

txbMessage protected_oe property

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

txbTitle protected_oe property

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

userIconImage protected_oe property

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