.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> ADO.Net >> Post New Question Subscribe to Interview Questions

Which method do you invoke on the DataAdapter control to load your generated
dataset with data?

Posted By :nishithraj     Posted Date :December 28, 2009    Points :10   Category :ADO.Net 
System.Data.Common.DataAdapter.Fill(System.Data.DataSet);

You can also find related Interview Question to Which method do you invoke on the DataAdapter control to load your generated dataset with data?  below: 

What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?

  
Set the DataMember property to the name of the table to bind to. (If this property is not set, by default the first table in the dataset is used.)
DataBind method, use this method to bind data from a source to a server control. This method is commonly used after retrieving a data set through a database query.
(More...)

What is Method used to bind the data into gridview ?

  
DataBind() Method used to bind the data into gridview (More...)

What is the difference between Data Reader & Dataset?

  
Data Reader is connected datasource, read only, forward only record set.

Dataset is disconnected datatsource resides in memory database that can store multiple tables, relations and constraints; (More...)

How do you invoke a web method of web service in AJAX?

  
In order to use a webmethod of a webservice, we need to add the reference of webservice in the section of ScriptManager. Under services you have to configure the servicepath.

< asp:ScriptManager ID="ScriptManager1" runat="server">
< Services>
< asp:ServiceReference Path="..\service1.asmx" />
< /Services>
< /asp:ScriptManager>

Inside JAvascript Use methods of this service directly like
service1.methodname() (More...)

You are working with a DataSet and want to be able to display data, sorted different ways. How do you do so?

  
Select the correct answer.

1. Use the Sort method on the DataTable object.
2. Use the DataSet object's Sort method.
3. Use a DataView object for each sort.
4. Create a DataTable for each sort, using the DataTable object's Copy method, and then Sort the result


Correct Answer is :
3. Use a DataView object for each sort. (More...)

Can you edit data in the Repeater control?

  
No, it just reads the information from its data source. (More...)

Explain the steps involved to populate dataset with data?

  
Open connection.;
Initialize Adapter passing SQL and connection as parameter.;
Initialize Dataset.;
Call Fill method of the adapter passes dataset as the parameter.;
Close connection.; (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend