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 strong-typing versus weak-typing?

1131


To display data in the combo box, prior to setting the Data Source, what kind of property on a Combo Box do you set with a column name?

1070


How do u optimize a query in asp.net?

1016


What are server activated objects?

1177


What is a ashx file?

1136


What is server infrastructure & server components?

1227


How to retrieve user name in case of Window Authentication?

759


Why is global asax is used for?

1104


What is the Intermittent crashing of application in production?

1064


How can you handle unmanaged code exceptions in asp.net?

1103


Why select Web API?

1020


What threading model used in asp and asp.net?

1075


How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server

6656


If I am developing an application that must accomodate multiple security levels though secure login and my asp.net web application is spanned across three web-servers (using round-robin load balancing). What would be the best approach to maintain login-in state for the users?

1102


What are the various types of validation controls provided by asp.net?

996