Click here to Skip to main content
15,888,053 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am currently doing a project where i have to connect to oracle database

I am using ODBC for this and I got list of available DSN's in VB.net Combobox.
If i select Oracle related DSN it should prompt me for userid and password.

AdPromptAlways this method is working in VB, but in VB.net don't know how to do
Posted

Perhaps on the SelectedIndexChange event for the ComboBox then you can check to see which value was select and if it is oracle then you can prompt for username/password (however you want to do that)
 
Share this answer
 
Comments
amitk_189 29-Jun-11 8:44am    
But Actually i am not getting prompt keyword or adPromptAlways.
Dave Kreskowiak 29-Jun-11 12:48pm    
Read that response again. He said YOU could put up a dialog asking for the username and password, then put that information into the connection string.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900