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 / karna
dbcomm = New OleDbCommand("SELECT name FROM members",
conn_str)
dbread = dbcomm.ExecuteReader();
while(dbread.Read())
{
response.write(dbread("name"))
}
dbread.Close()
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Describe how to implement globalization and localization in the use interface in .net.
Define the steps to set up validation control.
Can asp.net work on an nt server?
How many types of session in ASP.NET
Define web services in asp.net.
What is difference between rest and soap?
Which adapter should you use, if you want to get the data from an access database?
i develop a web application and i gave security setting i.e autherization and athentication now it work properly on my local system , now question is ,is this security setting ie autherization and athentication which i gave in web.config will it be enough strong to secure my application on internet or i have to use some 3rd party tool or software to get security .if yes --how ? if no--what is the alternate?
Where session id is stored?
What is cross page posting in asp net?
What is AutoEventWireup attribute for ?
Which data type does the rangevalidator control support?
What is difference between session and cookie?
What symbol would you use to denote, the start of a code block in aspx views?
When does a session actually start?