C# Class ActivEarth.SiteMaster

This class represent the Site Master page, used after user logged in.
Inheritance: System.Web.UI.MasterPage
Show file 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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