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 / karna

dbcomm = New OleDbCommand("SELECT name FROM members",
conn_str)
dbread = dbcomm.ExecuteReader();
while(dbread.Read())
{
response.write(dbread("name"))
}
dbread.Close()

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When cookie will expire?

580


What is http protocol and how it works?

527


What websites use asp.net?

522


What language is asp.net written in?

526


What is application in asp net?

492






When maintaining session through sql server, what is the impact of read and write operation on session objects?

529


What are server objects?

517


What is the flow of processing of the request? : asp.net mvc

508


How do you open a page in a new window?

550


What is a postback url?

491


what are the web form events available in asp.net?

556


Why do I get error message "could not load type" whenever I browse to my asp.net web site?

627


What is difference between session and cookies in asp net?

500


5. What three Specific Job Positions do you target from Swatz Oils GROUP U.K?

1763


Explain Optimization technique description?

596