Accounts.aspx
This screen shows
how far the customer has shopped.It just shows the final checkout orders on his
name.There is a hyperlink in the last column which takes u to the orderdetails
screen which shows the shipped date,orderdate…etc.
Source code for
this account screen is this
private void
Page_Load(object sender, System.EventArgs e)
{
if(Session["fullname"]!=null) // Sessions taken in
the earlier pages.Use the Session name anywhere for personalization purposes
{
lblCustomize.Text
=" Welcome " + Session["fullname"].ToString() + " your
account details are as follows";
}
string customerid = User.Identity.Name; // This is used for a valid user .The user who logs in
successfully gets the customerid.
// Instantiate an object of class final orders and call the
method to get the account details of the particular customer
prjstart.Components.FinalOrders
fo = new prjstart.Components.FinalOrders();
SqlDataAdapter
orders =fo.getCustomerOrders(customerid); // The get
customerorders method returns an SQL
DataAdapter
DataSet
ds = new DataSet(); // which is
used to fill a dataset.
orders.Fill(ds);
dgAccount.DataSource
= ds; // This
dataset then binds to a datagrid.
dgAccount.DataBind();
// Put user code to initialize the page here
}
Source
code for orderdetails page is here.