Textbox not updating
Hi,
I've created a simple shopping cart web app, and I'm using a Data Grid to display the shopping cart table. I inserted a textbox into a TemplateColumn, and in the code behind page, I use:
TextBox txtQuantity = (TextBox) DataGrid1.Items[i].FindControl("Quantity") to grab the value from each row. I then compare txtQuantity to DataGrid1.DataKeys[i] (the Quantity datafield is assigned as the DataFieldKey). But if the Quantity textbox is updated, the old one that was pulled from the database is still the value -- it's not reading my change. Any ideas? Thank you in advance.
__________________
Steve
iTek Corporation
http://itekcorp.com
|