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
Is asp.net is a programming language?
How many types of sessions in asp.net?
What are Authentication and Authorization?
How does a content page differ from a master page?
Web API uses which library for JSON serialization?
In What Order Do The Events Of An Aspx Page Execute. As A Developer Is It Important To Undertsand These Events?
Is asp.net easy to learn?
What is the difference between the response.write() and response.output.write() methods?
Explain http handlers? Where we can use the http handlers?
Define static function?
What is the concepts of globalization and localization in .net?
What are demand-paging and pre-paging?
What is a url string?
What are the asp.net list controls and difference between them?
What is ashx file in asp.net?