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...

ADO.Net - how to get data from database and bind to the
controls -- write this small code

Answer Posted / kaarthikeyan

establish a connection and declare sqldataadapter,dataset
sda=new sqldataadapter("select the appropriate
table",connectionobj);
ds=new dataset();
sda.fill(ds);
gridview1.datasource=ds;
gridview1.databind();

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between or and orelse?

926


What is round trip in asp.net?

883


What is the significance of finalize method in .net?

981


What are the advantages of using session?

847


What are the session management techniques asp net?

949


What does it mean your session has timed out?

925


What is distributed system in asp.net?

980


Is sql backend or frontend?

964


What is synchronous and Asynchronous post back ?

1063


Less than one page, how many windows will you be able to maintain?

937


They mostly asked difference between versions of technologies

1319


What are session cookies?

957


What is csrf attack in asp.net?

963


Explain MVC model binders?

1016


Is LINQ performance wise better or using sqlcommand?

5006