Using the Datalist

  • Thread starter Thread starter Jerry Camel
  • Start date Start date
J

Jerry Camel

Okay... I know this will show my inexperience with web coding... I'm using
a DataList to display information. All is good for the display portion and
I can get to the editing, but how do I save that changes back to the
database? The sample for the datalist only gives this:

' Add code here to update the Quantity value of the data source

' using the newQuantity variable. Note that newQuantity is a

' string and would have to be converted to a number.


So how do I actually accomplish this? Thanks.

Jerry
 
Jerry Camel said:
Okay... I know this will show my inexperience with web coding... I'm using
a DataList to display information. All is good for the display portion and
I can get to the editing, but how do I save that changes back to the
database? The sample for the datalist only gives this:

' Add code here to update the Quantity value of the data source

' using the newQuantity variable. Note that newQuantity is a

' string and would have to be converted to a number.


So how do I actually accomplish this? Thanks.

Jerry
Depends on the kind of database but in general you will need to make a
connection to it and send a command to the database to insert or update the
database record.
 
Is there some sample code you can point me to using a datalist and the
SqlDataAdapter? Or do you have to search for the record in a new
dataadapter each time?
 
Jerry Camel said:
Is there some sample code you can point me to using a datalist and the
SqlDataAdapter? Or do you have to search for the record in a new
dataadapter each time?
If you do a quick search on Google you will find many examples.
 
Back
Top