C# Class FileUploadTest._Default

Inheritance: System.Web.UI.Page
Afficher le fichier Open project: candanbolukbas/Secure-Programming-Samples

Protected Properties

Свойство Type Description
Button1 global::System.Web.UI.WebControls.Button
FileUpload1 global::System.Web.UI.WebControls.FileUpload
lblStatus global::System.Web.UI.WebControls.Label

Méthodes publiques

Méthode Description
CheckTrueImageType ( ) : bool
IsImage ( ) : bool
IsImage ( System.Web.HttpPostedFile myFile ) : bool

Méthodes protégées

Méthode Description
Button1_Click ( object sender, EventArgs e ) : void
Page_Load ( object sender, EventArgs e ) : void

Private Methods

Méthode Description
CompareArray ( byte a1, byte a2 ) : bool

Method Details

Button1_Click() protected méthode

protected Button1_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

CheckTrueImageType() public méthode

public CheckTrueImageType ( ) : bool
Résultat bool

IsImage() public méthode

public IsImage ( ) : bool
Résultat bool

IsImage() public static méthode

public static IsImage ( System.Web.HttpPostedFile myFile ) : bool
myFile System.Web.HttpPostedFile
Résultat bool

Page_Load() protected méthode

protected Page_Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

Property Details

Button1 protected_oe property

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

FileUpload1 protected_oe property

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

lblStatus protected_oe property

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