Submit information from textbox within GridView
-
Friday, February 10, 2012 9:10 PM
I have a basic order form where my GridView is populated from a SQL query to get a list or products. The only columns I have in my GridView are a BoundField for ProductName, and a TemplateField with a textbox for Quantity.
The binding of the datagrid happens on PageInit.
My problem is that if I fill out the form, and put in a quantity of a product within the GridView, when I submit the web form, I can't grab the ProductName and that specific quanity associated with it.
For example... (my DataGrid will look like this on the webpage)
Product Name Quantity
Mouse 3
Keyboard
Monitor 1
MousepadOn submit, I need to iterate through the DataGrid, grab the Product Name and the Quantity associated with it, and ONLY the products that have a quantity, if the quantity is blank, I don't want that information.
Ryan Elliott Web Application Developer/SharePoint Admin
All Replies
-
Wednesday, February 15, 2012 9:11 AMModerator
Hi,
For asp.net issue, please post in asp.net forums where you can get fast and direct help.
Thanks
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com. Microsoft One Code Framework
- Marked As Answer by Lloyd ZhangMicrosoft Contingent Staff, Moderator Monday, February 20, 2012 3:31 AM

