how to update data set?

Answers were Sorted based on User's Feedback



how to update data set? ..

Answer / kamlesh

With use of following code we update the data set:-
Using System.Data.SqlClient;
Using System .Data;
Using System.Configrution;
SqlDataAdpator da=new SqlDataAdaptor
("query",ConfigrutionSetting.AppSetting["key"]);
DataSet ds=new DataSet();
da.Fill(ds);
da.Update(ds);

Is This Answer Correct ?    3 Yes 0 No

how to update data set? ..

Answer / kuber manral

da.update(ds);
// da-->> object of dataAdapter
// da-->> object of Dataset

Is This Answer Correct ?    1 Yes 0 No

how to update data set? ..

Answer / anand

usuing data.sqlclient;
---code----
sqldataadapter da=new dataadapter();
dataset ds=new dataset();
da.fill(ds);
da.update(ds)

or we cause to solve problem as--
public override int Update(
DataSet dataSet
)

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

Can you explain how ASP.NET application life cycle and page life cycle events fire?

0 Answers   MindCracker,


What base class do all Web Forms inherit from?

2 Answers   Siebel Systems,


How we generate the BARCODE in ASP.Net using c# ! in library management systen for books .

2 Answers  


Define machine.config in .net?

0 Answers  


What is view state management in asp net?

0 Answers  


When cookie will expire?

0 Answers  


When an ASP.NET server control is added to a web form, Visual Studio .NET adds one item to the class for the form. What item is added? a) The event registration. b) A protected class member for the control. c) A default event handler for the click event. d) A default class that inherits from the control?s base class.

4 Answers   Syntax Softtech, TCS,


A Web Service Can Only Be Written In .net. Is it True??

0 Answers   Siebel Systems,


What is versioning in .NET?

1 Answers   Syntax Softtech, Wipro,


How do you handle session management in ASP.NET and how do you implement them. How do you handle in case of SQLServer mode ?

0 Answers   Microsoft,


In which situation can you not use a viewstate?

0 Answers  


How can you access the properties and controls of master pages from content pages?

0 Answers  


Categories