Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- If GetApplicationSetting("connectionString") Is Nothing Then
- Throw New Exception("Could not retrieve connection string from .config file")
- Else
- Return ConfigurationManager.AppSettings.Item("connectionString")
- End If
- If GetApplicationSetting("connectionString") Is Nothing Then
- Throw New Exception("Could not retrieve connection string from .config file")
- Else
- Return ConfigurationManager.AppSettings.Item("connectionString")
- End If
- ConfigurationManager.ConnectionStrings("MyConnectionString")
Add Comment
Please, Sign In to add comment