Building an ASP.NET Shopping Cart Using DataTables

Weclome back Zak.

Hey Louis. I don’t know how long I’m back for. I’m working like a mad man on the new Dreamweaver MX Unleashed book. They fired my co-author and want me to take complete control. So I’ve been rewriting all of his chapters before they announce the beta. I have about 2 and 1/2 chapters left to go and I think they’re going to announce the beta sometime in late May. So I’ve had a little time to do other things that I wouldn’t be able to do.

How’s everything going? How’s San Diego treating you? We definately have to hook up a surf session soon!

What version of DW would this be? Is Macromedia stirring something up that I haven’t read about?

How’s it Ryan,

I hate to say this because I’ll sound like Jeffy, but I’m under NDA so I can’t say anything more. Macromedia is strict about their NDA’s and I’m sure their employees use this board.

Not too bad, busy as usual. lol, no problems, I’m used to knowing nothing or being kept out of the loop.

Reading everyones comments, just confirm, basically does the session store the information in a temp “file” which can be called up and displayed showing stored informationon from another page on the site? i understand you can store the information on the database, then basically browse the site and call up the items from the database to display in the basket? but does this example work in the same sense on storing the information and calling it up on different areas of the site by using the variable Session(“Cart”)? ( sorry if this does nt make sense )

its cool i got answer om my own questions

it’s realy nice…and understandable

How can i modify the text of ondeletecommand???

Well, I was looking some sample like this. It’s a really nice code that you’ve done here. It’s really easy to understand it, and you keep this so simple, that even a newbye as me can get it well. You’ve been really helpful for me. Thanks.

Good, clean code. Thank you.

I want to ask sth regarding datagrid overwritting the record when i browse different pages .Basically i am using thumbnails to load the data from the database then bind it to the datagrid but once i come back to the page of thumbnails after displaying the first record then if i want to display second record so it get binded but displayed by overwriting the first one.This is a shopping cart application.plz need help on urgent basis.

Lovely wonderful site

Very good site. But design view is not here Sso please add to this site.

It really useful for me. Good Article.

Regards,
msveera

A great help! Thanks!

thanks man! i needed for a better design in shopping cart! :smiley:

PLEASE HELP ME !

I have purchased your book ” Build Your Own ASP.NET Website
Using C# & VB.NET

My main problem with this:
In your book you are using VB-script code directly on .ASPX pages.
But I am working in VB Studio.NET and I use code-behind-pages ASPX.VB to writing my VB-code.

My question:
I’ve tried to use your code from employeestore.aspx in chapter 12.
When I tested this page it was working just perfect !

When I clicked on the button “Add To Cart” it bubbles up to DataList and OnEditCommand event called my sub AddToCart():

Sub AddToCart(s As Object, e As DataListCommandEventArgs)

[INDENT]pnlShowItems.Visible = False
pnlShowCart.Visible = True
….
…. [/INDENT]
End Function

<asp: DataList id=“dlItems” runat=“server” OnEditCommand="AddToCart" DataKeyField=“ItemID”>

….
<asp:Button id=“btnAddToCart” runat=“server” Text=“Add To Cart” CommandName=“Edit” />


</asp: DataList>

It was working just perfectly until all above code was on the same ASPX page…

BUT:

My problem:
But after I separated VB-code from ASPX page, and moved my Sub AddToCart to the Code-behind page ASPX.VB - clicking on the button “Add To Cart” does not call (!!!) the sub AddToCart()

PLEASE HELP ME !!!

-Vadim
mailto:vadim007ru@yahoo.com



.

You’ve posted this as a seperate thread already!!

I have managed to get the shopping cart to work and I can see the logic in the program, but now how would I get the cart ifo to be saved on the server or the form posted on