how to update data set?
Answers were Sorted based on User's Feedback
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 |
Answer / kuber manral
da.update(ds);
// da-->> object of dataAdapter
// da-->> object of Dataset
Is This Answer Correct ? | 1 Yes | 0 No |
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 |
Can you explain how ASP.NET application life cycle and page life cycle events fire?
What base class do all Web Forms inherit from?
How we generate the BARCODE in ASP.Net using c# ! in library management systen for books .
Define machine.config in .net?
What is view state management in asp net?
When cookie will expire?
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??
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 ?
In which situation can you not use a viewstate?
How can you access the properties and controls of master pages from content pages?