PDA

Click to See Complete Forum and Search --> : Need your help with this asp.net project!


MrNorth
Feb 9th, 2004, 06:16 AM
I need some advice here... It is my rental site which contain a "shopping basket". I am having difficulties how to design the data and view. Here is what I have in mind

basket:
The view (datagrid) and buttons and some textboxes will be contained in a web user control
Problems:

How do Ilist the items in the best way? Is a datagrid overkill? What kind of datasource do I need? Dataset? Or a simple collection. All items that can be purchased will be of class "CItem".
Here is the flow I have in mind:

1)The user click on an item in the list
2)An item object is added to the basket object which is stored in the session
3)The web user control "basket" is refreshing it's datagrid with the new collection from the session


Is this a good .NET OO way to solve this? Am I maintaining the state of the basket object the right way? Is there a better way to represent the basket UI than with a web user control and a datagrid?


I hope someone take some time and read through this and share their comments on this....

kind regards
Henrik - Trying to learn how to make OO and asp.net work together