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 is the size of Get method and how much data it can store?
What is advantage of asp.net?
Explain the concept of MVC Scaffolding?
A Web Service Can Only Be Written In .net. Is it True??
Explain the use of duration attribute of @outputcache page directive.
What is http session state?
About CLR, reflection and assemblies?
What is microsoft windows sharepoint services?
What is difference between session and application in asp net?
What is event bubbling?
Explain code snippet to register exception filters from controller?
What is the use of response redirect in asp.net?
What would be salary for 8+ years of experience in ASP.NET in different metro city in india?
What are httphandlers and httpmodules and difference between them?
What are the contents of cookie?