}//public String FaxServerName /// <summary>ButtonSubmit_Click().</summary> public void ButtonSubmit_Click ( Object sender, EventArgs e ) { String exceptionMessage = null; UtilityFaxArgument utilityFaxArgument = null; utilityFaxArgument = new UtilityFaxArgument ( FaxDocument, FaxServerName, FaxNumber ); UtilityFax.FaxSend ( ref utilityFaxArgument, ref exceptionMessage ); if ( exceptionMessage != null ) { Feedback = exceptionMessage; return; }//if ( exceptionMessage != null ) }//public void ButtonSubmit_Click()
/// <summary>Page Load.</summary> public void Page_Load ( object sender, EventArgs e ) { String exceptionMessage = null; String faxServerName = null; String faxNumber = null; ServerMapPath = this.MapPath(""); /* FilenameConfigurationXml = Server.MapPath( FilenameConfigurationXml ); */ if ( ServerMapPath != null) { FilenameConfigurationXml = ServerMapPath + @"\" + FilenameConfigurationXml; }//if ( ServerMapPath != null) if ( exceptionMessage != null ) { Feedback = exceptionMessage; return; }//if ( exceptionMessage != null ) UtilityFax.ConfigurationXml ( ref FilenameConfigurationXml, ref exceptionMessage, ref DatabaseConnectionString, ref faxServerName, ref faxNumber ); DefaultFaxNumber = faxNumber; DefaultFaxServerName = faxServerName; FaxServerName = faxServerName; FaxNumber = faxNumber; if ( exceptionMessage != null ) { Feedback = exceptionMessage; return; }//if ( exceptionMessage != null ) }//Page_Load