}//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	 
  }//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	 
Beispiel #3
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 )
Beispiel #4
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