C# Class ActivEarth.Account.EditProfile

Mostra file Open project: mlcamilli/ActivEarth

Protected Properties

Property Type Description
btnCancel global::System.Web.UI.WebControls.Button
btnSaveChanges global::System.Web.UI.WebControls.Button
ddlGender global::System.Web.UI.WebControls.DropDownList
deletePhoto global::System.Web.UI.WebControls.CheckBox
deletePhotoLabel global::System.Web.UI.WebControls.Label
lblUserName global::System.Web.UI.WebControls.Label
pictureFile global::System.Web.UI.WebControls.FileUpload
pictureLabel global::System.Web.UI.WebControls.Label
pictureValidator global::System.Web.UI.WebControls.RegularExpressionValidator
tbAge global::System.Web.UI.WebControls.TextBox
tbCity global::System.Web.UI.WebControls.TextBox
tbEmail global::System.Web.UI.WebControls.TextBox
tbFirstName global::System.Web.UI.WebControls.TextBox
tbHeight global::System.Web.UI.WebControls.TextBox
tbLastName global::System.Web.UI.WebControls.TextBox
tbState global::System.Web.UI.WebControls.TextBox
tbWeight global::System.Web.UI.WebControls.TextBox

Protected Methods

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

Cancel button click

Page_Load ( object sender, EventArgs e ) : void

Load the page

SaveUserProfile ( object sender, EventArgs e ) : void

Save button click

Private Methods

Method Description
createSquarePhotoSize ( string originalPath, string sizeName, int userID, int squareImgLen ) : void

Creates a square cut of the image at originalPath and places it in /Images/Account/UserProfile/sizeName/*subdirectory*/userID.png

deletePhotos ( User user ) : void

Delete profile photo

getSizedIconPath ( int userID, string sizeName, string fileExtension ) : string

Gets the absolute path to a particular image of named size. Current sizes: - icon: a 150x150 icon for the user

getUploadPath ( int userID, string fileExtension ) : string

Gets the absolute path to the upload directory for user photos.

imageDirPath ( string dirName ) : string

Gets the absolute path to an user image directory on the server.

resizeIcon ( string originalPath, int userID ) : void

Creates an image of size "icon".

userImageDirPath ( string dirName, int userID ) : string

Like imageDirPath except will give the exact directory the users image is in.

Method Details

CancelSaveUserProfile() protected method

Cancel button click
protected CancelSaveUserProfile ( object sender, EventArgs e ) : void
sender object Object that requested the page load
e EventArgs The event arguments.
return void

Page_Load() protected method

Load 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

SaveUserProfile() protected method

Save button click
protected SaveUserProfile ( object sender, EventArgs e ) : void
sender object Object that requested the page load
e EventArgs The event arguments.
return void

Property Details

btnCancel protected_oe property

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

btnSaveChanges protected_oe property

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

ddlGender protected_oe property

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

deletePhoto protected_oe property

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

deletePhotoLabel protected_oe property

deletePhotoLabel control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Label deletePhotoLabel
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

pictureFile protected_oe property

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

pictureLabel protected_oe property

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

pictureValidator protected_oe property

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

tbAge protected_oe property

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

tbCity protected_oe property

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

tbEmail protected_oe property

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

tbFirstName protected_oe property

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

tbHeight protected_oe property

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

tbLastName protected_oe property

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

tbState protected_oe property

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

tbWeight protected_oe property

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