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
Define web.config in .net?
Why do we use sessions?
Is redux flux?
Write a code for sending an email from asp.net application.
What does asp in asp.net stand for?
Explain what is clr?
What is the purpose of using MVC programming pattern in ASP.NET?
In which event of the page viewstate is available?
Can you explain page lifecycle in net?
Mention the namespace that is used to include .net data provider for sql server in .net code?
Why is global asax is used for?
What is custom attribute?
What is http only cookie?
Can we have 2 web config files?
What will happen if the server confugration file and the application confugration file have different values for sassion state ASP.NET?