C# Class contact, ReSharperCourse

Inheritance: System.Web.UI.Page
Mostra file Open project: rasmuskl/ReSharperCourse Class Usage Examples

Private Properties

Property Type Description
GetCookie void
SendEmail bool
SetCookie void
SetFocus void
btnSend_Click void

Public Methods

Method Description
GetCallbackResult ( ) : string
RaiseCallbackEvent ( string eventArgument ) : void

Protected Methods

Method Description
OnLoad ( EventArgs e ) : void

Private Methods

Method Description
GetCookie ( ) : void

Gets the cookie with visitor information if any is set. Then fills the contact information fields in the form.

SendEmail ( string email, string name, string subject, string message ) : bool
SetCookie ( ) : void

Sets a cookie with the entered visitor information so it can be prefilled on next visit.

SetFocus ( ) : void

Sets the focus on the first empty textbox.

btnSend_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnSend control.

Method Details

GetCallbackResult() public method

public GetCallbackResult ( ) : string
return string

OnLoad() protected method

protected OnLoad ( EventArgs e ) : void
e EventArgs
return void

RaiseCallbackEvent() public method

public RaiseCallbackEvent ( string eventArgument ) : void
eventArgument string
return void