Click here to Skip to main content
15,867,686 members
Home / Discussions / C#
   

C#

 
AnswerRe: error ---Cannot find table 0. Pin
Rajesh Anuhya26-Jun-09 21:14
professionalRajesh Anuhya26-Jun-09 21:14 
GeneralRe: error ---Cannot find table 0. Pin
Christian Graus26-Jun-09 21:23
protectorChristian Graus26-Jun-09 21:23 
AnswerRe: error ---Cannot find table 0. Pin
fly90426-Jun-09 21:55
fly90426-Jun-09 21:55 
GeneralRe: error ---Cannot find table 0. Pin
KIDYA27-Jun-09 1:29
KIDYA27-Jun-09 1:29 
Questionprint a webform (asp.net 2.0 with c#) Pin
Sudhirg kumar26-Jun-09 20:30
Sudhirg kumar26-Jun-09 20:30 
AnswerRe: print a webform (asp.net 2.0 with c#) [modified] Pin
dan!sh 26-Jun-09 20:57
professional dan!sh 26-Jun-09 20:57 
QuestionIE Toolbar not "selectable" Pin
Jerome Caldwell26-Jun-09 18:35
Jerome Caldwell26-Jun-09 18:35 
Questionsql c# connection for sign_in Pin
A_A26-Jun-09 18:18
A_A26-Jun-09 18:18 
hi...

my application needs the user to sign in (according to sql DB) before he start using the application


SqlConnection con1 = new SqlConnection("DATA SOURCE = MAX_TOSHIBA;Initial Catalog= nodule ; Integrated security = True");
            SqlDataAdapter adp1 = new SqlDataAdapter();
            SqlCommand com1 = new SqlCommand();
            com1.CommandText = "SELECT * FROM user WHERE name=" + txt_username.Text + " ";
            com1.Connection = con1;
            adp1.SelectCommand = com1;
            DataSet d1 = new DataSet();
           
            adp1.Fill(d1);


then check the d1 if null or not


any way it give me an error at
adp1.Fill(d1);

the error

System.Data.SqlClient.SqlException was unhandled
Message="Incorrect syntax near the keyword 'user'."




another qustion do any one have a good demo for the data binding?

thanx Smile | :)
AnswerRe: sql c# connection for sign_in Pin
Christian Graus26-Jun-09 18:26
protectorChristian Graus26-Jun-09 18:26 
AnswerRe: sql c# connection for sign_in Pin
padmanabhan N26-Jun-09 18:55
padmanabhan N26-Jun-09 18:55 
GeneralRe: sql c# connection for sign_in Pin
Christian Graus26-Jun-09 20:21
protectorChristian Graus26-Jun-09 20:21 
GeneralRe: sql c# connection for sign_in Pin
padmanabhan N26-Jun-09 20:41
padmanabhan N26-Jun-09 20:41 
GeneralRe: sql c# connection for sign_in Pin
A_A26-Jun-09 23:29
A_A26-Jun-09 23:29 
GeneralRe: sql c# connection for sign_in Pin
padmanabhan N26-Jun-09 23:40
padmanabhan N26-Jun-09 23:40 
GeneralRe: sql c# connection for sign_in Pin
A_A27-Jun-09 3:17
A_A27-Jun-09 3:17 
QuestionHow to get DiskDrive model if I know the Drive letter Pin
lexx_zone26-Jun-09 10:40
lexx_zone26-Jun-09 10:40 
AnswerRe: How to get DiskDrive model if I know the Drive letter Pin
I Believe In GOD26-Jun-09 13:44
I Believe In GOD26-Jun-09 13:44 
GeneralRe: How to get DiskDrive model if I know the Drive letter Pin
lexx_zone27-Jun-09 1:05
lexx_zone27-Jun-09 1:05 
GeneralRe: How to get DiskDrive model if I know the Drive letter Pin
padmanabhan N27-Jun-09 1:14
padmanabhan N27-Jun-09 1:14 
QuestionArbitrary length bitfields? Pin
Trollslayer26-Jun-09 10:32
mentorTrollslayer26-Jun-09 10:32 
AnswerRe: Arbitrary length bitfields? Pin
Luc Pattyn26-Jun-09 11:01
sitebuilderLuc Pattyn26-Jun-09 11:01 
GeneralRe: Arbitrary length bitfields? Pin
Trollslayer26-Jun-09 11:04
mentorTrollslayer26-Jun-09 11:04 
QuestionDistribute a sql-based solution Pin
saeidfarahi26-Jun-09 10:09
saeidfarahi26-Jun-09 10:09 
AnswerCross post Pin
Not Active26-Jun-09 10:55
mentorNot Active26-Jun-09 10:55 
AnswerRe: Distribute a sql-based solution Pin
I Believe In GOD26-Jun-09 13:03
I Believe In GOD26-Jun-09 13:03 

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.