Click here to Skip to main content
15,921,179 members
Home / Discussions / C#
   

C#

 
AnswerRe: Lock Form Pin
jamie55010-Jun-08 1:41
jamie55010-Jun-08 1:41 
GeneralRe: Lock Form Pin
half-life10-Jun-08 2:18
half-life10-Jun-08 2:18 
QuestionHow to define object type in ArrayList ? Pin
Yanshof10-Jun-08 1:07
Yanshof10-Jun-08 1:07 
AnswerRe: How to define object type in ArrayList ? Pin
N a v a n e e t h10-Jun-08 1:22
N a v a n e e t h10-Jun-08 1:22 
AnswerRe: How to define object type in ArrayList ? Pin
#realJSOP10-Jun-08 2:51
professional#realJSOP10-Jun-08 2:51 
QuestionRegarding Activex Control Pin
Member 477486810-Jun-08 0:45
Member 477486810-Jun-08 0:45 
AnswerRe: Regarding Activex Control Pin
Arjun Marwaha10-Jun-08 0:53
Arjun Marwaha10-Jun-08 0:53 
GeneralRe: Regarding Activex Control Pin
Member 477486810-Jun-08 19:06
Member 477486810-Jun-08 19:06 
QuestionREfresging Form While process is running Pin
MumbleB9-Jun-08 23:57
MumbleB9-Jun-08 23:57 
AnswerRe: REfresging Form While process is running Pin
Giorgi Dalakishvili10-Jun-08 0:12
mentorGiorgi Dalakishvili10-Jun-08 0:12 
GeneralRe: REfresging Form While process is running Pin
MumbleB10-Jun-08 1:44
MumbleB10-Jun-08 1:44 
GeneralRe: REfresging Form While process is running Pin
Giorgi Dalakishvili10-Jun-08 1:56
mentorGiorgi Dalakishvili10-Jun-08 1:56 
GeneralRe: REfresging Form While process is running Pin
MumbleB10-Jun-08 5:44
MumbleB10-Jun-08 5:44 
GeneralRe: REfresging Form While process is running [modified] Pin
Giorgi Dalakishvili10-Jun-08 6:03
mentorGiorgi Dalakishvili10-Jun-08 6:03 
GeneralRe: REfresging Form While process is running Pin
MumbleB10-Jun-08 7:07
MumbleB10-Jun-08 7:07 
GeneralRe: REfresging Form While process is running Pin
Giorgi Dalakishvili10-Jun-08 7:35
mentorGiorgi Dalakishvili10-Jun-08 7:35 
QuestionSplash Screen Form Pin
see_seA9-Jun-08 23:57
see_seA9-Jun-08 23:57 
AnswerRe: Splash Screen Form Pin
leppie10-Jun-08 23:46
leppie10-Jun-08 23:46 
GeneralRe: Splash Screen Form Pin
see_seA11-Jun-08 0:02
see_seA11-Jun-08 0:02 
Questionproblem with output parameter Pin
Mr.Kode9-Jun-08 23:50
Mr.Kode9-Jun-08 23:50 
i have stored procedure with two parameters as follows:
create procedure checkCompatability
(
@compatility varchar output,
@award_num int
)
AS
SET NOCOUNT OFF;
IF EXISTS (SELECT Award_num from table1 where award_num=@award_num)
begin
set @compatability='Y'
print @compatability
end
else
set @compatability='N'
print @compatability
GO

in C# parameters:

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

SqlParameter comp = new SqlParameter("@compatability", SqlDbType.VarChar);

string S = comp.Value.ToString();\\null reference exception occours here
lblresult.Text = S.ToString();
comp.Direction = ParameterDirection.Output;


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


lblresult.Text = comp.Value.ToString();

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

checkDone.ExecuteNonQuery();
checkDone.Connection.Close();

what is the problem with that code?
AnswerRe: problem with output parameter Pin
Ashfield10-Jun-08 1:25
Ashfield10-Jun-08 1:25 
AnswerRe: problem with output parameter Pin
Eslam Afifi10-Jun-08 2:30
Eslam Afifi10-Jun-08 2:30 
QuestionAdding VB Code to ThisWorkbook using C# problem Pin
Yasser Sobhdel9-Jun-08 23:26
Yasser Sobhdel9-Jun-08 23:26 
QuestionByte[] type in datagrid gives error. Pin
topcatalpha9-Jun-08 23:08
topcatalpha9-Jun-08 23:08 
QuestionFetching files Pin
shriya_179-Jun-08 23:04
shriya_179-Jun-08 23:04 

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.