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
Are xaml file compiled or built on runtime?
What is strong-typing versus weak-typing?
What is validation in asp.net?
Where the cookie value is stored?
What are standard controls?
Can you change a master page dynamically at runtime? How?
What is dynamic web page with example?
What is state management in asp.net with example?
Do session use cookies in asp net?
What are the advantages and disadvantages of session?
Why the javascript validation not run on the asp.net button but run successfully on the html button?
How to Separate background image and front image from original picture....
What is the main difference between Asp.net and Vb.net?
What is the difference between cache and cookies?
What are the cookies types in asp.net?