I am trying to add a button the the user can click on that will grab values from the row and then add to the cart. I would like this to confirm with the radwindow or radalert so the user is not taken to a new page and they can add items quickly. How do I do this?
Currently I have it setup to where a the code-behind will go through each row and look at the qty field and then add the rows that have a qty > 0
Currently I have it setup to where a the code-behind will go through each row and look at the qty field and then add the rows that have a qty > 0
For
Each
dataitem
As
GridDataItem
In
RadGrid1.Items
If
DirectCast
(dataitem.FindControl(
"qtytxt"
), TextBox).Text >
""
Then
Try
Dim
UOM
As
DropDownList =
DirectCast
(dataitem.FindControl(
"UOM_DDL"
), DropDownList)
Dim
qty
As
String
=
DirectCast
(dataitem.FindControl(
"qtytxt"
), TextBox).Text
Dim
item
As
GridDataItem = TryCast(dataitem, GridDataItem)
Dim
item_id
As
String
= RTrim(item(
"item_id"
).Text)
Dim
FindForm
As
FormView =
CType
(dataitem.FindControl(
"FormView3"
), FormView)
Dim
UnitPrice
As
Label =
CType
(FindForm.FindControl(
"Unit_Price"
), Label)
Dim
linecount
As
String
= GetLineCount()
nCMD.CommandText =
"*****************"
nConn.Open()
nCMD.ExecuteNonQuery()
nConn.Close()
Catch
ex
As
Exception
Session(
"error"
) = ex.ToString()
Response.Redirect(
"Cart.aspx?error="
& ex.ToString)
End
Try
End
If
Next