Monday, March 26, 2012

Shopping basket application

Can anyone help with this one

Creating the above application which consists of 4 forms

Form 1 Sign in screen consisting of user name and email address with validation, when info is valid clicking continue takes user to next screen, I've done this fine

Form 2 This screen displays the products in a data bound data grid, the list will be created as an XML file, each product will have a description and price, this will be loaded into a dataset, the datagrid will contain 6 buttons for each product to allow the user to add to the shopping cart, when a button is selected the program will store the description and price of the item in session variables to be used by next page and load the next page

Form 3 This will load and display the selected description and price in read only text boxes, the user will then enter the quantity required, clicking add to basket takes the user to the last form

Form 4 This shows the user the contents of the shopping basket in a data bound grid,a read only text box shows the total, either the user can carry on shopping by clicking on the carry on shopping button which takes the user back to the products page or by clicking place the order the user gets an email with the order details and taken to a confirmation page

The first problem I have is on the second form I cant seem to be able to put the buttons on the datagrid, any tips/advice on this and how to tackle the rest of the program would be appreciated as I'm new to ASP.Net and would benefit from any advice, I can give my coding so far if required

Thanks

If its a gridview control that you're talking about, then click on the grid and from the gridview tasks select "Edit Columns"

In the Available fields, add a "Select" field (in CommandField). And then you could use GridView1_SelectedIndexChanged event to assign values to your session variables.

You could download a prewritten shopping cart app here:

http://media.wiley.com/product_ancillary/08/07645885/DOWNLOAD/Chapter13.zip

Cheers

0 comments:

Post a Comment