Click here to Skip to main content
15,919,778 members
Home / Discussions / C#
   

C#

 
AnswerRe: ScreenToClient C#... [modified] Pin
Corinna John15-Jun-06 22:58
Corinna John15-Jun-06 22:58 
GeneralRe: ScreenToClient C#... Pin
anderslundsgard16-Jun-06 2:02
anderslundsgard16-Jun-06 2:02 
Question.Net Pin
surshbabuk15-Jun-06 21:33
surshbabuk15-Jun-06 21:33 
AnswerRe: .Net Pin
surshbabuk15-Jun-06 21:34
surshbabuk15-Jun-06 21:34 
GeneralRe: .Net Pin
surshbabuk15-Jun-06 21:35
surshbabuk15-Jun-06 21:35 
AnswerRe: .Net Pin
surshbabuk15-Jun-06 21:35
surshbabuk15-Jun-06 21:35 
GeneralRe: .Net Pin
surshbabuk15-Jun-06 21:36
surshbabuk15-Jun-06 21:36 
AnswerRe: .Net Pin
J4amieC15-Jun-06 21:40
J4amieC15-Jun-06 21:40 
JokeRe: .Net Pin
Guffa16-Jun-06 1:39
Guffa16-Jun-06 1:39 
AnswerRe: .Net Pin
Josh Smith16-Jun-06 4:27
Josh Smith16-Jun-06 4:27 
Questioni want a code for discussion forum or message board Pin
narendrakumarp15-Jun-06 20:56
narendrakumarp15-Jun-06 20:56 
AnswerRe: i want a code for discussion forum or message board Pin
Christian Graus15-Jun-06 23:16
protectorChristian Graus15-Jun-06 23:16 
QuestionArray to Variant Pin
satsumatable15-Jun-06 20:40
satsumatable15-Jun-06 20:40 
AnswerRe: Array to Variant Pin
surshbabuk15-Jun-06 21:42
surshbabuk15-Jun-06 21:42 
Questionwhy we check for IsPostBack Pin
YogeshRT15-Jun-06 19:29
YogeshRT15-Jun-06 19:29 
AnswerRe: why we check for IsPostBack Pin
Guffa15-Jun-06 20:39
Guffa15-Jun-06 20:39 
GeneralRe: why we check for IsPostBack [modified] Pin
YogeshRT15-Jun-06 21:21
YogeshRT15-Jun-06 21:21 
QuestionComboBox and Uppercase Pin
Saamir15-Jun-06 15:13
Saamir15-Jun-06 15:13 
AnswerRe: ComboBox and Uppercase Pin
rah_sin15-Jun-06 19:19
professionalrah_sin15-Jun-06 19:19 
GeneralRe: ComboBox and Uppercase Pin
Saamir15-Jun-06 19:36
Saamir15-Jun-06 19:36 
QuestionLoad Combo box with SQL table field [modified] Pin
Saamir15-Jun-06 13:40
Saamir15-Jun-06 13:40 
AnswerRe: Load Combo box with SQL table field Pin
Alexander Wiseman15-Jun-06 13:49
Alexander Wiseman15-Jun-06 13:49 
AnswerRe: Load Combo box with SQL table field Pin
M. Cahid AYDIN15-Jun-06 23:28
M. Cahid AYDIN15-Jun-06 23:28 
QuestionStore Select(Count) result for use in if/else Pin
Saamir15-Jun-06 13:40
Saamir15-Jun-06 13:40 
AnswerRe: Store Select(Count) result for use in if/else Pin
Alexander Wiseman15-Jun-06 13:46
Alexander Wiseman15-Jun-06 13:46 
sasa,

Use ExecuteScalar instead of ExecuteNonQuery. The return value is the value very first "cell" of the very first row returned from the query, which, in the case of the COUNT command, is the only value returned at all.

Hope that helps!

Sincerely,
Alexander Wiseman

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.