I have about 5 Product Gridviews, where the gridviews are populated based on product Category.
In these gridviews, i have " +" sign.Whne the user clicks on it, the product gets added to "Request Gridview" like the shopping cart. The user then, enters the quantity he needs.
Now with the other information on th aspx page like shipping information( all textboxes on aspx page), the page gets submitted.
So what i basically do is, enter the shipping information to database and then enters request items to database.
But the problem is i'm not getting the textbox value of the quantity from the Gridview.
I'm not using RowUpdating event on that RequestCart to get that value.
Please help me get the Quantity textbox value.
BTW, i add the quantity textbox of the requestCart gridview , programatically.
I have pasted the code below.
Thanks for looking
Private Function CallRequestCartInsert(ByVal RequestId As Guid) As Boolean
For Each gr As GridViewRow In requestCart.Rows
Dim Quantity As String = DirectCast(gr.FindControl("txtQuantity"), TextBox).Text
If Not (Quantity = String.Empty) Then
Dim gridRow As GridViewRow = gr
Dim RequestItemId As Guid = System.Guid.NewGuid
'===Set the ProductId andBrochureId and quantity,in the currently selected row.
Dim BrochureId As String = gridRow.Cells(3).Text.ToString
Dim ProductId As String = gridRow.Cells(4).Text.ToString