Click here to Skip to main content
15,881,248 members
Home / Discussions / C#
   

C#

 
QuestionHow to remove zero using Regx Pin
Exelioindia8-Jun-08 21:27
Exelioindia8-Jun-08 21:27 
AnswerRe: How to remove zero using Regx Pin
Exelioindia8-Jun-08 21:47
Exelioindia8-Jun-08 21:47 
GeneralRe: How to remove zero using Regx Pin
ncjlee8-Jun-08 22:04
ncjlee8-Jun-08 22:04 
QuestionPloblem about multithread programing? Pin
abcomp018-Jun-08 21:26
abcomp018-Jun-08 21:26 
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 
i have stored procedure from SQL have bit parameter returns 1 or 0,
the parameter works fine on SQL
on C# i have problems, as the following:

SqlCommand checkDone = new SqlCommand();
checkDone.Connection = con1;
checkDone.CommandType = CommandType.Text;
checkDone.CommandText = "checkCompatability";

SqlParameter complete = new SqlParameter("@award_num", SqlDbType.Int);
complete.Direction = ParameterDirection.Output;
complete.Value = int.Parse(comboAwardNum.Text);

SqlParameter comp = new SqlParameter("@compatability", SqlDbType.Bit);
comp.Direction = ParameterDirection.Output;
bool mybool=bool.Parse(comp.Value).ToString();//error here
lblresult.Text = comp.Value;

checkDone.Parameters.Add(complete);
checkDone.Parameters.Add(comp);


checkDone.Connection.Open();
checkDone.ExecuteScalar();
checkDone.Connection.Close();

how to return parameter value from SQL?

thanks
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 
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 

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.