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 asp.net control can embed xaml into asp.net pages?

543


What are the different properties of server control that exists?

567


What is Web Server Control Templates.?

588


What is s2s tracking?

537


Explain the use of view state?

564






What is the difference between Hash table and Array list?

373


What are the 3 types of web?

508


Whats the difference between abstract factory pattern and factory pattern?

601


How to sign out from forms authentication?

548


What is the difference between equals() and == in c#?

572


What is autopostback in dropdownlist in asp net?

535


What is the latest version of asp.net?

537


What is applicatio domain?

576


Why do we need a web application session?

510


What parameters can you pass in the url of the api? Can get and post use the same url?

558