C# Класс ActivEarth.Account.EditProfile

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

CancelSaveUserProfile() защищенный Метод

Cancel button click
protected CancelSaveUserProfile ( object sender, EventArgs e ) : void
sender object Object that requested the page load
e EventArgs The event arguments.
Результат void

Page_Load() защищенный Метод

Load the page
protected Page_Load ( object sender, EventArgs e ) : void
sender object Object that requested the page load
e EventArgs The event arguments.
Результат void

SaveUserProfile() защищенный Метод

Save button click
protected SaveUserProfile ( object sender, EventArgs e ) : void
sender object Object that requested the page load
e EventArgs The event arguments.
Результат void

Описание свойств

btnCancel защищенное свойство

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
Результат global::System.Web.UI.WebControls.Button

btnSaveChanges защищенное свойство

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
Результат global::System.Web.UI.WebControls.Button

ddlGender защищенное свойство

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
Результат global::System.Web.UI.WebControls.DropDownList

deletePhoto защищенное свойство

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
Результат global::System.Web.UI.WebControls.CheckBox

deletePhotoLabel защищенное свойство

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
Результат global::System.Web.UI.WebControls.Label

lblUserName защищенное свойство

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
Результат global::System.Web.UI.WebControls.Label

pictureFile защищенное свойство

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
Результат global::System.Web.UI.WebControls.FileUpload

pictureLabel защищенное свойство

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
Результат global::System.Web.UI.WebControls.Label

pictureValidator защищенное свойство

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
Результат global::System.Web.UI.WebControls.RegularExpressionValidator

tbAge защищенное свойство

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
Результат global::System.Web.UI.WebControls.TextBox

tbCity защищенное свойство

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
Результат global::System.Web.UI.WebControls.TextBox

tbEmail защищенное свойство

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
Результат global::System.Web.UI.WebControls.TextBox

tbFirstName защищенное свойство

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
Результат global::System.Web.UI.WebControls.TextBox

tbHeight защищенное свойство

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
Результат global::System.Web.UI.WebControls.TextBox

tbLastName защищенное свойство

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
Результат global::System.Web.UI.WebControls.TextBox

tbState защищенное свойство

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
Результат global::System.Web.UI.WebControls.TextBox

tbWeight защищенное свойство

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
Результат global::System.Web.UI.WebControls.TextBox