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 / jerry joseph

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 ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you dynamically add user controls to a page?

967


Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?

992


Why asp.net mvc is better than asp.net? : Asp.Net MVC

1146


Why mvc is better than asp.net? : Asp.Net MVC

953


Define transparent caching with aop?

1097


What events will occur when a page is loaded?

1043


What is a server farm in iis?

1044


How do you implement postback with a text box?

989


Explain Optimization technique description?

1043


How does a content page differ from a master page?

1045


How can you identify that the page is post back?

1009


Apart from IDE what are the enhancements in asp.net 2.0?

2114


How do you declare static variable? What is its lifetime?

963


What is the base class from which web forms are inherited?

1016


Explain model, view and controller represent in an mvc application? : asp.net mvc

938