Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Append record to a table
Message
From
13/08/2007 08:44:24
Bonhomme Sanon
Hercules Software
Netherlands
 
 
To
All
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Append record to a table
Environment versions
Environment:
C# 2.0
OS:
Windows XP
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01247790
Message ID:
01247790
Views:
68
As Visual Foxpro programmer I am thinking to make the transition to .NET but I am having problems to result some basic issues of Database programming, I am just two weeks busy.

Can anyone please tell me how can I save data at the end of my application, I a trying this Function without success

private void SaveData()
{
this.Validate();
this.weatherRecordBindingSource.EndEdit();
this.weatherRecordTableAdapter.Update (this.database1DataSet.WeatherRecord);
Database1DataSet.WeatherRecordDataTable tablechanges =
database1DataSet.WeatherRecord.GetChanges(
DataRowState.Added | DataRowState.Modified)
as Database1DataSet.WeatherRecordDataTable;
if (tablechanges != null)
{
weatherRecordTableAdapter.Update(tablechanges);
}
database1DataSet.AcceptChanges();
}
Next
Reply
Map
View

Click here to load this message in the networking platform