Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Binding Woes
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01308083
Message ID:
01308126
Views:
9
>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform