reading values from the registry

  • Thread starter Thread starter Jack David
  • Start date Start date
J

Jack David

The person that was helping us develop our application has left the project
and has left us with the following:

The connection strings for the database are stored in the registry:

HKEY_LOCAL_MACHINE \ SOFTWARE \ MTI \ WEBAPPS

"conn1" = "Connection String 1 Here"
"conn2" = "Connection String 2 Here"
"conn3" = "Connection String 3 Here"

What I need to do is:
1 create a method that I can call passing in "conn1" or "conn2" or "conn3"
as a parameter.
2 get the connection string value
3 return the value to what ever called the method

Any suggestions?

Thanks
Jack David
 
Back
Top