Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Adam #1
add checked items to a cart
Hi,
I have a datagrid with checkbox column inserted, it's allow user to add
serveral checked items to a cart when they click submit button, the code
looks like:
<asp:DataGrid id="Productlist" runat="server" />
<ItemTemplate> <asp:CheckBox id="Save" runat="server" /> </ItemTemplate>
</asp:DataGrid>
<html>
<asp:Button id="Submit" onclick="add_saved_items" runat="server" />
<asp:DataGrid id="mycart" runat="server" />
</html>
I think "add_saved_items" event should be like below but I don't know how to
write full code to let it works.
Sub Submit_Click (sender As Object, e As System.EventArgs)
Dim i As Integer
For i = 0 To Productlist.Items.Count - 1
Dim save As CheckBox =
CType(Productlist.Items(i).FindControl("Save"), CheckBox)
If save.Checked = True then
.................
Anyone can help me please?
Adam Guest
-
add multiple items to cart
hi all, my detail pg consists of ingredients to a recipe. a repeat region behaviour is added to my table of ingredients. i need to add all the... -
deleting items checked on page 2 in datagrid
Hi i'm working on deleting items in a datagrid selected using a checkbox used to work fine the problem is this if i delete something on page 2... -
NEED HELP please! retrieving checked items to a textbox
My datgrid displays the data when the checkbox is checked to a label...can someone help me make it display to textboxes instead? Textboxes are:... -
creating shopping cart & electronically have items appear on order form
I am developing an e-commerse web site. I currently have 25 pages done with several "item numbers" or part numbers as the hyperlink to purchase... -
advice on placing items into cart and quantities
You have ordered one item and placed it into your cart. Let's say you ordered one small black t-shirt. Your cart will have the product_id,...



Reply With Quote

