Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Binding Woes
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01308083
Message ID:
01308126
Vues:
10
>I'm still very stuck getting my simple project to work.
>http://www.geocities.com/kevin.marois/project/project.zip
>
>Anyone wanna help out a lost newby?

One noob to another... Whats the problem?

Only thing I saw was a missing SQL update command here:
public void UpdateUser(DataSet oUserData)
  {
  SqlConnection oConnection = _GetConnection();

  SqlDataAdapter oDataAdapter = new SqlDataAdapter("select * from AppUsers", Connection);
  SqlCommandBuilder oBuilder = new SqlCommandBuilder(oDataAdapter);
  oDataAdapter.Update(oUserData, oUserData.Tables[0].TableName);
  }
oDataAdapter.UpdateCommand = null

You need to fill in the Update, Delete and Insert commands in the DataAdapter when needed.

I suggest you use the dataset template under data to get started on your data classes. It will create typed classes for your database objects. (A big plus.) And you can also explore the code it creates for lots of useful hints on how (or how not<g>) to do things.

Also I recommend you right click on your solution and go "add/existing project" and include your DataAccess project in your main solution, it will make your life a lot easier. (Doing so does not prevent you from adding that project to another solution.)

Did I guess the problem... or was it something else?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform