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

Is asp.net is a programming language?

487


How many types of sessions in asp.net?

577


What are Authentication and Authorization?

602


How does a content page differ from a master page?

506


Web API uses which library for JSON serialization?

564






In What Order Do The Events Of An Aspx Page Execute. As A Developer Is It Important To Undertsand These Events?

573


Is asp.net easy to learn?

553


What is the difference between the response.write() and response.output.write() methods?

509


Explain http handlers? Where we can use the http handlers?

683


Define static function?

568


What is the concepts of globalization and localization in .net?

528


What are demand-paging and pre-paging?

572


What is a url string?

549


What are the asp.net list controls and difference between them?

512


What is ashx file in asp.net?

548