Below is a code extract from an ASP.Net application.
The code basically reads data from the “name” field in
the “members” table and prints them onto the webpage.
Using the assumptions provided, fill in the 4 blanks below
so that the code will run correctly.
‘Assumptions:
‘conn_str is a variable that holds the connection string to
the database
‘Objects dbcomm and dbread are already declared earlier
dbcomm = New OleDbCommand("SELECT name FROM members",
conn_str)
dbread = dbcomm._______________
_____________________
response.write(_______________)
_____________________
dbread.Close()

Answer Posted / chauhan rakesh botad

dbcomm = New OleDbCommand("SELECT name FROM members",
conn_str)
dbread = dbcomm.ExecuteReader()
while(dbread.Read())
response.write(dbread.GetString(1)))
dbread.NextResult()
dbread.Close(

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What r the asp.net list controls and diff. Between them?

608


How can we prepairing Interview

1977


Explain about Application and Session Events ?

722


How does session work?

588


What is full form of asp.net?

608






What is xaml? Are xaml file compiled or built on runtime?

605


Explain how do you validate the controls in an asp .net page?

608


Differentiate globalization and localization.

671


What is session handling in a webfarm, how it can work with its limits?

716


Web API uses which library for JSON serialization?

653


What is state management technique?

632


What are the main requirements for caching?

635


What is the difference between mvc and asp.net? : Asp.Net MVC

563


Explain some of the major built-in objects in asp.net

689


What is the difference between session.abandon() vs clear()?

623