What is the difference between ExecuteReader,ExecuteNonQuery
and ExecuteScalar.
Answer Posted / rajesh
Execute Reader: it executes the command and returns the result
set of the command
Execute NonQuery: it executes the command and returns the
number of rows affected
Execute Scalar: it executes the command and returns only
first row first column value
| Is This Answer Correct ? | 46 Yes | 8 No |
Post New Answer View All Answers
Will the asp.net validators run in server side or client side? How do you do client-side validation in .net?
What is difference between View State and Hidden Field in ASP.NET?
Explain the difference between sql invalidation and sql notification.
How can we update records in gridview?Is there any appropriate code for it?
Difference between web user control and web custom control?
What is server infrastructure?
Define xmlvalidatingreader class.
Explain the benefits of viewstate?
Explain cashing in asp.net.
How long do session variables last?
Describe Segmentation With Paging?
Explain the difference between inline and code behind - which is best in?
Define view state.
What is the flow of processing of the request? : asp.net mvc
How does a content page differ from a master page?