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
What r the asp.net list controls and diff. Between them?
How can we prepairing Interview
Explain about Application and Session Events ?
How does session work?
What is full form of asp.net?
What is xaml? Are xaml file compiled or built on runtime?
Explain how do you validate the controls in an asp .net page?
Differentiate globalization and localization.
What is session handling in a webfarm, how it can work with its limits?
Web API uses which library for JSON serialization?
What is state management technique?
What are the main requirements for caching?
What is the difference between mvc and asp.net? : Asp.Net MVC
Explain some of the major built-in objects in asp.net
What is the difference between session.abandon() vs clear()?