Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dataset + Web Form + Empty on Button Click
Message
From
28/06/2005 23:28:07
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Dataset + Web Form + Empty on Button Click
Environment versions
Environment:
C# 1.1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01027257
Message ID:
01027257
Views:
61
Hi i have TextField that is bound to DataSet.The bindings work fine.then i have also save button. when I call update() method of SqlDataAdapter i notice that it wont update a data from a text field unless i manualy build a DML Strings . I notice that Dataset becomes empty at the time i click the button for update.I also create a CommandBuilder for SqlDataAdapter for auto generation of update statement. Are any issue on this? or maybe in the postbacK?
if (!this.IsPostBack )
	{
           /// Fill the DataSet 
	}
at click event on button
DataTable dt= this.dsUserList1.Tables["tblUser"];
			foreach (DataRow r in dt.Rows)
			{         
                                 // This is not Excuted because DataSet is Empty.
				r["FirstName"]="TestValue";
			}

			oDa.Update(this.dsUserList1,"tblUser");
Roses are #FF0000 Violets are #0000FF all my base are belong to you
Next
Reply
Map
View

Click here to load this message in the networking platform