Click here to Skip to main content
15,890,123 members
Home / Discussions / C#
   

C#

 
QuestionSortedDictionary v.s. Dictionary Pin
George_George8-Jun-08 22:41
George_George8-Jun-08 22:41 
AnswerRe: SortedDictionary v.s. Dictionary Pin
leppie9-Jun-08 3:43
leppie9-Jun-08 3:43 
GeneralRe: SortedDictionary v.s. Dictionary Pin
George_George9-Jun-08 16:57
George_George9-Jun-08 16:57 
QuestionX509Store from file Pin
komadich8-Jun-08 22:40
komadich8-Jun-08 22:40 
GeneralRe: X509Store from file Pin
telha9-Jun-08 0:40
telha9-Jun-08 0:40 
QuestionEncoding problem with string from DLL Pin
steve_rm8-Jun-08 21:46
steve_rm8-Jun-08 21:46 
AnswerRe: Encoding problem with string from DLL Pin
ncjlee8-Jun-08 21:56
ncjlee8-Jun-08 21:56 
QuestionRe: Encoding problem with string from DLL Pin
steve_rm9-Jun-08 1:45
steve_rm9-Jun-08 1:45 
AnswerRe: Encoding problem with string from DLL Pin
ncjlee9-Jun-08 2:40
ncjlee9-Jun-08 2:40 
QuestionRe: Encoding problem with string from DLL Pin
steve_rm9-Jun-08 16:33
steve_rm9-Jun-08 16:33 
Questioni want to upload all files from one folder( in client side) to server without browse option Pin
md_azy8-Jun-08 21:30
md_azy8-Jun-08 21:30 
AnswerRe: i want to upload all files from one folder( in client side) to server without browse option Pin
Guffa8-Jun-08 21:33
Guffa8-Jun-08 21:33 
GeneralRe: i want to upload all files from one folder( in client side) to server without browse option Pin
md_azy9-Jun-08 1:29
md_azy9-Jun-08 1:29 
GeneralRe: i want to upload all files from one folder( in client side) to server without browse option Pin
Guffa9-Jun-08 6:38
Guffa9-Jun-08 6:38 
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 

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.