Click here to Skip to main content
15,902,938 members
Home / Discussions / C#
   

C#

 
QuestionColumns of dataset and sql server table [modified] Pin
Syed Mujtaba Hassan23-Aug-07 19:39
Syed Mujtaba Hassan23-Aug-07 19:39 
Generalprojects topics Pin
nitinbsaste23-Aug-07 18:57
nitinbsaste23-Aug-07 18:57 
GeneralRe: projects topics Pin
Christian Graus23-Aug-07 19:07
protectorChristian Graus23-Aug-07 19:07 
GeneralRe: projects topics Pin
Vasudevan Deepak Kumar23-Aug-07 21:13
Vasudevan Deepak Kumar23-Aug-07 21:13 
GeneralRe: projects topics Pin
Dave Kreskowiak24-Aug-07 1:45
mveDave Kreskowiak24-Aug-07 1:45 
GeneralRe: projects topics [modified] Pin
PIEBALDconsult24-Aug-07 8:26
mvePIEBALDconsult24-Aug-07 8:26 
Questionsql query Pin
falles0123-Aug-07 13:24
falles0123-Aug-07 13:24 
AnswerRe: sql query Pin
Christian Graus23-Aug-07 13:36
protectorChristian Graus23-Aug-07 13:36 
First of all, your code is still insecure, I guess this is for a class then ?

Second, you should try to give your controls real names. What is textbox1 ? When you have 6 on the screen, how will you remember which one is textbox5 ?

Third, your id is a number as I recall, but you have it in quotes, which means you're passing it as a string. Why is it a string in the database ?

The best thing to do here, is to step through the debugger, and see what the SQL string is, then pass it through to your database manually and see how it responds. It will give you meaningful information if it can't process the SQL.

And, depending on what the rest of your code looks like, it's possible the SQL is not being called, but if it is, it should return to you the number of rows affected, you could check that and see if it's > 0.


Christian Graus - Microsoft MVP - C++

"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

GeneralRe: sql query Pin
falles0123-Aug-07 13:47
falles0123-Aug-07 13:47 
GeneralRe: sql query Pin
Christian Graus23-Aug-07 13:59
protectorChristian Graus23-Aug-07 13:59 
GeneralRe: sql query Pin
Dave Kreskowiak23-Aug-07 13:59
mveDave Kreskowiak23-Aug-07 13:59 
AnswerRe: sql query Pin
martin_hughes23-Aug-07 13:45
martin_hughes23-Aug-07 13:45 
AnswerRe: sql query Pin
Colin Angus Mackay23-Aug-07 14:00
Colin Angus Mackay23-Aug-07 14:00 
GeneralRe: sql query Pin
Christian Graus23-Aug-07 14:05
protectorChristian Graus23-Aug-07 14:05 
GeneralRe: sql query Pin
falles0123-Aug-07 14:32
falles0123-Aug-07 14:32 
GeneralRe: sql query Pin
Christian Graus23-Aug-07 16:47
protectorChristian Graus23-Aug-07 16:47 
GeneralRe: sql query Pin
falles0123-Aug-07 15:20
falles0123-Aug-07 15:20 
AnswerRe: sql query Pin
Vasudevan Deepak Kumar23-Aug-07 17:36
Vasudevan Deepak Kumar23-Aug-07 17:36 
GeneralRe: sql query Pin
Christian Graus23-Aug-07 18:16
protectorChristian Graus23-Aug-07 18:16 
Questionmicrsoft office + .NET Pin
shereem khaleel23-Aug-07 12:26
shereem khaleel23-Aug-07 12:26 
AnswerRe: micrsoft office + .NET Pin
Judah Gabriel Himango23-Aug-07 12:57
sponsorJudah Gabriel Himango23-Aug-07 12:57 
QuestionModifying text displayed in a webbrowser control Pin
Ahmad Zaidi23-Aug-07 10:59
Ahmad Zaidi23-Aug-07 10:59 
AnswerRe: Modifying text displayed in a webbrowser control Pin
ChrisKo23-Aug-07 11:58
ChrisKo23-Aug-07 11:58 
QuestionProblem with returning a string from a sub Pin
crash89323-Aug-07 9:36
crash89323-Aug-07 9:36 
AnswerRe: Problem with returning a string from a sub [modified] Pin
ChrisKo23-Aug-07 10:33
ChrisKo23-Aug-07 10:33 

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.