Basically what I have is a datadrid I'm filling with accessories for a product that can be ordered. In a TemplateColumn, I've added a asp:TextBox. This is the box a user would enter the Quantity of the accessory they want to order (if they want).
How do I loop through each DataRow in the DataGrid and check if a quantity was entered so I can add a record to my a database if there was valid data in the TextBox? Ideally I'd like to have an ImageButton that gets clicked and then the logic is processed.
Your help is greatly appreciated.
How do I loop through each DataRow in the DataGrid and check if a quantity was entered so I can add a record to my a database if there was valid data in the TextBox? Ideally I'd like to have an ImageButton that gets clicked and then the logic is processed.
Your help is greatly appreciated.