Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / wriju b

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 ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between runtime version and version?

983


Why we use content place holder in asp.net?

980


What is application and session in asp.net?

909


We are using Jscriopt validations and at clint site javascript is not running that time validation would work? if yes then how it would behave?

1858


Mention the namespace that is used to include .net data provider for sql server in .net code?

915


Define reflection in .net?

974


What is a session in asp.net?

996


COM+ Used ________________ Isolation Level

1921


Describe the diffeerence between inline and code behind?

961


Why do you use the app_code folder in asp.net?

1045


What are the new web part controls in asp.net 2.0 ?

978


Briefly describe the role of global.asax?

939


Explain About WebService

1080


Whats the difference between registerclientscriptblock, registerclientscriptinclude and registerclientscriptresource?

1011


What is the maximum number of classes that can be contained in one dll file?

1173