Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dataset + Web Form + Empty on Button Click
Message
De
28/06/2005 23:28:07
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Dataset + Web Form + Empty on Button Click
Versions des environnements
Environment:
C# 1.1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01027257
Message ID:
01027257
Vues:
60
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform