Click here to Skip to main content
15,890,438 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to fetch primary key field Pin
Suman Singh6-May-05 8:26
professionalSuman Singh6-May-05 8:26 
GeneralRefreshing graphics with GDI+ Pin
leoprex28-Apr-05 23:34
leoprex28-Apr-05 23:34 
GeneralSMS Pin
Anonymous28-Apr-05 17:16
Anonymous28-Apr-05 17:16 
GeneralRe: SMS Pin
Dave Kreskowiak29-Apr-05 2:05
mveDave Kreskowiak29-Apr-05 2:05 
GeneralIntegrate AppConfig file Pin
Joey Picerno28-Apr-05 16:55
Joey Picerno28-Apr-05 16:55 
GeneralRe: Integrate AppConfig file Pin
rudy.net28-Apr-05 18:13
rudy.net28-Apr-05 18:13 
GeneralRe: Integrate AppConfig file Pin
Len Miller28-Apr-05 19:56
Len Miller28-Apr-05 19:56 
GeneralRe: Integrate AppConfig file Pin
Het210928-Apr-05 20:45
Het210928-Apr-05 20:45 

This is how u have to place ur connectionstring in your app.config file.



<configuration>

<appSettings>

<add key="DBConnString" value="Data Source=ervername;Initial Catalog=Databasename;User ID=userid;Password=password;"/>

</appSettings>

</configuration>



For accessing this value from DB you can use this line of code in vb.net (in case of C# hope u can manage it, or ask me)



Public Shared CONNECTSTRING As String = System.Configuration.ConfigurationSettings.AppSettings("DBConnString")



Hope its fine and ur prob is solved.



Het Waghela
Smile | :) Be Humble in Victory and Strong in Defeat.Smile | :)

Het Waghela, Blog|Het Waghela DotNet Questions Link|

GeneralStreaming Media using Windows Media PLayer Pin
vishalmishra28-Apr-05 14:32
vishalmishra28-Apr-05 14:32 
GeneralShell.Application not returning all windows Pin
Asad Hussain28-Apr-05 10:40
Asad Hussain28-Apr-05 10:40 
GeneralRe: Shell.Application not returning all windows Pin
Dave Kreskowiak29-Apr-05 6:04
mveDave Kreskowiak29-Apr-05 6:04 
Questionsite templating... how? Pin
cavall28-Apr-05 9:35
cavall28-Apr-05 9:35 
AnswerRe: site templating... how? Pin
Dave Kreskowiak29-Apr-05 2:02
mveDave Kreskowiak29-Apr-05 2:02 
GeneralTips of a class Pin
roberto1979es28-Apr-05 9:19
roberto1979es28-Apr-05 9:19 
GeneralRe: Tips of a class Pin
rudy.net28-Apr-05 17:39
rudy.net28-Apr-05 17:39 
GeneralClose form Pin
ADY00728-Apr-05 8:12
ADY00728-Apr-05 8:12 
GeneralRe: Close form Pin
Anonymous29-Apr-05 3:31
Anonymous29-Apr-05 3:31 
GeneralClose form Pin
ADY00729-Apr-05 4:32
ADY00729-Apr-05 4:32 
GeneralRe: Close form Pin
Dave Kreskowiak29-Apr-05 5:38
mveDave Kreskowiak29-Apr-05 5:38 
GeneralRe: Close form Pin
ADY00729-Apr-05 5:51
ADY00729-Apr-05 5:51 
GeneralVB.NET to Open, Edit and Save As New Word .doc or .dot Pin
alcowboy28-Apr-05 7:13
alcowboy28-Apr-05 7:13 
GeneralRe: VB.NET to Open, Edit and Save As New Word .doc or .dot Pin
nidhishri4-May-05 20:49
nidhishri4-May-05 20:49 
GeneralShortcuts and Deployments Pin
Meatnog28-Apr-05 6:09
Meatnog28-Apr-05 6:09 
GeneralRe: Shortcuts and Deployments Pin
rwestgraham28-Apr-05 9:03
rwestgraham28-Apr-05 9:03 
GeneralProblem with db in Access and VBA Pin
David Fawn28-Apr-05 5:42
David Fawn28-Apr-05 5:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.