Click here to Skip to main content
       

ASP.NET

 
QuestionCapsLock detection Pinmembertpkpradeep27-Dec-12 0:04 
AnswerRe: CapsLock detection PinmemberAnalogNerd27-Dec-12 3:56 
AnswerRe: CapsLock detection [modified] PinmemberCommDev28-Dec-12 21:50 
QuestionApplication Layering PinmemberOmersayeed26-Dec-12 2:31 
QuestionSyntax error in store procedure Pinmemberanubhaw.gupta25-Dec-12 22:06 
AnswerRe: Syntax error in store procedure PinmemberSravanthid2825-Dec-12 22:21 
GeneralRe: Syntax error in store procedure Pinmemberanubhaw.gupta25-Dec-12 22:40 
AnswerRe: Syntax error in store procedure Pinmemberanubhaw.gupta25-Dec-12 22:45 
GeneralRe: Syntax error in store procedure Pinmembersathish s26-Dec-12 1:39 
GeneralRe: Syntax error in store procedure PinmemberZafar Sultan26-Dec-12 3:31 
Questionid or guid.. which one? PinmemberJassim Rahma25-Dec-12 7:22 
AnswerRe: id or guid.. which one? PinmvpSandeep Mewara25-Dec-12 19:14 
AnswerRe: id or guid.. which one? [modified] PinmemberCommDev25-Dec-12 19:25 
Questionwhy should I care about ExecuteScalar PinmemberJassim Rahma25-Dec-12 5:57 
Hi,
 
I have been using ExecuteNonReader for a quite long time now and it's doing great for me. For example
 
SqlCommand cmd = new SqlCommand("select count(uname) from users_tbl where uname=@uname and password=@password", con);
cmd.Parameters.AddWithValue("uname", username);
cmd.Parameters.AddWithValue("password", password);
con.Open();
cmd.ExecuteNonReader();
then why should I use it like this:
 
SqlCommand cmd = new SqlCommand("select count(uname) from users_tbl where uname=@uname and password=@password", con);
cmd.Parameters.AddWithValue("uname", username);
cmd.Parameters.AddWithValue("password", password);
con.Open();
cmd.ExecuteScalar();

 
Technology News @ www.JassimRahma.com

AnswerRe: why should I care about ExecuteScalar PinmvpSandeep Mewara25-Dec-12 19:30 
AnswerRe: why should I care about ExecuteScalar PinmemberCommDev25-Dec-12 19:33 
AnswerRe: why should I care about ExecuteScalar PinmemberCommDev25-Dec-12 19:40 
GeneralRe: why should I care about ExecuteScalar PinmemberJassim Rahma28-Dec-12 9:40 
GeneralRe: why should I care about ExecuteScalar PinmemberNaveen Katta26-Dec-12 0:10 
Questiona control that should contain html elements [modified] PinmemberAli Al Omairi(Abu AlHassan)23-Dec-12 23:01 
QuestionRe: a control that should contain html elements Pinmemberjkirkerx24-Dec-12 13:09 
AnswerRe: a control that should contain html elements PinmemberAli Al Omairi(Abu AlHassan)25-Dec-12 19:51 
Questioncheckedchange event of gridview in javascript PinmemberRavi_kant23-Dec-12 19:29 
AnswerRe: checkedchange event of gridview in javascript PinmemberSampath Kumar Sathiya24-Dec-12 0:20 
GeneralRe: checkedchange event of gridview in javascript PinmemberRavi_kant24-Dec-12 7:40 
Questionupdated data from gridview PinmemberMember 970720723-Dec-12 0:30 
AnswerRe: updated data from gridview PinmemberAli Al Omairi(Abu AlHassan)24-Dec-12 4:31 
AnswerRe: updated data from gridview PinmvpSandeep Mewara25-Dec-12 19:35 
Question.net question PinmemberTarani Dutt Joshi21-Dec-12 23:53 
AnswerRe: .net question PinmvpRichard MacCutchan22-Dec-12 0:18 
AnswerRe: .net question PinmemberMaulikDusara24-Dec-12 21:38 
AnswerRe: .net question PinmvpSandeep Mewara25-Dec-12 19:33 
QuestionWebRequest Pinmembercdpsource21-Dec-12 14:16 
Questionwebpage has resulted in too many redirects PinmemberJassim Rahma21-Dec-12 9:46 
AnswerRe: webpage has resulted in too many redirects Pinmemberjkirkerx22-Dec-12 18:50 
GeneralRe: webpage has resulted in too many redirects PinmemberJassim Rahma23-Dec-12 8:36 
GeneralRe: webpage has resulted in too many redirects Pinmemberjkirkerx23-Dec-12 8:47 
GeneralRe: webpage has resulted in too many redirects PinmemberJassim Rahma24-Dec-12 9:10 
GeneralRe: webpage has resulted in too many redirects Pinmemberjkirkerx24-Dec-12 13:05 
Questionpop up on mouse over on a image button PinmemberYasir88721-Dec-12 6:42 
AnswerRe: pop up on mouse over on a image button PinmemberAnalogNerd21-Dec-12 9:26 
GeneralRe: pop up on mouse over on a image button PinmemberYasir88721-Dec-12 17:09 
AnswerRe: pop up on mouse over on a image button Pinmembern.podbielski22-Dec-12 21:50 
AnswerRe: pop up on mouse over on a image button [modified] PinmemberCommDev23-Dec-12 14:35 
Questionasp.net PinmemberNitin Pant20-Dec-12 21:43 
AnswerRe: asp.net PinmvpRichard MacCutchan20-Dec-12 22:57 
RantRe: asp.net PinmemberRichard Deeming21-Dec-12 1:31 
GeneralRe: asp.net PinmvpRichard MacCutchan21-Dec-12 2:04 
JokeRe: asp.net Pinmembern.podbielski22-Dec-12 21:54 
AnswerRe: asp.net PinmemberJ4amieC20-Dec-12 23:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.140718.1 | Last Updated 22 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid