Click here to Skip to main content
15,894,343 members
Home / Discussions / C#
   

C#

 
AnswerRe: Readig strings from a text file ? Pin
Josh Martin12-Jun-09 12:26
Josh Martin12-Jun-09 12:26 
AnswerRe: Readig strings from a text file ? Pin
PIEBALDconsult12-Jun-09 13:23
mvePIEBALDconsult12-Jun-09 13:23 
Questionhow can I get data from database and display in textbox Pin
Adekolurejo12-Jun-09 10:15
Adekolurejo12-Jun-09 10:15 
AnswerRe: how can I get data from database and display in textbox Pin
Dave Kreskowiak12-Jun-09 11:23
mveDave Kreskowiak12-Jun-09 11:23 
QuestionRe: how can I get data from database and display in textbox Pin
Adekolurejo12-Jun-09 11:33
Adekolurejo12-Jun-09 11:33 
AnswerRe: how can I get data from database and display in textbox Pin
Dave Kreskowiak12-Jun-09 12:42
mveDave Kreskowiak12-Jun-09 12:42 
AnswerRe: how can I get data from database and display in textbox Pin
Josh Martin12-Jun-09 12:36
Josh Martin12-Jun-09 12:36 
AnswerRe: how can I get data from database and display in textbox Pin
DavidKiryazi12-Jun-09 13:35
DavidKiryazi12-Jun-09 13:35 
Ademola,

can you post the latest code your using. It is difficult to diagnose the problem without the code you are currently trying to run.

In the meantime, try to initialise your connection string using the connection string builder to rule out any typos in connection string.

// create the connection string
SqlConnectionStringBuilder conn_str = new SqlConnectionStringBuilder();
conn_str.UserID = "your user_id";
conn_str.Password = "your password";
conn_str.InitialCatalog = "database name";
conn_str.DataSource = "sql server instance name";
conn_str.ConnectTimeout = "connection timeout (as an int)";

// instantiate and initialise the sql connection object
SqlConnection conn = new SqlConnection(conn_str.ConnectionString);


Also, make sure you rule out any accidently brain explosions, ie make sure datatable actually has data in it, your connecting to the right database, etc

Dave
AnswerRe: how can I get data from database and display in textbox Pin
ishandeb12-Sep-11 3:06
ishandeb12-Sep-11 3:06 
QuestionHow To Locate Form Pin
gal00012-Jun-09 9:57
gal00012-Jun-09 9:57 
AnswerRe: How To Locate Form Pin
Nagy Vilmos12-Jun-09 10:14
professionalNagy Vilmos12-Jun-09 10:14 
GeneralRe: How To Locate Form Pin
gal00012-Jun-09 10:17
gal00012-Jun-09 10:17 
GeneralRe: How To Locate Form Pin
Luc Pattyn12-Jun-09 10:28
sitebuilderLuc Pattyn12-Jun-09 10:28 
AnswerRe: How To Locate Form Pin
I Believe In GOD12-Jun-09 10:27
I Believe In GOD12-Jun-09 10:27 
GeneralRe: How To Locate Form Pin
gal00012-Jun-09 10:34
gal00012-Jun-09 10:34 
Questionusing errorprovider control with C# form with checkboxes Pin
johnnysmith112-Jun-09 7:17
johnnysmith112-Jun-09 7:17 
AnswerRe: using errorprovider control with C# form with checkboxes Pin
OriginalGriff12-Jun-09 8:30
mveOriginalGriff12-Jun-09 8:30 
AnswerRe: using errorprovider control with C# form with checkboxes Pin
led mike12-Jun-09 8:34
led mike12-Jun-09 8:34 
AnswerRe: using errorprovider control with C# form with checkboxes Pin
OriginalGriff12-Jun-09 8:45
mveOriginalGriff12-Jun-09 8:45 
GeneralRe: using errorprovider control with C# form with checkboxes Pin
johnnysmith112-Jun-09 9:38
johnnysmith112-Jun-09 9:38 
Question[Message Deleted] Pin
googlejumbo12-Jun-09 6:20
googlejumbo12-Jun-09 6:20 
AnswerRe: Help for user interface design PinPopular
Henry Minute12-Jun-09 6:53
Henry Minute12-Jun-09 6:53 
GeneralRe: Help for user interface design Pin
googlejumbo12-Jun-09 8:18
googlejumbo12-Jun-09 8:18 
GeneralRe: Help for user interface design Pin
EliottA12-Jun-09 8:25
EliottA12-Jun-09 8:25 
GeneralRe: Help for user interface design Pin
led mike12-Jun-09 8:29
led mike12-Jun-09 8:29 

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.