Click here to Skip to main content
15,902,114 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: url cannot be access Pin
Sandeep Mewara22-Jun-10 11:02
mveSandeep Mewara22-Jun-10 11:02 
GeneralRe: url cannot be access Pin
netJP12L22-Jun-10 15:16
netJP12L22-Jun-10 15:16 
GeneralRe: url cannot be access Pin
Sandeep Mewara22-Jun-10 20:00
mveSandeep Mewara22-Jun-10 20:00 
QuestionHelp me to Learn ASP.NET Pin
mwaqas199022-Jun-10 9:01
mwaqas199022-Jun-10 9:01 
AnswerRe: Help me to Learn ASP.NET Pin
netJP12L22-Jun-10 9:08
netJP12L22-Jun-10 9:08 
AnswerRe: Help me to Learn ASP.NET Pin
Dr.Walt Fair, PE22-Jun-10 10:39
professionalDr.Walt Fair, PE22-Jun-10 10:39 
QuestionPassing Parameters to a Stored Procedure (in C# NOT VB) Pin
DRAYKKO22-Jun-10 7:57
professionalDRAYKKO22-Jun-10 7:57 
AnswerRe: Passing Parameters to a Stored Procedure (in C# NOT VB) [modified] Pin
Not Active22-Jun-10 8:20
mentorNot Active22-Jun-10 8:20 
You using the wrong method, cmd.ExecuteNonQuery(); is for commands like updates and inserts. You want to return data so need to use something like ExecuteReader. However, since you are using DataAdapater.Fill the call is not necessary at all.

Since SqlParameters are input by default it is not necessary to set it explicitly and the value can be set directly using
AddWithValue[^] so you eliminate a few lines.

Also, using SELECT * in a sql statement is a poor practice.

I know the language. I've read a book. - _Madmatt
modified on Tuesday, June 22, 2010 2:36 PM

GeneralRe: Passing Parameters to a Stored Procedure (in C# NOT VB) Pin
DRAYKKO22-Jun-10 8:28
professionalDRAYKKO22-Jun-10 8:28 
AnswerRe: Passing Parameters to a Stored Procedure (in C# NOT VB) Pin
Adam R Harris22-Jun-10 11:13
Adam R Harris22-Jun-10 11:13 
QuestionTab control within Tab Control Pin
indian14322-Jun-10 7:46
indian14322-Jun-10 7:46 
AnswerRe: Tab control within Tab Control Pin
Sandeep Mewara22-Jun-10 11:16
mveSandeep Mewara22-Jun-10 11:16 
QuestionUpdatePanel prevents javascript from getting latest value from a control Pin
Adam Brown 322-Jun-10 7:29
Adam Brown 322-Jun-10 7:29 
AnswerRe: UpdatePanel prevents javascript from getting latest value from a control Pin
Not Active22-Jun-10 8:11
mentorNot Active22-Jun-10 8:11 
GeneralRe: UpdatePanel prevents javascript from getting latest value from a control Pin
Adam Brown 322-Jun-10 9:39
Adam Brown 322-Jun-10 9:39 
GeneralRe: UpdatePanel prevents javascript from getting latest value from a control Pin
Not Active22-Jun-10 9:55
mentorNot Active22-Jun-10 9:55 
QuestionJavascript Print Function is not working Pin
jintalPatel22-Jun-10 6:18
jintalPatel22-Jun-10 6:18 
AnswerRe: Javascript Print Function is not working Pin
Sandeep Mewara22-Jun-10 7:16
mveSandeep Mewara22-Jun-10 7:16 
Questionloading a simple text file in iframe Pin
netJP12L22-Jun-10 4:27
netJP12L22-Jun-10 4:27 
AnswerRe: loading a simple text file in iframe Pin
jintalPatel22-Jun-10 4:43
jintalPatel22-Jun-10 4:43 
GeneralRe: loading a simple text file in iframe [modified] Pin
netJP12L22-Jun-10 5:07
netJP12L22-Jun-10 5:07 
QuestionASP COOKIES Pin
graeme138322-Jun-10 3:36
graeme138322-Jun-10 3:36 
AnswerRe: ASP COOKIES Pin
Not Active22-Jun-10 4:17
mentorNot Active22-Jun-10 4:17 
AnswerRe: ASP COOKIES Pin
R. Giskard Reventlov22-Jun-10 4:49
R. Giskard Reventlov22-Jun-10 4:49 
Questionsource files without .sln or .vbproj files Pin
Alberto De Caro21-Jun-10 23:44
Alberto De Caro21-Jun-10 23:44 

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.