CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of connection string
C#
/// <summary>
/// Creates a Connection string from Conf.xml
/// </summary>
/// <param name="isEntityConnection">
/// The is Entity Connection.
/// </param>
/// <param name="serverName">
/// The server Name.
/// </param>
/// <param name="databaseName">
by Sigurður Bjarnason   October 10, 2011 @ 8:53am
73 Views
no comments
 
C#
/// <summary>
  /// Encrypts the conn string.   
  /// </summary>
  /// <remarks></remarks>
  public void EncryptConnString()
  {
 
      Configuration config = WebConfigurationManager.OpenWebConfiguration(Request.ApplicationPath);
      ConfigurationSection section = config.GetSection("connectionStrings");
      if (!section.SectionInformation.IsProtected)
by Gary Cline   September 22, 2010 @ 3:01pm
215 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate