i need to find user dsn in asp.net . detailed discussion with code in text

Feb 23 2006 8:03 AM

hello frnds,
i used this code writen below for the purpose to get user dSN.
Dim oReg As Microsoft.Win32.Registry
Dim oRegKey As Microsoft.Win32.RegistryKey
Dim sValue() As String
oRegKey = oReg.CurrentUser.OpenSubKey("SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources")
sValue = oRegKey.GetValueNames()
//////////////////////////////

same code is working in vb.net but problem is that when i used in asp.net "oRegKey = oReg.CurrentUser.OpenSubKey("SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources")" is geting nothing value it is working till the folder " oRegKey = oReg.CurrentUser.OpenSubKey("SOFTWARE")" plz help me out. i need to read till "oRegKey = oReg.CurrentUser.OpenSubKey("SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources")"

thanx in advance
ashutosh sharma
[email protected]


Answers (1)