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 asp.net control can embed xaml into asp.net pages?
What are the different properties of server control that exists?
What is Web Server Control Templates.?
What is s2s tracking?
Explain the use of view state?
What is the difference between Hash table and Array list?
What are the 3 types of web?
Whats the difference between abstract factory pattern and factory pattern?
How to sign out from forms authentication?
What is the difference between equals() and == in c#?
What is autopostback in dropdownlist in asp net?
What is the latest version of asp.net?
What is applicatio domain?
Why do we need a web application session?
What parameters can you pass in the url of the api? Can get and post use the same url?