}//public void ButtonReset_Click()

  /// <summary>ButtonSubmit_Click().</summary>
  public void ButtonSubmit_Click
  (
   Object sender, 
   EventArgs e
  )
  {
   String   exceptionMessage  =  null;
   Contact  contact           =  null;

   UtilityXml.XmlDocumentNodeInnerText
   (
        FilenameConfigurationXml,
    ref exceptionMessage,         
        UtilityContact.XPathDatabaseConnectionString,
    ref DatabaseConnectionString
   );
   
   contact = new Contact
   (
    SequenceOrderId,
    FirstName,
    LastName,
    OtherName,
    Company,
    Prefix,
    Suffix,
    Commentary,
    ScriptureReference
   );
   
   Session["contact"] = contact;
      
   UtilityContact.ContactDetailSave
   (
        DatabaseConnectionString,
    ref exceptionMessage,
    ref contact
   );
   
  }//ButtonSubmit_Click()
Exemplo n.º 2
0
  }//Page_Load

  /// <summary>ContactBrowse()</summary>
  public void ContactBrowse()
  {
   String       exceptionMessage = null;
   IDataReader  iDataReader      = null;

   UtilityContact.ContactBrowse
   (
    ref DatabaseConnectionString,
    ref exceptionMessage,
    ref iDataReader
   );

   RepeaterContact.DataSource = iDataReader;
   RepeaterContact.DataBind();

   if ( exceptionMessage != null )
   {
    Response.Write ( exceptionMessage );
    return;
   }//if ( exceptionMessage != null )
   
  }//public void RSSFeed()
  }//public String ScriptureReference
  
  /// <summary>Page Load.</summary>
  public void Page_Load
  (
   object     sender, 
   EventArgs  e
  ) 
  {

   String     exceptionMessage          =  null;
   
   int        sequenceOrderId           =  System.Convert.ToInt32( Request.QueryString["SequenceOrderId"] );
   
   DataSet    dataSetContact            =  null;
   DataSet[]  dataSetMultiple           =  new DataSet[ UtilityContact.SQLSelectContactDetailGridView.Length ];
      
   Contact    contact                   =  null;
   
   ServerMapPath = this.MapPath("");
   if ( ServerMapPath != null)
   {
    FilenameConfigurationXml = ServerMapPath + @"\" + FilenameConfigurationXml;
   }//if ( ServerMapPath != null)

   UtilityXml.XmlDocumentNodeInnerText
   (
        FilenameConfigurationXml,
    ref exceptionMessage,         
        UtilityContact.XPathDatabaseConnectionString,
    ref DatabaseConnectionString
   );

   if ( exceptionMessage != null )
   {
    Response.Write ( exceptionMessage );
    return;
   }//if ( exceptionMessage != null )
   
   UtilityContact.ContactDetail
   (
        DatabaseConnectionString,
    ref exceptionMessage,
    ref dataSetContact,
    ref sequenceOrderId,
    ref contact,
    ref dataSetMultiple
   );

   Session["contact"] = contact;
   Session["dataSetMultiple"] = dataSetMultiple;   

   if ( exceptionMessage != null )
   {
    Response.Write ( exceptionMessage );
    return;
   }//if ( exceptionMessage != null )

   /*
   UtilityDatabase.PrintValues( dataSet );
   
   Response.Write( dataSet.Tables.Count );
   Response.Write( dataSet.Tables["Table"].Rows.Count );
   */
   
   if ( Page.IsPostBack )
   {
   	return;
   }

   PageRefresh();
  
  }//Page_Load