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
What is strong-typing versus weak-typing?
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?
How do u optimize a query in asp.net?
What are server activated objects?
What is a ashx file?
What is server infrastructure & server components?
How to retrieve user name in case of Window Authentication?
Why is global asax is used for?
What is the Intermittent crashing of application in production?
How can you handle unmanaged code exceptions in asp.net?
Why select Web API?
What threading model used in asp and asp.net?
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
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?
What are the various types of validation controls provided by asp.net?