Click here to Skip to main content
15,908,906 members
Home / Discussions / C#
   

C#

 
AnswerRe: Ploblem about multithread programing? Pin
ncjlee8-Jun-08 21:38
ncjlee8-Jun-08 21:38 
Questiongetting xml data from previous form Pin
laziale8-Jun-08 21:16
laziale8-Jun-08 21:16 
AnswerRe: getting xml data from previous form Pin
Ajay.k_Singh8-Jun-08 23:19
Ajay.k_Singh8-Jun-08 23:19 
Questionbit parameter problem Pin
Mr.Kode8-Jun-08 20:52
Mr.Kode8-Jun-08 20:52 
QuestionRe: bit parameter problem Pin
Vasudevan Deepak Kumar8-Jun-08 21:15
Vasudevan Deepak Kumar8-Jun-08 21:15 
AnswerRe: bit parameter problem Pin
Mr.Kode8-Jun-08 21:19
Mr.Kode8-Jun-08 21:19 
AnswerRe: bit parameter problem Pin
telha9-Jun-08 0:23
telha9-Jun-08 0:23 
AnswerRe: bit parameter problem Pin
Eslam Afifi9-Jun-08 2:07
Eslam Afifi9-Jun-08 2:07 
Mr.Kode wrote:
checkDone.CommandType = CommandType.Text;

This should be checkDone.CommandType = CommandType.StoredProcedure;


You're creating output parameters so they won't take input. You can make them InputOutput parameters to take values and then they can alter them.


Mr.Kode wrote:
bool mybool=bool.Parse(comp.Value).ToString();//error here

This line of code has multiple errors. comp.Value is object and Parse takes a string parameter. comp.Value is object and has not been set. Another error in this line is that after you "parse" to bool, you're using ToString() and assigning it to bool WTF | :WTF:
You retrieve values from the output parameters after the command has been executed. And it would be
bool mybool = (bool)comp.Value;
The same for the other SqlParameter.


Mr.Kode wrote:
checkDone.ExecuteScalar();

Why ExecuteScalar? Use ExecuteNonQuery if you're not retrieving a value.

And this question should have been asked in the SQL / ADO / ADO.NET forum Smile | :)

Eslam Afifi

Questionhyperlink help Pin
csp8-Jun-08 19:52
csp8-Jun-08 19:52 
AnswerRe: hyperlink help Pin
Vasudevan Deepak Kumar8-Jun-08 20:43
Vasudevan Deepak Kumar8-Jun-08 20:43 
GeneralRe: hyperlink help Pin
csp8-Jun-08 21:53
csp8-Jun-08 21:53 
GeneralRe: hyperlink help Pin
csp8-Jun-08 23:53
csp8-Jun-08 23:53 
Questionrenaming .dll file gives error message Pin
pavya_Cool8-Jun-08 19:38
pavya_Cool8-Jun-08 19:38 
AnswerRe: renaming .dll file gives error message Pin
Vasudevan Deepak Kumar8-Jun-08 20:44
Vasudevan Deepak Kumar8-Jun-08 20:44 
GeneralRe: renaming .dll file gives error message Pin
pavya_Cool8-Jun-08 22:12
pavya_Cool8-Jun-08 22:12 
AnswerRe: renaming .dll file gives error message Pin
Vikram A Punathambekar8-Jun-08 22:46
Vikram A Punathambekar8-Jun-08 22:46 
GeneralRe: renaming .dll file gives error message Pin
pavya_Cool8-Jun-08 23:01
pavya_Cool8-Jun-08 23:01 
AnswerRe: renaming .dll file gives error message Pin
0x3c09-Jun-08 0:43
0x3c09-Jun-08 0:43 
GeneralRe: renaming .dll file gives error message Pin
pavya_Cool9-Jun-08 1:11
pavya_Cool9-Jun-08 1:11 
GeneralRe: renaming .dll file gives error message Pin
0x3c09-Jun-08 2:56
0x3c09-Jun-08 2:56 
QuestionUpdating a Progress Form Pin
danielk_8-Jun-08 17:18
danielk_8-Jun-08 17:18 
AnswerRe: Updating a Progress Form Pin
mav.northwind8-Jun-08 19:08
mav.northwind8-Jun-08 19:08 
QuestionWeb cam streaming Pin
SHINOJK8-Jun-08 12:13
SHINOJK8-Jun-08 12:13 
QuestionHow to insert item into ListView control that have 2 column ? Pin
Yanshof8-Jun-08 12:03
Yanshof8-Jun-08 12:03 
AnswerRe: How to insert item into ListView control that have 2 column ? Pin
teejayem8-Jun-08 12:07
teejayem8-Jun-08 12:07 

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.