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
Explain about secure socket layer?
What is autopost?
Can we add code files of different languages in app_code folder?
Explain the difference between panel and groupbox classes using .net?
Will the asp.net validators run in server side or client side?
Can you explain one critical mapping? Performance issue which one is better?
What are the Types of authentications in IIS
What is server side in asp.net?
How do you open a page in a new window?
How do I use response redirect?
How can we prepairing Interview
How to manage different kinds of sessions in ASP.NET?
What is the good practice to implement validations in aspx page?
List all templates of the repeater control.
Why do we need asp.net?