コード例 #1
0
  }//ButtonSubmit_Click() 
       
  /// <summary>Page Load.</summary>
  public void Page_Load
  (
   object     sender, 
   EventArgs  e
  ) 
  {
  
   string exceptionMessage = null;
   
   if (!Page.IsPostBack) 
   {
    DocumentUniqueId = System.Guid.NewGuid();
   }//if (!Page.IsPostBack)  

   serverMapPath = this.MapPath("");
   if ( serverMapPath != null)
   {
    filenameConfigurationXml = serverMapPath + @"\" + filenameConfigurationXml;
   }//if ( serverMapPath != null)
   UtilityXml.XmlDocumentNodeInnerText
   (
        filenameConfigurationXml,
    ref exceptionMessage,
        XPathDatabaseConnectionString,
    ref databaseConnectionString
   );
   if ( exceptionMessage != null )
   {
    return;
   }//if ( exceptionMessage != null ) 
   
  }//Page_Load
コード例 #2
0
  }//public static void ConfigurationXml()

  /// <summary>Read the XML Configuration file.</summary>
  public static void ConfigurationXml
  (
   ref String filenameConfigurationXml,
   ref String exceptionMessage,
   ref String databaseConnectionString,
   ref String sqlServerName
  )
  {
   UtilityXml.XmlDocumentNodeInnerText
   (
         filenameConfigurationXml,
     ref exceptionMessage,
         XPathDatabaseConnectionString,
     ref databaseConnectionString
   );

   UtilityXml.XmlDocumentNodeInnerText
   (
         filenameConfigurationXml,
     ref exceptionMessage,
         XPathSQLServerName,
     ref sqlServerName
   );

   if ( sqlServerName == null || sqlServerName == String.Empty )
   {
    sqlServerName = Environment.MachineName;
   }//if ( sqlServerName == null || sqlServerName == String.Empty ) 

  }//ConfigurationXml	 
コード例 #3
0
  /// <summary>Page Load.</summary>
  public void Page_Load
  (
   object     sender, 
   EventArgs  e
  ) 
  {

   String  exceptionMessage          =  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 )
   
   ContactBrowse();

  }//Page_Load
コード例 #4
0
  /// <summary>Page Load.</summary>
  public void Page_Load
  (
   object     sender, 
   EventArgs  e
  ) 
  {
   string              exceptionMessage                = null;
 
   serverMapPath = this.MapPath("");
   if ( serverMapPath != null)
   {
    filenameConfigurationXml = serverMapPath + @"\" + filenameConfigurationXml;
   }//if ( serverMapPath != null)
   if ( exceptionMessage != null )
   {
    Feedback = exceptionMessage;
    return;
   }//if ( exceptionMessage != null ) 
   UtilityXml.XmlDocumentNodeInnerText
   (
         filenameConfigurationXml,
     ref exceptionMessage,         
         GutenbergRogetThesaurusOfEnglishWordsAndPhrases.XPathDatabaseConnectionString,
     ref GutenbergRogetThesaurusOfEnglishWordsAndPhrases.DatabaseConnectionString
   );
   if ( exceptionMessage != null )
   {
    Feedback = exceptionMessage;
    return;
   }//if ( exceptionMessage != null ) 
  }//Page_Load
コード例 #5
0
  }//public static void ConfigurationXml()

  /// <summary>Read the XML Configuration file.</summary>
  public static void ConfigurationXml
  (
       string filenameConfigurationXml,
   ref string exceptionMessage,
   ref string databaseConnectionString,
   ref int    smtpPort,
   ref string smtpServer
  )
  {
   try
   {
    UtilityXml.XmlDocumentNodeInnerText
    (
          filenameConfigurationXml,
      ref exceptionMessage,
          XPathDatabaseConnectionString,
      ref databaseConnectionString
    );
    UtilityXml.GetNodeValue
    (
         filenameConfigurationXml,
     ref exceptionMessage,
         XPathPort,
     ref smtpPort
    );
    UtilityXml.GetNodeValue
    (
         filenameConfigurationXml,
     ref exceptionMessage,
         XPathServer,
     ref smtpServer
    );
   }//try
   catch ( Exception exception ) { UtilityException.ExceptionLog( exception, "Exception", ref exceptionMessage ); }
  }//ConfigurationXml	 
コード例 #6
0
  /// <summary>Page Load.</summary>
  public void Page_Load
  (
   object     sender, 
   EventArgs  e
  ) 
  {

   String  exceptionMessage  =  null;

   ServerMapPath = this.MapPath("");

   /* 
   FilenameConfigurationXml = Server.MapPath( FilenameConfigurationXml );
   */

   if ( ServerMapPath != null)
   {
    FilenameConfigurationXml = ServerMapPath + @"\" + FilenameConfigurationXml;
   }//if ( ServerMapPath != null)

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

   if ( exceptionMessage != null )
   {
    Feedback = exceptionMessage;
    return;
   }//if ( exceptionMessage != null )

  }//Page_Load
コード例 #7
0
  /// <summary>Page Load.</summary>
  public void Page_Load
  (
   object     sender, 
   EventArgs  e
  ) 
  {
   string              exceptionMessage                = null;
 
   serverMapPath = this.MapPath("");
   if ( serverMapPath != null)
   {
    filenameConfigurationXml = serverMapPath + @"\" + filenameConfigurationXml;
   }//if ( serverMapPath != null)
   if ( exceptionMessage != null )
   {
    Feedback = exceptionMessage;
    return;
   }//if ( exceptionMessage != null ) 

   UtilityXml.XmlDocumentNodeInnerText
   (
         filenameConfigurationXml,
     ref exceptionMessage,         
         GutenbergWebsterUnabridgedDictionary.XPathDatabaseConnectionString,
     ref GutenbergWebsterUnabridgedDictionary.DatabaseConnectionString
   );

   if ( exceptionMessage != null )
   {
    Feedback = exceptionMessage;
    return;
   }//if ( exceptionMessage != null ) 
  }//Page_Load
コード例 #8
0
  ///<summary>The entry point for the application.</summary>
  ///<param name="argv">Command-line arguments.</param>
  public static void Main
  (
   string[] argv
  )
  {
   string databaseConnectionString  = DatabaseConnectionString;
   string exceptionMessage          = null;
   
   UtilityXml.XmlDocumentNodeInnerText
   ( 
        FilenameConfigurationXml,
    ref exceptionMessage, 
        XPathDatabaseConnectionString,
    ref databaseConnectionString 
   );

   UtilityDatabase.DatabaseMaintenance
   (
        DatabaseConnectionString,
    ref exceptionMessage,
        FilenameConfigurationXml,
        XPathTheseAreTheFirstFruitsDatabase,
        XPathTheseAreTheFirstFruitsTable,
        XPathSQLTable,
        new string[] { XPathPatternFilename, PatternFilename },
        XPathImportPatternFilename
   );
  
  }//public static void Main
コード例 #9
0
  }//public String Feedback

  /// <summary>Page Load.</summary>
  public void Page_Load
  (
   object     sender, 
   EventArgs  e
  ) 
  {

   int             SequenceOrderIdContact    =  System.Convert.ToInt32( Request.QueryString["SequenceOrderId"] );
  
   String          exceptionMessage          =  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 );
    Feedback = exceptionMessage;
    return;
   }//if ( exceptionMessage != null )
  
  }
コード例 #10
0
  }//public void ButtonNew_Click()

  /// <summary>ButtonInsert_Open().</summary>
  public void ButtonOpen_Click
  (
   Object sender, 
   EventArgs e
  )
  {
   string exceptionMessage = null;
   string filenameXml      = null;
   
   filenameXml = URIFile;
   
   UtilityXml.ReadXml
   (
    ref DataSetDataGrid,
    ref exceptionMessage,
    ref filenameXml
   );
   
   if ( exceptionMessage != null )
   {
   	Feedback = exceptionMessage;
   }	

   DataSourceBind();

  }
コード例 #11
0
        private void Page_Load
        (
            object sender,
            System.EventArgs e
        )
        {
            String exceptionMessage = null;

            serverMapPath = this.MapPath("");
            if (serverMapPath != null)
            {
                filenameConfigurationXml = serverMapPath + @"\" + filenameConfigurationXml;
            }//if ( serverMapPath != null)
            UtilityXml.XmlDocumentNodeInnerText
            (
                filenameConfigurationXml,
                ref exceptionMessage,
                XPathDatabaseConnectionString,
                ref databaseConnectionString
            );

            if (exceptionMessage != null)
            {
                Feedback = exceptionMessage;
            }

            if (!Page.IsPostBack)
            {
                BindGrid();
            } //if ( !Page.IsPostBack )
        }     //private void Page_Load()
コード例 #12
0
        }     //public static void ScriptServerDatabase()

        ///<summary>ConfigurationFile().</summary>
        public static void ConfigurationFile()
        {
            string databaseConnectionString = null;
            string databaseScript           = null;
            string exceptionMessage         = null;

            UtilityXml.XmlDocumentNodeInnerText
            (
                FilenameConfigurationXml,
                ref exceptionMessage,
                XPathDatabaseConnectionString,
                ref databaseConnectionString
            );
            if (databaseConnectionString != null && databaseConnectionString != String.Empty)
            {
                DatabaseConnectionString = databaseConnectionString;
            }

            UtilityXml.XmlDocumentNodeInnerText
            (
                FilenameConfigurationXml,
                ref exceptionMessage,
                XPathDatabaseScriptFilename,
                ref databaseScript
            );
            if (databaseScript != null && databaseScript != String.Empty)
            {
                DatabaseScriptFilename = databaseScript;
            }
        }//ConfigurationFile().
コード例 #13
0
  }//public static void ConfigurationXml()

  /// <summary>Read the XML Configuration file.</summary>
  /// <param name="filenameConfigurationXml">The XML Configuration file.</param>
  /// <param name="exceptionMessage">The exception message.</param>
  /// <param name="databaseConnectionString">The database connection string.</param>  
  public static void ConfigurationXml
  (
       string filenameConfigurationXml,
   ref string exceptionMessage,
   ref string databaseConnectionString
  )
  {
   UtilityXml.XmlDocumentNodeInnerText
   (
         filenameConfigurationXml,
     ref exceptionMessage,
         XPathDatabaseConnectionString,
     ref databaseConnectionString
    );//ConfigurationXml()
  }//ConfigurationXml	 
コード例 #14
0
  ///<summary>The entry point for the application.</summary>
  ///<param name="argv">Command-line parameters.</param>
  public static void Main
  (
   string[] argv
  )
  {
   int    argumentTotal                = argv.Length;

   string exceptionMessage             = null;
   string filenameImport               = null;
   string filenameExport               = null;
   string scriptureReferenceAssociates = null;

   if ( ArgumentFilenameImport < argumentTotal )
   {
    filenameImport = argv[ ArgumentFilenameImport ];
   }
   if ( ArgumentFilenameExport < argumentTotal )
   {
    filenameExport = argv[ ArgumentFilenameExport ];
   }
   if ( ArgumentScriptureReferenceAssociates < argumentTotal )
   {
    scriptureReferenceAssociates = argv[ ArgumentScriptureReferenceAssociates ];
   }
   #if (DEBUG)
    System.Console.WriteLine("Filename Import: {0}", filenameImport);
    System.Console.WriteLine("Filename Export: {0}", filenameExport);
   #endif

   UtilityXml.XmlDocumentNodeInnerText
   (
         filenameConfigurationXml,
     ref exceptionMessage,         
         XPathDatabaseConnectionString,
     ref DatabaseConnectionString
   );

   #if (DEBUG)
    System.Console.WriteLine("Database Connection String: {0}", DatabaseConnectionString);
   #endif

   ImportExport
   ( 
    filenameImport, 
    filenameExport,
    scriptureReferenceAssociates 
   );
  }//public static void Main.
コード例 #15
0
  /// <summary>ReadXml</summary>
  public static void ReadXml
  (
   ref string   filenameXml,
   ref DataSet  dataSet,
   ref string   exceptionMessage,
   ref string[] columnName
  )
  {
   HttpContext  httpContext  =  HttpContext.Current;
   
   try
   {
    UtilityXml.ReadXml
    (
     ref dataSet,
     ref exceptionMessage,
     ref filenameXml
    );
    if ( exceptionMessage != null )
    {
     return;
    }
    if ( dataSet != null )
    {
     UtilityDatabase.DataSetColumn
     (
      ref dataSet,
      ref columnName,
      ref exceptionMessage
     );
     if ( exceptionMessage != null )
     {
      return;
     }
    }
   }//try
   catch ( Exception exception )
   {
   	exceptionMessage = "Exception: " + exception.Message;
   }
   
   if ( httpContext == null )
   {
   	System.Console.WriteLine( exceptionMessage );
   }

  }//public static void ReadXml()
コード例 #16
0
  }//public static void ConfigurationXml()

  /// <summary>Read the XML Configuration file.</summary>
  public static void ConfigurationXml
  (
       string    filenameConfigurationXml,
   ref string    exceptionMessage,
   ref string    databaseConnectionString,
   ref string    filenameStylesheet,
   ref string[]  columnNameURI,
   ref string[]  tableNameURI,
   ref string    tableNameURIDefault
  )
  {
   UtilityXml.GetNodeValue
   (
         filenameConfigurationXml,
     ref exceptionMessage,
         XPathDatabaseConnectionString,
     ref databaseConnectionString
   );
   UtilityXml.GetNodeValue
   (
         filenameConfigurationXml,
     ref exceptionMessage,
         XPathStylesheet,
     ref filenameStylesheet 
   );
   UtilityXml.GetNodeValue
   (
         filenameConfigurationXml,
     ref exceptionMessage,
         XPathColumnNameURI,
     ref columnNameURI
   );
   UtilityXml.GetNodeValue
   (
         filenameConfigurationXml,
     ref exceptionMessage,
         XPathTableNameURI,
     ref tableNameURI
   );
   UtilityXml.GetNodeValue
   (
         filenameConfigurationXml,
     ref exceptionMessage,
         XPathTableNameURIDefault,
     ref tableNameURIDefault
   );
  }//ConfigurationXml	 
  ///<summary>ConfigurationFile().</summary>
  public static void ConfigurationFile()
  {

   string databaseConnectionString  =  null;
   string exceptionMessage          = null;
   string newsServer                = null;
   string newsGroup                 = null;

   UtilityXml.XmlDocumentNodeInnerText
   (
         FilenameConfigurationXml,
     ref exceptionMessage,         
         XPathNewsServer,
     ref databaseConnectionString
   );
   if ( databaseConnectionString != null && databaseConnectionString != String.Empty )
   {
    DatabaseConnectionString = databaseConnectionString;
   } 

   UtilityXml.XmlDocumentNodeInnerText
   (
         FilenameConfigurationXml,
     ref exceptionMessage,         
         XPathNewsServer,
     ref newsServer
   );
   if ( newsServer != null && newsServer != String.Empty )
   {
    NewsServer = newsServer;
   } 

   UtilityXml.XmlDocumentNodeInnerText
   (
         FilenameConfigurationXml,
     ref exceptionMessage,         
         UtilitySimpleMailTransferProtocolSMTP.XPathNewsGroup,
     ref newsGroup
   );
   if ( newsGroup != null && newsGroup != String.Empty )
   {
    NewsGroup = newsGroup;
   } 
     	
  }//ConfigurationFile().
コード例 #18
0
  }//public String Feedback

  /// <summary>Page Load.</summary>
  public void Page_Load
  (
   object     sender, 
   EventArgs  e
  ) 
  {

   int             SequenceOrderIdContact    =  System.Convert.ToInt32( Request.QueryString["SequenceOrderId"] );
  
   String          exceptionMessage          =  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 );
    Feedback = exceptionMessage;
    return;
   }//if ( exceptionMessage != null )
  
   if (!Page.IsPostBack)
   {
   	//HtmlGenericControlTitle.InnerText = "";
    //TextBox
    /*
    HtmlAnchorNew.Value                       =  "New";
    HtmlAnchorNew.Attributes["style"]         =  STYLE_HTML_ANCHOR;
    */

   }//if (!Page.IsPostBack)
  }//public void Page_Load
  }//public void ButtonFileSaveRelease20050830_Click()

  /// <summary>ButtonFileSave_Click()</summary>
  public void ButtonFileSave_Click
  (
   Object sender, 
   EventArgs e
  )
  {
   string   exceptionMessage  =  null;
   string   filenameXml       =  null;
   DataSet  dataSet           =  null;
   
   try
   {
    filenameXml     =  FilenameURI;
    if ( string.IsNullOrEmpty( filenameXml ) )
    {
     return;
    }
    dataSet = ( DataSet ) ViewState["URIMaintenancePage_DataSet"];
    if ( dataSet == null )
    {
     return;
    }
    UtilityXml.WriteXml
    (
         dataSet,
     ref exceptionMessage,
     ref filenameXml,
     ref FilenameStylesheet
    );
    if ( exceptionMessage != null )
    {
     Feedback = exceptionMessage;
     return;
    }     	 
   }//try
   catch ( Exception exception )
   {
   	exceptionMessage = "Exception: " + exception.Message;
   }
   if ( exceptionMessage != null )
   {
   	Feedback = exceptionMessage;
   }
  }//public void ButtonFileSave_Click()
コード例 #20
0
  }//private void ImpersonateValidUser()

  ///<summary>GetUsernamePasswordDomainName</summary>
  ///<remarks>Get the userName, password, and domain name.</remarks>  
  public static void GetUsernamePasswordDomainName
  (
   ref  String  filenameConfigurationXml,
   ref  String  domainName,
   ref  String  password,
   ref  String  userName,
   ref  String  exceptionMessage
  )
  {
   if ( string.IsNullOrEmpty( filenameConfigurationXml ) )
   {
   	filenameConfigurationXml = FilenameConfigurationXml;
   }   		
   UtilityXml.GetNodeValue
   (
        filenameConfigurationXml,
    ref exceptionMessage,         
        XPathImpersonateDomainName,
    ref domainName
   );
   if ( exceptionMessage != null )
   {
   	return;
   }	
   UtilityXml.GetNodeValue
   (
        filenameConfigurationXml,
    ref exceptionMessage,         
        XPathImpersonatePassword,
    ref password
   );
   if ( exceptionMessage != null )
   {
   	return;
   }	
   UtilityXml.GetNodeValue
   (
        filenameConfigurationXml,
    ref exceptionMessage,         
        XPathImpersonateUsername,
    ref userName
   );
  }//public static void GetUserNamePasswordDomainName( ref String userName, ref String password, ref String domainName, ref String exceptionMessage )
コード例 #21
0
  /// <summary>Page Load.</summary>
  public void Page_Load
  (
   object     sender, 
   EventArgs  e
  ) 
  {

   String  exceptionMessage  =  null;

   ServerMapPath = this.MapPath("");

   /* 
   FilenameConfigurationXml = Server.MapPath( FilenameConfigurationXml );
   */

   if ( ServerMapPath != null)
   {
    FilenameConfigurationXml = ServerMapPath + @"\" + FilenameConfigurationXml;
   }//if ( ServerMapPath != null)

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

   if ( exceptionMessage != null )
   {
    Feedback = exceptionMessage;
    return;
   }//if ( exceptionMessage != null )

   if ( !Page.IsPostBack )
   {
   	FileUploadSource.Focus();
   	Page.SetFocus( FileUploadSource );
    FileUploadSource.Attributes.Add("autocomplete", "on");
    HtmlInputFileTarget.Attributes.Add("autocomplete", "on");
   }//if ( !Page.IsPostBack )
   	
  }//Page_Load
コード例 #22
0
  }//Page_Load

  /// <summary>PageBuild.</summary>
  public void PageBuild()
  {
   String              exceptionMessage                =  null;
   
   ServerMapPath = this.MapPath("");
   if ( ServerMapPath != null)
   {
    FilenameConfigurationXml = ServerMapPath + @"\" + FilenameConfigurationXml;
   }//if ( ServerMapPath != null)

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

   UtilityXml.XmlDocumentNodeInnerText
   (
        FilenameConfigurationXml,
    ref exceptionMessage,         
        XPathSQLSelect,
    ref DatabaseSQLSelect
   );

   UtilityXml.XmlDocumentNodeInnerText
   (
        FilenameConfigurationXml,
    ref exceptionMessage,         
        XPathXmlStylesheet,
    ref FilenameXmlStylesheet
   );

   if ( exceptionMessage != null )
   {
    Feedback = exceptionMessage;
    return;
   }//if ( exceptionMessage != null )

  }//PageBuild()
コード例 #23
0
        }//public static void ConfigurationXml()

        /// <summary>ConfigurationXml.</summary>
        public static void ConfigurationXml
        (
            ref String filenameConfigurationXml,
            ref String exceptionMessage,
            ref String connectionStringDatabase,
            ref String connectionStringFormatIndexingService
        )
        {
            UtilityXml.XmlDocumentNodeInnerText
            (
                filenameConfigurationXml,
                ref exceptionMessage,
                XPathConnectionStringDatabase,
                ref connectionStringDatabase
            );

   #if (DEBUG)
            System.Console.WriteLine
            (
                "Connection String Database: {0}",
                connectionStringDatabase
            );
   #endif

            UtilityXml.XmlDocumentNodeInnerText
            (
                filenameConfigurationXml,
                ref exceptionMessage,
                XPathConnectionStringFormatIndexingService,
                ref connectionStringFormatIndexingService
            );

   #if (DEBUG)
            System.Console.WriteLine
            (
                "Connection String Format Indexing Service: {0}",
                connectionStringFormatIndexingService
            );
   #endif
        }//public static void ConfigurationXml()
コード例 #24
0
  }//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()
コード例 #25
0
  /// <summary>Page Load.</summary>
  public void Page_Load
  (
   object     sender, 
   EventArgs  e
  ) 
  {

   String  exceptionMessage  =  null;

   ServerMapPath = this.MapPath("");

   /* 
   FilenameConfigurationXml = Server.MapPath( FilenameConfigurationXml );
   */

   if ( ServerMapPath != null)
   {
    FilenameConfigurationXml = ServerMapPath + @"\" + FilenameConfigurationXml;
   }//if ( ServerMapPath != null)

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

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

   Master.Page.Header.Title = "Simple Content Page";
   //Master.Page.Header.Metadata.Add("Keywords", "Master, Content, Menu, SiteMapDataSource, contentplaceholder");
   //Master.Page.Header.Metadata.Add("Description", "Master, Content, Menu, SiteMapDataSource, contentplaceholder");
   	
  }//Page_Load
コード例 #26
0
  /// <summary>Read the XML Configuration file.</summary>
  /// <param name="filenameConfigurationXml">The XML Configuration file.</param>
  /// <param name="exceptionMessage">The exception message.</param>
  public static void ConfigurationXml
  (
       string filenameConfigurationXml,
   ref string exceptionMessage
  )
  {
   XmlNodeList licenceKey = null;
   
   licenceKey = UtilityXml.SelectNodes
   (
         filenameConfigurationXml,
     ref exceptionMessage,
         XPathLicenceKey
   );

   UtilityXml.Convert
   (
        licenceKey,
    ref LicenceKey,
    ref exceptionMessage
   );
  }//public static void ConfigurationXml()
コード例 #27
0
  }//public static void ConfigurationXml()

  /// <summary>Read the XML Configuration file.</summary>
  public static void ConfigurationXml
  (
   ref String filenameConfigurationXml,
   ref String exceptionMessage,
   ref String databaseConnectionString,
   ref String faxServerName,
   ref String faxNumber
  )
  {
   UtilityXml.XmlDocumentNodeInnerText
   (
         filenameConfigurationXml,
     ref exceptionMessage,
         XPathDatabaseConnectionString,
     ref databaseConnectionString
   );

   UtilityXml.XmlDocumentNodeInnerText
   (
         filenameConfigurationXml,
     ref exceptionMessage,
         XPathFaxServerName,
     ref faxServerName
   );

   if ( faxServerName == null || faxServerName == String.Empty )
   {
    faxServerName = Environment.MachineName;
   }//if ( faxServerName == null || faxServerName == String.Empty ) 

   UtilityXml.XmlDocumentNodeInnerText
   (
         filenameConfigurationXml,
     ref exceptionMessage,
         XPathFaxNumber,
     ref faxNumber
   );
  }//ConfigurationXml	 
コード例 #28
0
  }//Page_Load

  /// <summary>PageBuild.</summary>
  public void PageBuild()
  {
   String              exceptionMessage                =  null;
   String              feedbackMessage                 =  null;
   
   ServerMapPath = this.MapPath("");
   if ( ServerMapPath != null)
   {
    FilenameConfigurationXml = ServerMapPath + @"\" + FilenameConfigurationXml;
   }//if ( ServerMapPath != null)

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

   UtilityUnicode.Treasure
   (
    ref feedbackMessage,
    ref exceptionMessage
   );

   if ( exceptionMessage != null )
   {
    Feedback = exceptionMessage;
    return;
   }//if ( feedbackMessage != null )
   else
   {
    Feedback = feedbackMessage;
   }   	

  }//PageBuild()
コード例 #29
0
  /// <summary>ButtonInsert_Save().</summary>
  public void ButtonSave_Click
  (
   Object sender, 
   EventArgs e
  )
  {
   string exceptionMessage   = null;
   string filenameXml        = null;
   
   filenameXml = URIFile;

   UtilityXml.WriteXml
   (
        DataSetDataGrid,
    ref exceptionMessage,
    ref filenameXml,
    ref FilenameXmlStylesheet
   );

   if ( exceptionMessage != null )
   {
   	Feedback = exceptionMessage;
   }
  }//public void ButtonSave_Click()
コード例 #30
0
        /// <summary>Page Load.</summary>
        public void Page_Load
        (
            object sender,
            EventArgs e
        )
        {
            String exceptionMessage = null;

            ServerMapPath = this.MapPath("");

            if (ServerMapPath != null)
            {
                FilenameConfigurationXml = Path.Combine(ServerMapPath, FilenameConfigurationXml);
            }//if ( ServerMapPath != null)

            UtilityXml.GetNodeValue
            (
                FilenameConfigurationXml,
                ref exceptionMessage,
                XPathDatabaseConnectionString,
                ref DatabaseConnectionString
            );

            if (exceptionMessage != null)
            {
                Feedback = exceptionMessage;
                return;
            }//if ( exceptionMessage != null )

            if (!Page.IsPostBack)
            {
                GridViewSacredText.Focus();
                Page.SetFocus(GridViewSacredText);
                GridViewSacredText.Attributes.Add("autocomplete", "on");
            } //if ( !Page.IsPostBack )
        }     //Page_Load