SlideShare a Scribd company logo
1 of 314
sri_ITSD325_IP3/Code-Shopping/About Us/frmAboutus.aspx
<%@ Page Language="C#"
MasterPageFile="~/Templates/Default/MasterPage.master"
AutoEventWireup="true"
CodeFile="frmAboutus.aspx.cs"
Inherits="About_Us_frmAboutus" Title="Untitled Page" %>
<asp:Content ID="Content1"
ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<html>
<head>
<title></title>
</head>
<body>
<table>
<tr>
<td align="left">
<h3>
About Us</h3>
</td>
</tr>
<tr>
<td style="text-align: justify">
<p>This Organization is ISO-9001 Certified
Company.We are a group of 20 Lakh Employees
spread all over the globe.We Provide
Excellent Services to Costume and Fashion
Industry.We specialize in Kurthis,Jeans,
Shirts,Salwars,Sarees etc.Our Head office is
located in Head Office Mumbai.We have
our Branch Offices all over
India(Hyderabad,Chennai etc).We Plan to extend our services
to rural India in the near future.
</p>
</td>
</tr>
</table>
</body>
</html>
</asp:Content>
sri_ITSD325_IP3/Code-Shopping/About Us/frmAboutus.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class About_Us_frmAboutus :
System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
sri_ITSD325_IP3/Code-Shopping/About Us/TEST.aspx
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="TEST.aspx.cs" Inherits="About_Us_TEST" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table width="100%" border="1"> <tr> <td>
hello</td></tr><tr><td>Shopping</td></tr></table>
</div>
</form>
</body>
</html>
sri_ITSD325_IP3/Code-Shopping/About Us/TEST.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class About_Us_TEST : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/adminBrand/frmBrandList.aspx
<%@ Page Language="C#" AutoEventWireup="true"
MasterPageFile="~/Templates/Default/AdminMaster.master"Co
deFile="frmBrandList.aspx.cs"
Inherits="AdminBrand_frmBrandList" %>
<%@ Register Src="ucBrandList.ascx"
TagName="ucBrandList" TagPrefix="uc1" %>
<asp:Content ID="content1"
ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div>
<uc1:ucBrandList ID="UcBrandList1" runat="server" />
</div>
</asp:Content>
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/adminBrand/frmBrandList.aspx
.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class AdminBrand_frmBrandList :
System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/adminBrand/ucBrandList.ascx
<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="ucBrandList.ascx.cs" Inherits="ucBrandList" %>
<table style="width:100%" cellpadding="0" cellspacing="0"
border="0">
<tr>
<td align="center" bgcolor="navy">
<strong><span style="color:White">BRAND
LIST</span></strong><br />
</td>
</tr>
<tr>
<td id="tdBrandList" style="width:100%" align="left">
<asp:Panel ID="panelTop" runat="server" Width="100%">
<asp:LinkButton ID="lBtnNewBrand" Text="Add New
Brand" runat="server"
OnClick="lBtnNewBrand_Click"></asp:LinkButton>
<asp:DataList ID="dlBrand" RepeatColumns="1"
runat="server" Width="100%"
OnItemCommand="dlBrand_ItemCommand">
<HeaderStyle BackColor="Lavender"/>
<ItemStyle BackColor="Azure"/>
<AlternatingItemStyle BackColor="LightBlue"/>
<HeaderTemplate >
<table style="width:100%">
<tr>
<td style="width:25%"
align="center">Brand Name</td>
<td style="width:45%"
align="center">Description</td>
<td style="width:15%"
align="center">Edit</td>
<td style="width:15%"
align="center">Delete</td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table style="width:100%">
<tr>
<td style="width:25%" align="center">
<asp:Label ID="lblBrandName"
runat="server"
Text='<%#DataBinder.Eval(Container.DataItem,"BrandName")
%>'></asp:Label>
</td>
<td style="width:45%" align="center">
<img id="imgBrand"
alt='<%#DataBinder.Eval(Container.DataItem,"Description")%>
'
src='<%#DataBinder.Eval(Container.DataItem,"Logo","~/Brows
e/Images/{0}")%>' runat="server" width="50" height="50" />
</td>
<td style="width:15%" align="center">
<asp:ImageButton ID="IbtnBrandEdit"
AlternateText="Edit Record"
ImageUrl="~/Admin/AdminCatalog/Images/edit.gif"
CommandName="Edit"
CommandArgument='<%#DataBinder.Eval(Container.DataItem,
"ID")%>' runat="server" />
</td>
<td style="width:15%" align="center">
<asp:ImageButton
ID="IbtnBrandDelete" AlternateText="Delete Record"
ImageUrl="~/Admin/AdminCatalog/Images/delete.gif"
CommandName="Delete"
CommandArgument='<%#DataBinder.Eval(Container.DataItem,
"ID")%>' runat="server" />
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
<asp:Label ID="lblMsg" runat="server"
></asp:Label>
</asp:Panel>
</td>
</tr>
<tr>
<td id="tdNewBrand" style="width:100%" align="left">
<asp:Panel ID="panelupdate" runat="server"
Width="100%">
<table style="width:100%">
<tr>
<th colspan="3" align="center" style="height:
21px">
<asp:Label ID="lblUpdateBrand"
runat="server" ForeColor="Green"></asp:Label></th>
</tr>
<tr>
<td colspan="3" align="center"><asp:Label
ID="lblBrandID" Text="" runat="server"
Visible="false"></asp:Label></td>
</tr>
<tr>
<td align="right">Brand Name</td>
<td align="center"
style="width:2%"><b>:</b></td>
<td align="left">
<asp:TextBox ID="txtBrandName"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right">Description</td>
<td align="center"
style="width:2%"><b>:</b></td>
<td align="left">
<asp:TextBox ID="txtBrandDescriptrion"
runat="server" TextMode="MultiLine"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right" style="height: 36px">
<asp:Label ID="lblBrandLogo"
runat="server" Text="UpLoadLogo"></asp:Label>
</td>
<td align="center" style="width:2%; height:
36px;"><b>:</b></td>
<td align="left" style="height: 36px">
<asp:Image ID="imgBrandLogo"
runat="server" AlternateText="Not Available" width="100"
Height="75"/>
</td>
</tr>
<tr>
<td align="right">Logo (Image)</td>
<td align="center"
style="width:2%"><b>:</b></td>
<td align="left">
<asp:FileUpload ID="fileBrand"
runat="server" /></td>
</tr>
<tr>
<td colspan="3" align="center">
<asp:ImageButton ID="IbtnBrandSubmit"
ImageUrl="~/Admin/AdminCatalog/Images/update11.jpg"
AlternateText="Submit" runat="server"
OnClick="IbtnBrandSubmit_Click" />
<asp:ImageButton ID="IBtnBrandCancel"
ImageUrl="~/Admin/AdminCatalog/Images/cancel11.jpg"
AlternateText="Cancel" runat="server"
OnClick="IBtnBrandCancel_Click" />
</td>
</tr>
</table>
<asp:Label ID="lblMsgNewBrand" runat="server"
ForeColor="Red" Text=""></asp:Label></asp:Panel>
</td>
</tr>
</table>
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/adminBrand/ucBrandList.ascx.c
s
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using ShoppingCart.BL;
public partial class ucBrandList : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BindList();
panelTop.Visible = true;
panelupdate.Visible = false;
}
}
private void BindList()
{
DataSet ds = ProductController.getALLBrands();
lblMsg.Text = "";
if (ds.Tables[0].Rows.Count > 0)
{
dlBrand.DataSource = ds;
dlBrand.DataBind();
}
else
{
lblMsg.Text = "No such Item !!! Please add one";
}
}
protected void lBtnNewBrand_Click(object sender,
EventArgs e)
{
lblUpdateBrand.Text = "Add New Record";
panelTop.Visible = false;
panelupdate.Visible = true;
IbtnBrandSubmit.AlternateText = "Submit";
txtBrandName.Text = "";
txtBrandDescriptrion.Text = "";
//imgBrandLogo.Visible = false;
//lblBrandLogo.Visible = false;
}
protected void IbtnBrandSubmit_Click(object sender,
ImageClickEventArgs e)
{
string BrandName="",
Description="",imageurl="",Logo="";
if (txtBrandName.Text.Trim().Length > 0)
BrandName = txtBrandName.Text.Trim();
else
lblMsgNewBrand.Text = "Enter Brand Name";
Description =txtBrandDescriptrion.Text.Trim();
if (fileBrand.FileName != null &&
fileBrand.FileName.Trim() != "")
{
imageurl = "~/Browse/Images/" + fileBrand.FileName;
fileBrand.SaveAs(Server.MapPath(imageurl));
Logo = fileBrand.FileName;
}
else
{
if (imgBrandLogo.ImageUrl != null)
{
Logo = Path.GetFileName(imgBrandLogo.ImageUrl);
}
else
Logo = "na.jpg";
}
if (IbtnBrandSubmit.AlternateText == "Submit")
{
ProductController.InsertBrand(BrandName,
Description, Logo);
}
else
{
int ID = int.Parse(lblBrandID.Text);
ProductController.UpdateBrand(ID,
BrandName,Description,Logo);
}
BindList();
panelTop.Visible = true;
panelupdate.Visible = false;
}
protected void dlBrand_ItemCommand(object source,
DataListCommandEventArgs e)
{
if (e.CommandName == "Edit")
{
lblUpdateBrand.Text = "Update Record";
//IbtnBrandSubmit.AlternateText = "Update";
DataSet ds =
ProductController.GetAllBrandBYBrandID(int.Parse(e.Comman
dArgument.ToString()));
if (ds.Tables[0].Rows.Count > 0)
{
lblBrandID.Text = e.CommandArgument.ToString();
txtBrandName.Text =
ds.Tables[0].Rows[0]["BrandName"].ToString();
txtBrandDescriptrion.Text =
ds.Tables[0].Rows[0]["Description"].ToString();
imgBrandLogo.ImageUrl =
String.Format("~/Browse/Images/{0}",
ds.Tables[0].Rows[0]["Logo"].ToString());
IbtnBrandSubmit.AlternateText = "Update";
panelTop.Visible = false;
panelupdate.Visible = true;
}
}
if (e.CommandName == "Delete")
{
lblBrandID.Text = e.CommandArgument.ToString();
int BrandId = int.Parse(lblBrandID.Text);
//Response.Write(BrandId);
ProductController.DeleteBrand(BrandId);
BindList();
}
}
protected void IBtnBrandCancel_Click(object sender,
ImageClickEventArgs e)
{
panelupdate.Visible = false;
panelTop.Visible = true;
}
}
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/adminCategory/frmCategoriesL
ist.aspx
<%@ Page Language="C#" AutoEventWireup="true"
MasterPageFile="~/Templates/Default/AdminMaster.master"
CodeFile="frmCategoriesList.aspx.cs"
Inherits="frmCategoriesList" %>
<%@ Register Src="ucategoryListl.ascx"
TagName="ucategoryListl" TagPrefix="uc1" %>
<%@ Register Src="ucategoryListl.ascx"
TagName="ucategoryListl" TagPrefix="uc2" %>
<asp:Content ID="content1"
ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div>
<uc2:ucategoryListl ID="UcategoryListl1" runat="server"
/>
</div>
</asp:Content>
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/adminCategory/frmCategoriesL
ist.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class frmCategoriesList : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/adminCategory/ucategoryListl.
ascx
<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="ucategoryListl.ascx.cs" Inherits="ucategoryListl"
%>
<table style="width:100%" cellpadding="0" cellspacing="0">
<tr>
<td style="width:100%" id="tdCategoryList" align="left">
<asp:Panel ID="panelCategoryTop" runat="server"
Width="100%">
<asp:LinkButton ID="lBtnNewCategory" Text="Add
New Category" runat="server"
OnClick="lBtnNewCategory_Click"></asp:LinkButton>
<asp:DataList ID="dlCategory" RepeatColumns="1"
runat="server" Width="100%"
OnItemCommand="dlCategory_ItemCommand">
<HeaderStyle BackColor="Aqua" />
<ItemStyle BackColor="azure"/>
<AlternatingItemStyle BackColor="lightBlue"/>
<HeaderTemplate >
<table style="width:100%">
<tr>
<td style="width:30%"
align="center">Category Name</td>
<td style="width:40%"
align="center">Description</td>
<td style="width:15%"
align="center">Edit</td>
<td style="width:15%"
align="center">Delete</td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table style="width:100%">
<tr>
<td style="width:30%" align="center">
<asp:Label ID="lblCategoryName"
runat="server"
Text='<%#DataBinder.Eval(Container.DataItem,"Name")
%>'></asp:Label>
</td>
<td style="width:40%" align="center">
<img id="imgCategory"
alt='<%#DataBinder.Eval(Container.DataItem,"Description")%>
'
src='<%#DataBinder.Eval(Container.DataItem,"Image","~/Brow
se/Images/{0}")%>' runat="server" width="100" height="75" />
</td>
<td style="width:15%" align="center">
<asp:ImageButton ID="IbtnEditCat"
AlternateText="Edit Record"
ImageUrl="~/Admin/AdminCatalog/Images/edit.gif"
CommandName="Edit"
CommandArgument='<%#DataBinder.Eval(Container.DataItem,
"ID")%>' runat="server" />
</td>
<td style="width:15%" align="center">
<asp:ImageButton ID="IbtnDeleteCat"
AlternateText="Delete Record"
ImageUrl="~/Admin/AdminCatalog/Images/delete.gif"
CommandName="Delete"
CommandArgument='<%#DataBinder.Eval(Container.DataItem,
"ID")%>' runat="server" />
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
<asp:Label ID="lblMsg" Text="" ForeColor="Red"
runat="server"></asp:Label>
</asp:Panel>
</td>
</tr>
<tr>
<td style="width:100%" id="tdNewCategory"
align="left">
<asp:Panel ID="panelNewCategory" runat="server"
Width="100%">
<table style="width:100%" cellpadding="0"
cellspacing="0">
<tr>
<th align="center" colspan="3">
<asp:Label ID="lblNewCAtegoryHeader" Text=""
runat="server"></asp:Label>
</th>
</tr>
<tr>
<td colspan="3" align="center">
<asp:Label ID="lblCatID" Text=""
runat="server" Visible="false"></asp:Label>
</td>
</tr>
<tr>
<td align="right">
Category Name</td>
<td align="center" style="width: 2%">
<b>:</b></td>
<td align="left">
<asp:TextBox ID="txtCategoryName"
runat="server" />
</td>
</tr>
<tr>
<td align="right" style="height:
38px">Description</td>
<td align="center" style="width:2%; height:
38px;"><b>:</b></td>
<td align="left" style="height: 38px">
<asp:TextBox ID="txtCatDescriptrion"
runat="server" TextMode="MultiLine"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="lblImage" Text="Uploaded
Image" runat="server"></asp:Label></td>
<td align="center"
style="width:2%"><b>:</b></td>
<td align="left">
<asp:Image ID="imgCatLogo"
runat="server" AlternateText="Not Available" Height="75px"
Width="100px" />
</td>
</tr>
<tr>
<td align="right">Upload New Image</td>
<td align="center"
style="width:2%"><b>:</b></td>
<td align="left">
<asp:FileUpload ID="fileCat" runat="server"
/></td>
</tr>
<tr>
<td colspan="3" align="center" style="height:
34px">
<asp:ImageButton ID="IbtnCatSubmit"
ImageUrl="~/Admin/AdminCatalog/Images/update11.jpg"
AlternateText="Submit" runat="server"
OnClick="IbtnCatSubmit_Click" />
<asp:ImageButton ID="IBtnCatCancel"
ImageUrl="~/Admin/AdminCatalog/Images/cancel11.jpg"
AlternateText="Cancel" runat="server"
OnClick="IBtnCatCancel_Click" />
</td>
</tr>
</table>
<asp:Label ID="lblMsgNewCat" runat="server"
ForeColor="Red" Text=""></asp:Label></asp:Panel>
</td>
</tr>
</table>
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/adminCategory/ucategoryListl.
ascx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using ShoppingCart.BL;
public partial class ucategoryListl : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BindList();
panelCategoryTop.Visible = true;
panelNewCategory.Visible = false;
}
}
private void BindList()
{
DataSet ds = ProductController.getALLCategories();
lblMsg.Text = "";
if (ds.Tables[0].Rows.Count > 0)
{
dlCategory.DataSource = ds;
dlCategory.DataBind();
}
else
{
lblMsg.Text = "No such Item !!! Please add one";
}
}
protected void lBtnNewCategory_Click(object sender,
EventArgs e)
{
lblNewCAtegoryHeader.Text = "Add New Category";
panelCategoryTop.Visible = false;
panelNewCategory.Visible = true;
IbtnCatSubmit.AlternateText = "Submit";
txtCategoryName.Text = "";
txtCatDescriptrion.Text = "";
// imgCatLogo.Visible = false;
//lblImage.Visible = false;
}
protected void IbtnCatSubmit_Click(object sender,
ImageClickEventArgs e)
{
string catname="", description="", imageurl="",image="";
if (txtCategoryName.Text.Trim().Length > 0)
catname = txtCategoryName.Text.Trim();
else
lblMsgNewCat.Text = "Enter Category Name";
description = txtCatDescriptrion.Text.Trim();
if (fileCat.FileName != null &&
fileCat.FileName.Trim()!="")
{
imageurl = "~/Browse/Images/" + fileCat.FileName;
fileCat.SaveAs(Server.MapPath(imageurl));
image=fileCat.FileName;
}
else
{
if (imgCatLogo.ImageUrl != null)
{
image =
Path.GetFileName(imgCatLogo.ImageUrl);
}
else
image = "na.jpg";
}
if (IbtnCatSubmit.AlternateText == "Submit")
{
ProductController.InsertCategory(catname, description,
image);
}
else
{
int catid = int.Parse(lblCatID.Text);
ProductController.UpdateCategory(catid,catname,
description, image);
}
BindList();
panelCategoryTop.Visible = true;
panelNewCategory.Visible = false;
}
protected void dlCategory_ItemCommand(object source,
DataListCommandEventArgs e)
{
if (e.CommandName == "Edit")
{
lblNewCAtegoryHeader.Text = "Update Category";
DataSet ds =
ProductController.GetAllCategoriesBYCategoryID(int.Parse(e.C
ommandArgument.ToString()));
if (ds.Tables[0].Rows.Count > 0)
{
lblCatID.Text = e.CommandArgument.ToString();
txtCategoryName.Text =
ds.Tables[0].Rows[0]["Name"].ToString();
txtCatDescriptrion.Text =
ds.Tables[0].Rows[0]["Description"].ToString();
imgCatLogo.ImageUrl =
String.Format("~/Browse/Images/{0}",
ds.Tables[0].Rows[0]["Image"].ToString());
IbtnCatSubmit.AlternateText = "Update";
panelCategoryTop.Visible = false;
panelNewCategory.Visible = true;
}
}
if (e.CommandName == "Delete")
{
lblCatID.Text = e.CommandArgument.ToString();
int catid = int.Parse(lblCatID.Text);
//Response.Write(catid);
ProductController.DeleteCategory(catid);
BindList();
}
}
protected void IBtnCatCancel_Click(object sender,
ImageClickEventArgs e)
{
panelCategoryTop.Visible = true;
panelNewCategory.Visible = false;
}
}
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/adminProduct/frmProductList.a
spx
<%@ Page Language="C#" AutoEventWireup="true"
MasterPageFile="~/Templates/Default/AdminMaster.master"
CodeFile="frmProductList.aspx.cs"
Inherits="AdminProduct_frmProductList" %>
<%@ Register Src="ucProductList.ascx"
TagName="ucProductList" TagPrefix="uc1" %>
<asp:Content ID="content1"
ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div>
<uc1:ucProductList ID="UcProductList1" runat="server"
/>
</div>
</asp:Content>
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/adminProduct/frmProductList.a
spx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class AdminProduct_frmProductList :
System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/adminProduct/ucProductList.as
cx
<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="ucProductList.ascx.cs" Inherits="ucProductList" %>
<table style="width:100%" cellpadding="0" cellspacing="0"
border="0">
<tr>
<td style="width:100%" id="tdProductList" align="left">
<asp:Panel ID="panelProductTop" runat="server"
Width="100%">
<asp:LinkButton ID="lBtnNewProduct" Text="Add New
Product" runat="server"
OnClick="lBtnNewProduct_Click"></asp:LinkButton>
<asp:DataList ID="dlProduct" RepeatColumns="1"
runat="server" Width="100%"
OnItemCommand="dlProduct_ItemCommand">
<HeaderStyle BackColor="lavender"/>
<ItemStyle BackColor="azure"/>
<AlternatingItemStyle BackColor="lightBlue"/>
<HeaderTemplate >
<table style="width:100%">
<tr>
<td style="width:10%"
align="center">Brand Name</td>
<td style="width:30%"
align="center">Product Name/PurchasePrice/SalePrice</td>
<td style="width:30%"
align="center">Description</td>
<td style="width:10%"
align="center">Quantity</td>
<td style="width:10%"
align="center">Edit</td>
<td style="width:10%"
align="center">Delete</td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table style="width:100%">
<tr>
<td style="width:10%" align="center">
<asp:Label ID="lblBrandName"
runat="server"
Text='<%#DataBinder.Eval(Container.DataItem,"BrandName"
)%>'></asp:Label>
</td>
<td style="width:30%" align="center">
<asp:Label ID="lblProductName"
runat="server"
Text='<%#DataBinder.Eval(Container.DataItem,"Name")%>'></
asp:Label> /$
<asp:Label ID="lblPurchasePrice"
runat="server"
Text='<%#DataBinder.Eval(Container.DataItem,"PurchasePrice"
)%>'></asp:Label> /$
<asp:Label ID="lblSalePrice"
runat="server"
Text='<%#DataBinder.Eval(Container.DataItem,"SalePrice")
%>'></asp:Label>
</td>
<td style="width:30%" align="center">
<img id="imgProduct"
alt='<%#DataBinder.Eval(Container.DataItem,"Description")%>
'
src='<%#DataBinder.Eval(Container.DataItem,"Image","~/Brow
se/Images/{0}")%>' runat="server" width="100" height="75" />
</td>
<td style="width:10%" align="center">
<asp:Label ID="lblProductQuantity"
runat="server"
Text='<%#DataBinder.Eval(Container.DataItem,"Quantity")%>'
></asp:Label>
</td>
<td style="width:10%" align="center">
<asp:ImageButton
ID="IbtnProductEdit" AlternateText="Edit Record"
ImageUrl="~/Admin/AdminCatalog/Images/edit.gif"
CommandName="Edit"
CommandArgument='<%#DataBinder.Eval(Container.DataItem,
"ID")%>' runat="server" />
</td>
<td style="width:10%" align="center">
<asp:ImageButton
ID="IbtnProductDelete" AlternateText="Delete Record"
ImageUrl="~/Admin/AdminCatalog/Images/delete.gif"
CommandName="Delete"
CommandArgument='<%#DataBinder.Eval(Container.DataItem,
"ID")%>' runat="server" />
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
<asp:Label ID="lblMsg" Text="" ForeColor="Red"
runat="server"></asp:Label>
</asp:Panel>
</td>
</tr>
<tr>
<td style="width:100%" id="tdNewProduct" align="left">
<asp:Panel ID="panelEditProduct" runat="server"
Width="100%">
<table style="width:100%" cellpadding="0"
cellspacing="0">
<tr>
<td colspan="3" align="center">
Update Product</td>
</tr>
<tr>
<td colspan="3" align="center"><asp:Label
ID="lblID" Text="" runat="server"
Visible="false"></asp:Label></td>
</tr>
<tr>
<td align="right">Product Name</td>
<td align="center"
style="width:2%"><b>:</b></td>
<td align="left">
&nbsp;<asp:TextBox
ID="txtUpdateProductName"
runat="server"></asp:TextBox></td>
</tr>
<tr>
<td align="right">
Quantity</td>
<td align="center" style="width: 2%">
<b>:</b></td>
<td align="left">
<asp:TextBox ID="txtUpdateQuantity"
runat="server" /></td>
</tr>
<tr>
<td align="right">
PurchasePrice</td>
<td align="center" style="width: 2%">
<b>:</b></td>
<td align="left">
<asp:TextBox ID="txtUpdatePurchasePrice"
runat="server"/></td>
</tr>
<tr>
<td align="right">
Sale Price</td>
<td align="center" style="width: 2%">
<b>:</b>
</td>
<td align="left">
<asp:TextBox ID="txtUpdateSalePrice"
runat="server" />
</td>
</tr>
<tr>
<td align="right">Description</td>
<td align="center"
style="width:2%"><b>:</b></td>
<td align="left">
<asp:TextBox ID="txtUpdateDiscription"
runat="server" TextMode="MultiLine"></asp:TextBox></td>
</tr>
<tr>
<td align="right">Uploaded Logo (Image)</td>
<td align="center"
style="width:2%"><b>:</b></td>
<td align="left">
<asp:Image ID="iUpload" runat="server"
AlternateText="Not Available" Height="75"
Width="100"/></td>
</tr>
<tr>
<td align="right">Logo (Image)</td>
<td align="center"
style="width:2%"><b>:</b></td>
<td align="left">
<asp:FileUpload ID="fileUpdateImage"
runat="server" /></td>
</tr>
<tr>
<td colspan="3" align="center" style="height:
34px">
<asp:ImageButton ID="IbtnProUpdate"
ImageUrl="~/Admin/AdminCatalog/Images/update11.jpg"
AlternateText="Update" runat="server"
OnClick="IbtnProUpdate_Click" />
<asp:ImageButton ID="IBtnProCancel"
ImageUrl="~/Admin/AdminCatalog/Images/cancel11.jpg"
AlternateText="Cancel" runat="server"
OnClick="IBtnProCancel_Click" />
</td>
</tr>
<tr>
<td align="center" colspan="3">
<asp:Label ID="lblMsgUdateProduct"
runat="server"></asp:Label></td>
</tr>
</table>
</asp:Panel>
</td>
</tr>
<tr>
<td style="width:100%" id="td1" align="left">
<asp:Panel ID="panelNewProduct" runat="server"
Width="100%">
<table style="width:100%" cellpadding="0"
cellspacing="0">
<tr>
<td colspan="3" align="center" style="height:
19px">Add New Product</td>
</tr>
<tr>
<td colspan="3" align="center"><asp:Label
ID="lblBrandId" runat="server"
Visible="False"></asp:Label></td>
</tr>
<tr>
<td align="right">
Brand Name</td>
<td align="center" style="width: 2%">
<b>:</b></td>
<td align="left">
<asp:DropDownList ID="ddlBrandName"
runat="server" >
<asp:ListItem>BrandName</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td align="right">
CategoryName</td>
<td align="center" style="width: 2%"><b>:</b>
</td>
<td align="left">
<asp:DropDownList ID="ddlCategoryName"
runat="server">
<asp:ListItem>CategoryName</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td align="right">Product Name</td>
<td align="center"
style="width:2%"><b>:</b></td>
<td align="left">
<asp:TextBox ID="txtProductName"
runat="server"></asp:TextBox></td>
</tr>
<tr>
<td align="right">
Quantity On Hand</td>
<td align="center" style="width: 2%">
<b>:</b></td>
<td align="left">
<asp:TextBox ID="txtProductQuantity"
runat="server" /></td>
</tr>
<tr>
<td align="right">
PurchasePrice</td>
<td align="center" style="width: 2%">
<b>:</b></td>
<td align="left">
&nbsp;<asp:TextBox ID="txtPurPrice"
runat="server"/></td>
</tr>
<tr>
<td align="right">
Sale Price</td>
<td align="center" style="width: 2%">
<b>:</b>
</td>
<td align="left">
&nbsp;<asp:TextBox ID="txtSalePrice"
runat="server" /></td>
</tr>
<tr>
<td align="right">Description</td>
<td align="center"
style="width:2%"><b>:</b></td>
<td align="left">
<asp:TextBox ID="txtProDescriptrion"
runat="server" TextMode="MultiLine"></asp:TextBox></td>
</tr>
<tr>
<td align="right">Uploaded Logo (Image)</td>
<td align="center"
style="width:2%"><b>:</b></td>
<td align="left">
&nbsp;<asp:Image ID="imgProductLogo"
runat="server" AlternateText="Not Available" Height="75"
Width="100"/></td>
</tr>
<tr>
<td align="right" style="height: 22px">Logo
(Image)</td>
<td align="center" style="width:2%; height:
22px;"><b>:</b></td>
<td align="left" style="height: 22px">
<asp:FileUpload ID="fileProduct"
runat="server" /></td>
</tr>
<tr>
<td colspan="3" align="center">
<asp:ImageButton ID="ibNewproduct"
ImageUrl="" AlternateText="Submit" runat="server"
OnClick="ibNewproduct_Click" />
<asp:ImageButton ID="ibCancel"
ImageUrl="" AlternateText="Cancel" runat="server"
OnClick="ibCancel_Click" />
</td>
</tr>
</table>
<asp:Label ID="lblMsgNewProduct" runat="server"
ForeColor="Red" Text=""></asp:Label></asp:Panel>
</td>
</tr>
</table>
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/adminProduct/ucProductList.as
cx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using ShoppingCart.BL;
public partial class ucProductList : System.Web.UI.UserControl
{
string Image="" ,imageUrl="";
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
CategoryName();
BrandName();
BindList();
panelProductTop.Visible = true;
panelNewProduct.Visible = false;
panelEditProduct.Visible = false;
}
}
private void CategoryName()
{
DataSet ds = ProductController.getCategoryNames();
BindDDL(ddlCategoryName, ds, "Name", "Id");
}
private void BrandName()
{
DataSet ds = ProductController.getBrandNames();
BindDDL(ddlBrandName, ds, "BrandName", "Id");
}
private void BindDDL(DropDownList ddl, DataSet ds, string
txtField, string valField)
{
ddl.DataSource = ds;
ddl.DataTextField = txtField;
ddl.DataValueField = valField;
ddl.DataBind();
}
private void BindList()
{
DataSet ds = ProductController.GetAllProducts();
lblMsg.Text = "";
if (ds.Tables[0].Rows.Count > 0)
{
dlProduct.DataSource = ds;
dlProduct.DataBind();
}
else
{
lblMsg.Text = "No such Item !!! Please add one";
}
}
protected void lBtnNewProduct_Click(object sender,
EventArgs e)
{
panelProductTop.Visible = false;
panelNewProduct.Visible = true;
panelEditProduct.Visible = false;
}
protected void dlProduct_ItemCommand(object source,
DataListCommandEventArgs e)
{
if (e.CommandName == "Edit")
{
DataSet ds =
ProductController.GetAllProductsBYID(int.Parse(e.CommandAr
gument.ToString()));
if (ds.Tables[0].Rows.Count > 0)
{
lblID.Text = e.CommandArgument.ToString();
txtUpdateProductName.Text =
ds.Tables[0].Rows[0]["Name"].ToString();
txtUpdateQuantity.Text =
ds.Tables[0].Rows[0]["Quantity"].ToString();
txtUpdatePurchasePrice.Text =
ds.Tables[0].Rows[0]["PurchasePrice"].ToString();
txtUpdateSalePrice.Text =
ds.Tables[0].Rows[0]["SalePrice"].ToString();
txtUpdateDiscription.Text =
ds.Tables[0].Rows[0]["Description"].ToString();
iUpload.ImageUrl =
String.Format("~/Browse/Images/{0}",
ds.Tables[0].Rows[0]["Image"]).ToString();
panelProductTop.Visible = false;
panelNewProduct.Visible = false;
panelEditProduct.Visible = true;
}
}
if (e.CommandName == "Delete")
{
lblID.Text = e.CommandArgument.ToString();
int Id = int.Parse(lblID.Text);
ProductController.DeleteProduct(Id);
BindList();
}
}
protected void ibCancel_Click(object sender,
ImageClickEventArgs e)
{
panelProductTop.Visible = true;
panelNewProduct.Visible = false;
panelEditProduct.Visible = false;
}
protected void IBtnProCancel_Click(object sender,
ImageClickEventArgs e)
{
panelProductTop.Visible = true;
panelNewProduct.Visible = false;
panelEditProduct.Visible = false;
}
protected void ibNewproduct_Click(object sender,
ImageClickEventArgs e)
{
string productname = "", Description = "";
float PurchasePrice = 0, SalePrice = 0;
int Quantity = 0;
int BrandId = int.Parse(ddlBrandName.SelectedValue);
Response.Write(BrandId);
int CategoryId =
int.Parse(ddlCategoryName.SelectedValue);
Response.Write(CategoryId);
PurchasePrice = float.Parse(txtPurPrice.Text);
SalePrice = float.Parse(txtSalePrice.Text);
Quantity = int.Parse(txtProductQuantity.Text);
Image = fileProduct.FileName;
if (txtProductName.Text.Trim().Length > 0)
productname = txtProductName.Text.Trim();
else
lblMsgNewProduct.Text = "Enter Product Name";
Description = txtProDescriptrion.Text.Trim();
if (fileProduct.FileName != null &&
fileProduct.FileName.Trim() != "")
{
imageUrl = "~/Browse/Images/" +
fileProduct.FileName;
fileProduct.SaveAs(Server.MapPath(imageUrl));
Image = fileProduct.FileName;
}
else
{
if (imgProductLogo.ImageUrl != null)
{
Image =
Path.GetFileName(imgProductLogo.ImageUrl);
}
else
imageUrl = "na.jpg";
}
ProductController.InsertProduct(productname,
PurchasePrice, SalePrice, Quantity, Description, Image,
BrandId, CategoryId);
Response.Write(Image);
BindList();
panelProductTop.Visible = true;
panelEditProduct.Visible = false;
panelNewProduct.Visible = false;
}
protected void IbtnProUpdate_Click(object sender,
ImageClickEventArgs e)
{
string productname = "", Description = "";
float PurchasePrice = 0, SalePrice = 0;
int Quantity = 0;
PurchasePrice =
float.Parse(txtUpdatePurchasePrice.Text);
SalePrice = float.Parse(txtUpdateSalePrice.Text);
Quantity = int.Parse(txtUpdateQuantity.Text);
Image = fileUpdateImage.FileName;
if (txtUpdateProductName.Text.Trim().Length > 0)
productname = txtUpdateProductName.Text.Trim();
else
lblMsgUdateProduct.Text = "Enter Product Name";
Description = txtUpdateDiscription.Text.Trim();
if (fileUpdateImage.FileName != null &&
fileUpdateImage.FileName.Trim() != "")
{
imageUrl = "~/Browse/Images/" +
fileUpdateImage.FileName;
fileUpdateImage.SaveAs(Server.MapPath(imageUrl));
Image = fileUpdateImage.FileName;
}
else
{
if (iUpload.ImageUrl != null)
{
Image = Path.GetFileName(iUpload.ImageUrl);
}
else
Image = "na.jpg";
}
int Id = int.Parse(lblID.Text);
ProductController.UpdateProduct(Id, productname,
Description, Quantity, Image, PurchasePrice, SalePrice);
BindList();
panelProductTop.Visible = true;
panelNewProduct.Visible = false;
panelEditProduct.Visible = false;
}
}
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/AdminUsers/frmUsersList.aspx
<%@ Page Language="C#"
MasterPageFile="~/Templates/Default/AdminMaster.master"
AutoEventWireup="true" CodeFile="frmUsersList.aspx.cs"
Inherits="Admin_AdminCatalog_AdminUsers_frmUsersList"
%>
<%@ Register Src="ucUsersList.ascx" TagName="ucUsersList"
TagPrefix="uc1" %>
<asp:Content ID="Content1"
ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<uc1:ucUsersList ID="UcUsersList1" runat="server" />
</asp:Content>
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/AdminUsers/frmUsersList.aspx.
cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class
Admin_AdminCatalog_AdminUsers_frmUsersList :
System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/AdminUsers/ucUsersList.ascx
<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="ucUsersList.ascx.cs"
Inherits="Admin_AdminCatalog_AdminUsers_ucUsersList" %>
<%@ Register Assembly="GMDatePicker"
Namespace="GrayMatterSoft" TagPrefix="cc1" %>
<table style="width:100%" cellpadding="0" cellspacing="0"
border="0">
<tr>
<td id="tdBrandList" style="width:100%" align="left">
<asp:Panel ID="panelTop" runat="server" Width="100%">
<%--<asp:LinkButton ID="lBtnNewBrand" Text="Add
New Brand" runat="server" OnClick="lBtnNewBrand_Click"
Visible="False"></asp:LinkButton>--%>
<asp:DataList ID="dlBrand" RepeatColumns="1"
runat="server" Width="100%"
OnItemCommand="dlBrand_ItemCommand">
<HeaderStyle BackColor="Lavender"/>
<ItemStyle BackColor="Azure"/>
<AlternatingItemStyle BackColor="LightBlue"/>
<HeaderTemplate >
<table style="width:100%">
<tr>
<td style="width:20%"
align="center">UserName</td>
<td style="width:18%"
align="center">Firstname</td>
<td style="width:17%"
align="center">LastName</td>
<td style="width:15%"
align="center">EmailID</td>
<td style="width:10%"
align="center">Gender</td>
<td style="width:10%"
align="center">ContactNo</td>
<td style="width:05%"
align="center">Edit</td>
<td style="width:05%"
align="center">Delete</td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table style="width:100%">
<tr>
<td style="width:20%" align="center">
<asp:Label ID="lblUserName"
runat="server"
Text='<%#DataBinder.Eval(Container.DataItem,"UserName")%
>'></asp:Label>
</td>
<td style="width:18%" align="center">
<asp:Label ID="Label1" runat="server"
Text='<%#DataBinder.Eval(Container.DataItem,"Firstname")%>
'></asp:Label>
</td>
<td style="width:17%" align="center">
<asp:Label ID="Label2" runat="server"
Text='<%#DataBinder.Eval(Container.DataItem,"LastName")%
>'></asp:Label>
</td>
<td style="width:15%" align="center">
<asp:Label ID="Label3" runat="server"
Text='<%#DataBinder.Eval(Container.DataItem,"EmailID")%>'
></asp:Label>
</td>
<td style="width:10%" align="center">
<asp:Label ID="Label4" runat="server"
Text='<%#DataBinder.Eval(Container.DataItem,"Gender")%>'>
</asp:Label>
</td>
<td style="width:10%" align="center">
<asp:Label ID="Label5" runat="server"
Text='<%#DataBinder.Eval(Container.DataItem,"ContactNo")%
>'></asp:Label>
</td>
<td style="width:05%" align="center">
<asp:ImageButton ID="IbtnBrandEdit"
AlternateText="Edit Record"
ImageUrl="~/Admin/AdminCatalog/Images/edit.gif"
CommandName="Edit"
CommandArgument='<%#DataBinder.Eval(Container.DataItem,
"UserID")%>' runat="server" />
</td>
<td style="width:05%" align="center">
<asp:ImageButton
ID="IbtnBrandDelete" AlternateText="Delete Record"
ImageUrl="~/Admin/AdminCatalog/Images/delete.gif"
CommandName="Delete"
CommandArgument='<%#DataBinder.Eval(Container.DataItem,
"UserID")%>' runat="server" />
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
<asp:Label ID="lblMsg" runat="server"
></asp:Label>
</asp:Panel>
</td>
</tr>
<tr>
<td id="tdNewBrand" style="width:100%; height: 290px;"
align="left">
<asp:Panel ID="panelupdate" runat="server"
Width="100%">
<table style="width:100%">
<tr>
<th colspan="3" align="center" style="height:
21px">
<asp:Label ID="lblUpdateBrand"
runat="server" ForeColor="Green"></asp:Label></th>
</tr>
<tr>
<td colspan="3" align="center"><asp:Label
ID="lblUserID" runat="server" Visible="False"></asp:Label>
<asp:Label ID="lblAddressID"
runat="server" Visible="False"></asp:Label>
</td>
</tr>
<tr>
<td align="right">
<span style="color: red">*</span> User Name:
</td>
<td align="left">
<asp:TextBox ID="txtuser" runat="server"
CausesValidation="true"></asp:TextBox>
<asp:RequiredFieldValidator
ID="rfvUsername" runat="server" ErrorMessage="User name
required"
ControlToValidate="txtuser" ToolTip="User
name required">*</asp:RequiredFieldValidator>
<asp:Label ID="lblUser" runat="server" Font-
Bold="True" ForeColor="Red"></asp:Label>
</td>
</tr>
<tr>
<td align="right" style="width: 195px; height:
34px;">
<span style="color: red">*</span>First Name:
</td>
<td align="left" style="height: 34px">
<asp:TextBox ID="txtfname" runat="server"
CausesValidation="true"></asp:TextBox>
<asp:RequiredFieldValidator
ID="FirstNameValidator" runat="server"
ControlToValidate="txtfname"
ErrorMessage="First Name should not be
empty"
SetFocusOnError="True"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right" style="width: 195px">
Last Name:
</td>
<td align="left" style="width: 551px">
<asp:TextBox ID="txtlname" runat="server"
CausesValidation="true"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right" style="width: 195px; height:
40px;">
Date Of Birth:
</td>
<td align="left" style="width: 551px; height:
40px;">
<cc1:GMDatePicker ID="GMDatePicker1"
runat="server" Style="z-index: 225; left: 0px;
position: absolute; top: 0px">
</cc1:GMDatePicker>
<asp:Label ID="lblFormat" runat="server"
Text="mm/dd/yyyy" Enabled="false"></asp:Label>
</td>
</tr>
<tr>
<td align="right" style="height: 55px">
<span style="color: red">*</span>Gender:
</td>
<td align="left" style="width: 551px; height:
55px;">
<asp:RadioButtonList ID="rdSex"
runat="server" RepeatDirection="Horizontal">
<asp:ListItem Text="Male" Value="Male">
</asp:ListItem>
<asp:ListItem Text="Female"
Value="Female">
</asp:ListItem>
</asp:RadioButtonList>
<asp:RequiredFieldValidator
ID="GenderValidator" runat="server" ErrorMessage="PLZ
Select the gender!!!"
ControlToValidate="rdSex"
Display="Dynamic"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right" style="width: 195px">
Contact No:
</td>
<td align="left" style="width: 551px">
<asp:TextBox ID="txtcontact" MaxLength="20"
runat="server"></asp:TextBox>
<asp:CompareValidator
ID="CompareValidator2" runat="server" ErrorMessage="Must
enter numeric value"
Operator="DataTypeCheck" Type="Integer"
ControlToValidate="txtcontact"></asp:CompareValidator>
</td>
</tr>
<tr>
<td align="right" style="width: 195px; height:
34px;">
Alternate E-Mail ID:
</td>
<td align="left" style="width: 551px; height:
34px;">
<asp:TextBox ID="txtmail"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right" style="width: 195px">
<span style="color: red">*</span>Address:
</td>
<td align="left" style="width: 551px">
<asp:TextBox ID="txtaddr" runat="server"
TextMode="MultiLine">
</asp:TextBox>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator1" runat="server"
ErrorMessage="This Field should not be blank"
ControlToValidate="txtaddr"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right" style="width: 195px; height:
32px;">
<span style="color:
red">*</span>Country:</td>
<td align="left" style="width: 551px; height:
32px;">
<asp:DropDownList ID="ddlcountry"
runat="server"
OnSelectedIndexChanged="ddlcountry_SelectedIndexChanged"
AutoPostBack="True">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="right" style="width: 195px">
<span style="color: red">*</span>State:
</td>
<td align="left" style="width: 551px">
<asp:DropDownList ID="ddlstate"
runat="server" AutoPostBack="True"
OnSelectedIndexChanged="ddlstate_SelectedIndexChanged">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="right" style="width: 195px">
<span style="color: red">*</span>City:
</td>
<td align="left" style="width: 551px">
<asp:DropDownList ID="ddlcity"
runat="server">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="right" style="width: 195px; height:
34px;">
ZIP Code:
</td>
<td align="left" style="width: 551px; height:
34px;">
<asp:TextBox ID="txtZipCode"
MaxLength="6" runat="server"></asp:TextBox>
<asp:RegularExpressionValidator
ID="RegularExpressionValidator1" runat="server"
ControlToValidate="txtZipCode"
ErrorMessage="Enter Proper Zip Code"
ValidationExpression="d{6}">
</asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<asp:Label ID="lblres" runat="server"
BackColor="#80FF80" Font-Bold="True" ForeColor="Red"
></asp:Label>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<small><span style="color:
red">*Note:</span>Must enter data</small>
</td>
</tr>
<tr>
<td colspan="3" align="center">
<asp:ImageButton ID="IbtnBrandSubmit"
ImageUrl="~/Admin/AdminCatalog/Images/update11.jpg"
AlternateText="Submit" runat="server"
OnClick="IbtnBrandSubmit_Click" />
<asp:ImageButton ID="IBtnBrandCancel"
ImageUrl="~/Admin/AdminCatalog/Images/cancel11.jpg"
AlternateText="Cancel" runat="server"
OnClick="IBtnBrandCancel_Click" />
</td>
</tr>
</table>
<asp:Label ID="lblMsgNewBrand" runat="server"
ForeColor="Red" Text=""></asp:Label></asp:Panel>
</td>
</tr>
</table>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$
ConnectionStrings:EasyWearConnectionString %>"
SelectCommand="SELECT tblAddress.Address,
tblAddress.CityId, tblAddress.StateId, tblAddress.CountryId,
tblAddress.ZipCode, tblAddress.AddressId, tblUser.FName,
tblUser.LName, tblUser.DOB, tblUser.ContactNo,
tblUser.Gender, tblUser.AccountId, tblUser.EmailID,
tblUser.AddressID AS Expr1, tblUser.Description,
tblUser.UserId, tblCity.Name, tblUserAccount.UserName,
tblUserAccount.Password, tblUserAccount.HintQuestion,
tblUserAccount.Answer, tblUserAccount.RoleId,
tblCountry.Name AS Expr2, tblState.Name AS Expr3,
tblRole.Role FROM tblAddress INNER JOIN tblUser ON
tblAddress.AddressId = tblUser.AddressID INNER JOIN
tblUserAccount ON tblUser.AccountId = tblUserAccount.Id
INNER JOIN tblCity ON tblAddress.CityId = tblCity.Id INNER
JOIN tblCountry ON tblAddress.CountryId = tblCountry.ID
INNER JOIN tblState ON tblAddress.StateId = tblState.Id AND
tblCity.StateID = tblState.Id AND tblCountry.ID =
tblState.CountryId INNER JOIN tblRole ON
tblUserAccount.RoleId = tblRole.Id">
</asp:SqlDataSource>
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/AdminUsers/ucUsersList.ascx.c
s
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using ShoppingCart.BL;
public partial class
Admin_AdminCatalog_AdminUsers_ucUsersList :
System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BindList();
panelTop.Visible = true;
panelupdate.Visible = false;
}
}
private void BindList()
{
DataSet ds = UserController.getALLUsers();
lblMsg.Text = "";
if (ds.Tables[0].Rows.Count > 0)
{
dlBrand.DataSource = ds;
dlBrand.DataBind();
}
else
{
lblMsg.Text = "No such Item !!! Please add one";
}
country();
state();
city();
}
protected void ddlcountry_SelectedIndexChanged(object
sender, EventArgs e)
{
DataSet dsState =
ProductController.getAllStatesByCountryID(int.Parse(ddlcountr
y.SelectedValue));
BindDDL(ddlstate, dsState, "Name", "ID");
DataSet dscity =
ProductController.getCitydetailsByStateID(int.Parse(ddlstate.Se
lectedValue));
BindDDL(ddlcity, dscity, "Name", "ID");
}
protected void ddlstate_SelectedIndexChanged(object sender,
EventArgs e)
{
DataSet dscity =
ProductController.getCitydetailsByStateID(int.Parse(ddlstate.Se
lectedValue));
BindDDL(ddlcity, dscity, "Name", "ID");
}
private void state()
{
DataSet dsState = ProductController.getAllStatedetails();
BindDDL(ddlstate, dsState, "Name", "ID");
}
private void country()
{
DataSet dsCountry =
ProductController.getCountrydetails();
BindDDL(ddlcountry, dsCountry, "Name", "ID");
}
private void BindDDL(DropDownList ddl, DataSet ds, string
txtField, string valField)
{
ddl.DataSource = ds;
ddl.DataTextField = txtField;
ddl.DataValueField = valField;
ddl.DataBind();
}
private void city()
{
DataSet dscity = ProductController.getCitydetails();
BindDDL(ddlcity, dscity, "Name", "ID");
}
protected void IbtnBrandSubmit_Click(object sender,
ImageClickEventArgs e)
{
string BrandName = "", Description = "", imageurl = "",
Logo = "";
//if (txtBrandName.Text.Trim().Length > 0)
// BrandName = txtBrandName.Text.Trim();
//else
// lblMsgNewBrand.Text = "Enter Brand Name";
//Description = txtBrandDescriptrion.Text.Trim();
//if (fileBrand.FileName != null &&
fileBrand.FileName.Trim() != "")
//{
// imageurl = "~/Browse/Images/" + fileBrand.FileName;
// fileBrand.SaveAs(Server.MapPath(imageurl));
// Logo = fileBrand.FileName;
//}
//else
//{
// if (imgBrandLogo.ImageUrl != null)
// {
// Logo =
Path.GetFileName(imgBrandLogo.ImageUrl);
// }
// else
// Logo = "na.jpg";
//}
int AddressID =
Convert.ToInt32(lblAddressID.Text.Trim());
int UserID = Convert.ToInt32(lblUserID.Text.Trim());
UserController.UpdateUserDetails(txtuser.Text,
txtfname.Text, txtlname.Text, GMDatePicker1.Date,
txtcontact.Text, rdSex.SelectedValue, txtmail.Text,
txtaddr.Text, int.Parse(ddlcountry.SelectedValue),
int.Parse(ddlstate.SelectedValue),
int.Parse(ddlcity.SelectedValue), txtZipCode.Text, AddressID,
UserID);
lblres.Text = "Done!!!";
BindList();
panelTop.Visible = true;
panelupdate.Visible = false;
}
protected void dlBrand_ItemCommand(object source,
DataListCommandEventArgs e)
{
ListItem li = null;
if (e.CommandName == "Edit")
{
DataSet ds =
UserController.GetUserBYUserID(int.Parse(e.CommandArgume
nt.ToString()));
if (ds.Tables[0].Rows.Count > 0)
{
lblUserID.Text = e.CommandArgument.ToString();
lblAddressID.Text =
ds.Tables[0].Rows[0]["AddressId"].ToString();
txtuser.Text =
ds.Tables[0].Rows[0]["UserName"].ToString();
txtaddr.Text =
ds.Tables[0].Rows[0]["Address"].ToString();
txtcontact.Text =
ds.Tables[0].Rows[0]["ContactNo"].ToString();
txtfname.Text =
ds.Tables[0].Rows[0]["FirstName"].ToString();
txtlname.Text =
ds.Tables[0].Rows[0]["LastName"].ToString();
txtmail.Text =
ds.Tables[0].Rows[0]["EmailID"].ToString();
txtZipCode.Text =
ds.Tables[0].Rows[0]["ZipCode"].ToString();
li =
ddlcity.Items.FindByText(ds.Tables[0].Rows[0]["CityName"].T
oString());
if(li!=null)
{
ddlcity.ClearSelection();
li.Selected = true;
}
li =
ddlcountry.Items.FindByText(ds.Tables[0].Rows[0]["CountryNa
me"].ToString());
if (li != null)
{
ddlcountry.ClearSelection();
li.Selected = true;
}
li =
ddlstate.Items.FindByText(ds.Tables[0].Rows[0]["StateName"].
ToString());
if (li != null)
{
ddlstate.ClearSelection();
li.Selected = true;
}
li =
rdSex.Items.FindByText(ds.Tables[0].Rows[0]["Gender"].ToStr
ing());
if (li != null)
{
rdSex.ClearSelection();
li.Selected = true;
}
GMDatePicker1.Date =
Convert.ToDateTime(ds.Tables[0].Rows[0]["DOB"].ToString())
;
panelTop.Visible = false;
panelupdate.Visible = true;
}
}
if (e.CommandName == "Delete")
{
lblUserID.Text = e.CommandArgument.ToString();
int UserId = int.Parse(lblUserID.Text);
UserController.DeleteUserByUserID(UserId);
BindList();
}
}
protected void IBtnBrandCancel_Click(object sender,
ImageClickEventArgs e)
{
panelupdate.Visible = false;
panelTop.Visible = true;
}
}
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/background_fullwidth.j
pg
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/banner1.jpg
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/banner2.jpg
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/banner7.jpg
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/Bar1.bmp
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/benner11.bmp
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/Blue hills.jpg
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/bottombanner_people.p
ng
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/btn_addtocart.gif
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/buy-but.gif
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/cancel.jpg
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/cancel1.jpg
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/cancel11.jpg
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/close.gif
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/Contact Us.gif
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/core-nav-bg.jpg
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/Cort_Image.gif
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/delete.gif
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/Edit.gif
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/F224200781003.jpg
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/FA_FadingRollovers.js
/****************************************************
***************
* File : FA_ImageFadeSwap.js © JavaScript-FX.com
* Created : 2001/08/31
* Author : Roy Whittle ([email protected])
www.Roy.Whittle.com
* Purpose : To create a more dynamic image swap using opacity
* History
* Date Version Description
* 2001-08-09 1.0 First version
* 2001-08-31 1.1 Got it working with NS6 - You must
use opaque
* GIF's and use a STYLE attrib in the
main
* HTML Page - Thanks Owl.
* 2001-08-31 1.2 Added different FadIn/FadeOut and
converted
* all vars to FA name space.
* 2001-09-01 1.3 Make it so you only need one
onMouseOver
* onMouseOut in the main document.
* 2001-09-09 1.4 Allow you to do a "Swap Other
Image" so
* you can swap the same image with
different pictures.
* 2001-09-17 1.5 Create the pre-loading object - just
like
* simple rollovers and animated
rollovers.
* allows for a similar interface to all.
* 2001-09-18 1.6 The code contains so much of
SimpleRollovers that
* I added imgOn and imgOff so you can
mix rollovers
* without having to include 2 ".js" files.
* 2002-02-08 1.7 If the ON image is already loaded
don't reload it.
* This should help with the IE bug that
reloads images
* from the server even though they are
pre-cached.
* (will not work for swapping multiple
pictures into same Image object)
* 2002-02-13 1.8 Corrected a bug in FA.findImg
* 2002-04-23 1.9 Write out the style tag.
* 2002-06-09 1.10 Attempt fix for IE on a Mac
* 2002-08-27 1.11 Fix a bug whereby opacity may go
over 100 which
* may be causing a bug in IE6
* 2002-08-29 1.12 Thanks to piglet
(http://homepage.ntlworld.com/thepiglet/)
* I now have a partial fix for NS7 and
Mozilla 1.1.
*****************************************************
******************/
/****** User may alter these to change the fade effect
********/
var FadeInStep = 20;
var FadeOutStep = 20;
/****** Don't alter anything else **************/
document.write('<STYLE TYPE="text/css">.imgFader{
position:relative; filter:alpha(opacity=0); -moz-opacity:0.0
}</STYLE>');
if(!window.FA)
FA=new Object();
FA.RolloverObjects=new Array();
FA.Rollover = function(name, img)
{
FA.RolloverObjects[name]=new Image();
FA.RolloverObjects[name].img_src = img;
if(!FA.Rollover.postLoad)
FA.RolloverObjects[name].src = img;
}
FA.Rollover.postLoad = false;
FA.Rollover.loadImages = function()
{
var i;
for(i in FA.RolloverObjects)
{
r=FA.RolloverObjects[i];
r.src=r.img_src;
}
}
FA.Rollover.error = function(n)
{
alert("FA.Rollover - An Error has been detectedn"
+ "----------------------------------n"
+ "You must define a FA.Rollover in your
documentn"
+
"FA.Rollover(""+n+"","your_on_img.gif")n"
+ "(check the spelling of your FA.Rollovers)");
}
/****************************************************
***************
*
* Function : getImg
*
* Description : In Netscape 4 images could be in layers so we
might
* have to recurse the layers to find the image
*
*****************************************************
************/
FA.getImg = function(n, d)
{
var img = d.images[n];
if(!img && d.layers)
for(var i=0 ; !img && i<d.layers.length ; i++)
img=FA.getImg(n,d.layers[i].document);
return img;
}
/****************************************************
***************
*
* Function : findImg
*
* Description : gets the image from the document and reports an
* error if it cannot find it.
*
*****************************************************
************/
FA.findImg = function(n, d)
{
var img = FA.getImg(n, d);
/*** Stop emails because the image was named incorrectly
***/
if(!img)
{
alert("FA.findImg - An Error has been detectedn"
+ "----------------------------------n"
+ "You must define an image in your
documentn"
+ "<IMG SRC="your_image.ext"
NAME=""+n+"">n"
+ "(check the NAME= attribute of your
images)");
return(new Image());
}
return img;
}
FA.ImageFadeRunning=false;
FA.ImageFadeInterval=30;
/****************************************************
***************
*
* Function : imgFadeIn
*
* Description : This function is based on the turn_on() function
* of animate2.js (animated rollovers from
www.roy.whittle.com).
* Each image object is given a state.
* OnMouseOver the state is switched depending
on the current state.
* Current state -> Switch to
* ===========================
* null -> OFF.
* OFF -> FADE_IN
* FADE_OUT -> FADE_IN
* FADE_OUT -> FADE_OUT_IN (if the new
image is different)
* FADE_IN_OUT-> FADE_IN (if the image is
the same)
*****************************************************
************/
FA.imgFadeIn = function(img, imgSrc)
{
if(img)
{
if(img.state == null)
{
img.state = "OFF";
img.index = 0;
img.next_on = null;
}
if(img.state == "OFF")
{
/*** Vers 1.7 only load the ON image once ever
***/
if(img.src.indexOf(imgSrc) == -1)
img.src=imgSrc;
img.currSrc = imgSrc;
img.state = "FADE_IN";
FA.startFading();
}
else if( img.state == "FADE_IN_OUT"
|| img.state == "FADE_OUT_IN"
|| img.state == "FADE_OUT")
{
if(img.currSrc == imgSrc)
img.state = "FADE_IN";
else
{
img.next_on = imgSrc;
img.state="FADE_OUT_IN";
}
}
}
}
/****************************************************
***************
*
* Function : imgFadeOut
*
* Description : This function is based on the turn_off function
* of animate2.js (animated rollovers from
www.roy.whittle.com).
* Each image object is given a state.
* OnMouseOut the state is switched depending on
the current state.
* Current state -> Switch to
* ===========================
* ON -> FADE_OUT.
* FADE_IN -> FADE_IN_OUT.
* FADE_OUT_IN -> FADE_IN. (after
swapping to the next image)
*****************************************************
************/
FA.imgFadeOut = function(img)
{
if(img)
{
if(img.state=="ON")
{
img.state="FADE_OUT";
FA.startFading();
}
else if(img.state == "FADE_IN")
{
img.state="FADE_IN_OUT";
}
else if(img.state=="FADE_OUT_IN")
{
img.next_on == null;
img.state = "FADE_OUT";
}
}
}
/****************************************************
***************
*
* Function : startFading
*
* Description : This function is based on the start_animating()
function
* of animate2.js (animated rollovers from
www.roy.whittle.com).
* If the timer is not currently running, it is started.
* Only 1 timer is used for all objects
*****************************************************
************/
FA.startFading = function()
{
if(!FA.ImageFadeRunning)
FA.ImageFadeAnimation();
}
/****************************************************
***************
*
* Function : ImageFadeAnimation
*
* Description : This function is based on the Animate function
* of animate2.js (animated rollovers from
www.roy.whittle.com).
* Each image object has a state. This function
* modifies each object and (possibly) changes its
state.
*****************************************************
************/
FA.ImageFadeAnimation = function()
{
FA.ImageFadeRunning = false;
for(i=0 ; i<document.images.length ; i++)
{
var img = document.images[i];
if(img.state)
{
if(img.state == "FADE_IN")
{
img.index+=FadeInStep;
if(img.index > 100)
img.index = 100;
if(img.filters)
img.filters.alpha.opacity = img.index;
else
img.style.MozOpacity =
img.index/101;
if(img.index == 100)
img.state="ON";
else
FA.ImageFadeRunning = true;
}
else if(img.state == "FADE_IN_OUT")
{
img.index+=FadeInStep;
if(img.index > 100)
img.index = 100;
if(img.filters)
img.filters.alpha.opacity = img.index;
else
img.style.MozOpacity =
img.index/101;
if(img.index == 100)
img.state="FADE_OUT";
FA.ImageFadeRunning = true;
}
else if(img.state == "FADE_OUT")
{
img.index-=FadeOutStep;
if(img.index < 0)
img.index = 0;
if(img.filters)
img.filters.alpha.opacity = img.index;
else
img.style.MozOpacity =
img.index/101;
if(img.index == 0)
img.state="OFF";
else
FA.ImageFadeRunning = true;
}
else if(img.state == "FADE_OUT_IN")
{
img.index-=FadeOutStep;
if(img.index < 0)
img.index = 0;
if(img.filters)
img.filters.alpha.opacity = img.index;
else
img.style.MozOpacity =
img.index/101;
if(img.index == 0)
{
img.src = img.next_on;
img.currSrc = img.next_on;
img.state="FADE_IN";
}
FA.ImageFadeRunning = true;
}
}
}
/*** Check to see if we need to animate any more frames.
***/
if(FA.ImageFadeRunning)
setTimeout("FA.ImageFadeAnimation()",
FA.ImageFadeInterval);
}
/****************************************************
***************
*
* Function : hasOpacity
*
* Description : Tests if the browser allows Opacity
*
*****************************************************
************/
FA.hasOpacity = function(obj)
{
if(document.layers)
return false;
if(window.opera)
return false;
if(navigator.userAgent.toLowerCase().indexOf("mac") != -
1)
return false;
return true;
}
/****************************************************
***************
*
* Function : fadeIn /fadeOut
*
* Description : Detects browser that can do opacity and fades
the images
* For browsers that do not support opacity it just
does an image swap.
* (I only know about NS4 but maybe IE on a Mac
also ?)
* For these functions to work you need to name the
image
* e.g. for an image named "home" you need
* <IMG .... NAME="home">
* and you need 2 images, the on and the off image
*****************************************************
************/
FA.fadeIn = function(imgName, rollName)
{
if(rollName == null)
rollName=imgName;
/*** Stop emails because the rollover was named
incorrectly ***/
if(!FA.RolloverObjects[rollName])
{
FA.Rollover.error(rollName);
return;
}
var img = FA.findImg(imgName, document);
if(FA.hasOpacity(img))
FA.imgFadeIn(img,
FA.RolloverObjects[rollName].img_src);
else
{
if(img.offSrc==null)
img.offSrc=img.src;
img.src=FA.RolloverObjects[rollName].img_src;
}
}
FA.fadeOut = function(imgName)
{
var img = FA.findImg(imgName, document);
if(FA.hasOpacity(img))
FA.imgFadeOut(img);
else
img.src=img.offSrc;
}
/****************************************************
***************
*
* Function : imgOn /imgOff
*
* Description : Included these functions so you can mix simple
and
* fading rollovers without having to include 2 ".js"
files
*
*****************************************************
************/
FA.imgOn = function(imgName, rollName)
{
if(rollName == null)
rollName=imgName;
/*** Stop emails because the rollover was named
incorrectly ***/
if(!FA.RolloverObjects[rollName])
{
FA.Rollover.error(rollName);
return;
}
var img = FA.findImg(imgName,document);
if(img.offSrc==null)
img.offSrc=img.src;
img.src=FA.RolloverObjects[rollName].img_src;
}
FA.imgOff = function(imgName)
{
var img = FA.findImg(imgName,document);
img.src=img.offSrc;
}
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/Header_Brands.gif
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/icon_download_event.g
if
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/icon_event.gif
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/img1.jpg
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/imgCCHPMeBAAGSig
nedOut.gif
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/imgEcheck.gif
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/imgHdrLiveHelpIcon.gi
f
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/inner_ima1.jpg
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/inner_ima2.jpg
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/inner_ima3.jpg
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/inner_ima4.jpg
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/inner_ima5.jpg
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/inner_ima6.jpg
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/inner_ima7.jpg
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/loading.gif
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/movedown.gif
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/moveup.gif
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/notavailable.gif
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/print.jpg
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/rollimages.js
// JavaScript Document
FadeInStep=20;
FadeOutStep=6;
FA.Rollover("l1",
"http://localhost/SweetNewBaby2.0/images/home_o.gif");
FA.Rollover("l2",
"http://localhost/SweetNewBaby2.0/images/aboutus_o.gif");
FA.Rollover("l3",
"http://localhost/SweetNewBaby2.0/images/our_services_o.gif")
;
FA.Rollover("l4",
"http://localhost/SweetNewBaby2.0/images/best_solutions_o.gif
");
FA.Rollover("l5",
"http://localhost/SweetNewBaby2.0/images/faq_o.gif");
FA.Rollover("l6",
"http://localhost/SweetNewBaby2.0/images/services_o.gif");
FA.Rollover("l7",
"http://localhost/SweetNewBaby2.0/images/contact_o.gif");
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/Search.gif
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/signin.gif
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/slideshow_inner.js
// JavaScript Document
var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["http://localhost/ShoppingCart/Admin/AdminCa
talog/images/inner_ima1.jpg", "", ""]
fadeimages[1]=["http://localhost/ShoppingCart/Admin/AdminCa
talog/images/inner_ima2.jpg", "", ""]
fadeimages[2]=["http://localhost/ShoppingCart/Admin/AdminCa
talog/images/inner_ima3.jpg", "", ""]
fadeimages[3]=["http://localhost/ShoppingCart/Admin/AdminCa
talog/images/inner_ima4.jpg", "", ""]
fadeimages[4]=["http://localhost/ShoppingCart/Admin/AdminCa
talog/images/inner_ima5.jpg", "", ""]
fadeimages[5]=["http://localhost/ShoppingCart/Admin/AdminCa
talog/images/inner_ima6.jpg", "", ""]
fadeimages[6]=["http://localhost/ShoppingCart/Admin/AdminCa
talog/images/inner_ima7.jpg", "", ""]
var fadebgcolor="black"
////NO need to edit beyond here/////////////
var fadearray=new Array() //array to cache fadeshow instances
var fadeclear=new Array() //array to cache corresponding
clearinterval pointers
var dom=(document.getElementById) //modern dom browsers
var iebrowser=document.all
function fadeshow(theimages, fadewidth, fadeheight,
borderwidth, delay, pause, displayorder){
this.pausecheck=pause
this.mouseovercheck=0
this.delay=delay
this.degree=10 //initial opacity degree (10%)
this.curimageindex=0
this.nextimageindex=1
fadearray[fadearray.length]=this
this.slideshowid=fadearray.length-1
this.canvasbase="canvas"+this.slideshowid
this.curcanvas=this.canvasbase+"_0"
if (typeof displayorder!="undefined")
theimages.sort(function() {return 0.5 - Math.random();})
//thanks to Mike (aka Mwinter) :)
this.theimages=theimages
this.imageborder=parseInt(borderwidth)
this.postimages=new Array() //preload images
for (p=0;p<theimages.length;p++){
this.postimages[p]=new Image()
this.postimages[p].src=theimages[p][0]
}
var fadewidth=fadewidth+this.imageborder*2
var fadeheight=fadeheight+this.imageborder*2
if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie:
Firefox)
document.write('<div id="master'+this.slideshowid+'"
style="position:relative;width:'+fadewidth+'px;height:'+fadehei
ght+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0"
style="position:absolute;width:'+fadewidth+'px;height:'+fadehei
ght+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.
alpha(opacity=10);-moz-opacity:10;-khtml-
opacity:10;background-color:'+fadebgcolor+'"></div><div
id="'+this.canvasbase+'_1"
style="position:absolute;width:'+fadewidth+'px;height:'+fadehei
ght+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.
alpha(opacity=10);-moz-opacity:10;background-
color:'+fadebgcolor+'"></div></div>')
else
document.write('<div><img
name="defaultslide'+this.slideshowid+'"
src="'+this.postimages[0].src+'"></div>')
if (iebrowser&&dom||dom) //if IE5+ or modern browsers such
as Firefox
this.startit()
else{
this.curimageindex++
setInterval("fadearray["+this.slideshowid+"].rotateimage()",
this.delay)
}
}
function fadepic(obj){
if (obj.degree<100){
obj.degree+=10
if (obj.tempobj.filters&&obj.tempobj.filters[0]){
if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+
obj.tempobj.filters[0].opacity=obj.degree
else //else if IE5.5-
obj.tempobj.style.filter="alpha(opacity="+obj.degree+")"
}
else if (obj.tempobj.style.MozOpacity)
obj.tempobj.style.MozOpacity=obj.degree/101
else if (obj.tempobj.style.KhtmlOpacity)
obj.tempobj.style.KhtmlOpacity=obj.degree/100
}
else{
clearInterval(fadeclear[obj.slideshowid])
obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")?
obj.canvasbase+"_0" : obj.canvasbase+"_1"
obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] :
document.getElementById(obj.nextcanvas)
obj.populateslide(obj.tempobj, obj.nextimageindex)
obj.nextimageindex=(obj.nextimageindex<obj.postimages.length
-1)? obj.nextimageindex+1 : 0
setTimeout("fadearray["+obj.slideshowid+"].rotateimage()",
obj.delay)
}
}
fadeshow.prototype.populateslide=function(picobj, picindex){
var slideHTML=""
if (this.theimages[picindex][1]!="") //if associated link exists
for image
slideHTML='<a href="'+this.theimages[picindex][1]+'"
target="'+this.theimages[picindex][2]+'">'
slideHTML+='<img src="'+this.postimages[picindex].src+'"
border="'+this.imageborder+'px">'
if (this.theimages[picindex][1]!="") //if associated link exists
for image
slideHTML+='</a>'
picobj.innerHTML=slideHTML
}
fadeshow.prototype.rotateimage=function(){
if (this.pausecheck==1) //if pause onMouseover enabled, cache
object
var cacheobj=this
if (this.mouseovercheck==1)
setTimeout(function(){cacheobj.rotateimage()}, 100)
else if (iebrowser&&dom||dom){
this.resetit()
var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas]
: document.getElementById(this.curcanvas)
crossobj.style.zIndex++
fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+thi
s.slideshowid+"])",50)
this.curcanvas=(this.curcanvas==this.canvasbase+"_0")?
this.canvasbase+"_1" : this.canvasbase+"_0"
}
else{
var
ns4imgobj=document.images['defaultslide'+this.slideshowid]
ns4imgobj.src=this.postimages[this.curimageindex].src
}
this.curimageindex=(this.curimageindex<this.postimages.length
-1)? this.curimageindex+1 : 0
}
fadeshow.prototype.resetit=function(){
this.degree=10
var crossobj=iebrowser? iebrowser[this.curcanvas] :
document.getElementById(this.curcanvas)
if (crossobj.filters&&crossobj.filters[0]){
if (typeof crossobj.filters[0].opacity=="number") //if IE6+
crossobj.filters(0).opacity=this.degree
else //else if IE5.5-
crossobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=this.degree/101
else if (crossobj.style.KhtmlOpacity)
crossobj.style.KhtmlOpacity=obj.degree/100
}
fadeshow.prototype.startit=function(){
var crossobj=iebrowser? iebrowser[this.curcanvas] :
document.getElementById(this.curcanvas)
this.populateslide(crossobj, this.curimageindex)
if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE
ONMOUSEOVER
var cacheobj=this
var crossobjcontainer=iebrowser?
iebrowser["master"+this.slideshowid] :
document.getElementById("master"+this.slideshowid)
crossobjcontainer.onmouseover=function(){cacheobj.mouseover
check=1}
crossobjcontainer.onmouseout=function(){cacheobj.mouseoverc
heck=0}
}
this.rotateimage()
}
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/stars-4.gif
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/style.css
BODY {
background-image:url(bg.jpg);
background-repeat:repeat-x; margin:0px; background-
color:#000000;
}
.heading {
FONT-WEIGHT: bold;
FONT-SIZE: 16px;
FONT-FAMILY: Verdana, Verdana;
color: #000000;
}
.message {
FONT-SIZE: 16px;
COLOR: #F2c100;
FONT-FAMILY: Verdana;
font-weight: normal;
}
B {
COLOR: #000080
}
P {
FONT-SIZE: 12px;
COLOR: #000000;
FONT-FAMILY: Verdana;
font-weight: normal;
}
.topxextlinks {
FONT-SIZE: 10px;
COLOR: #000000;
FONT-FAMILY: Verdana;
TEXT-DECORATION: none;
font-weight: normal;
}
.topxextlinks A {
FONT-SIZE: 10px; COLOR: #ffffff; FONT-FAMILY:
Verdana; TEXT-DECORATION: none
}
.topxextlinks A:hover {
FONT-SIZE: 10px; COLOR: #FF0000; FONT-FAMILY:
Verdana; TEXT-DECORATION: underline
}
.leftlinks {
FONT-SIZE: 11px;
COLOR: #FFFFFF;
FONT-FAMILY: Georgia, "Times New Roman", Times,
serif;
TEXT-DECORATION: underline;
font-weight: normal;
font-style: normal;
margin: 0px;
}
.leftlinks A {
FONT-SIZE: 11px;
COLOR: #000000;
FONT-FAMILY: Verdana;
TEXT-DECORATION: underline;
font-weight: normal;
}
.leftlinks A:hover {
FONT-SIZE: 11px;
COLOR: #FF0000;
FONT-FAMILY: Verdana;
text-decoration: underline;
font-style: normal;
}
.leftlinksw {
FONT-SIZE: 11px;
COLOR: #ffffff;
FONT-FAMILY: Verdana;
TEXT-DECORATION: none;
font-weight: normal;
font-style: normal;
margin: 0px;
}
.leftlinksw A {
FONT-SIZE: 11px;
COLOR: #ffffff;
FONT-FAMILY: Verdana;
TEXT-DECORATION: none;
font-weight: normal;
}
.leftlinksw A:hover {
FONT-SIZE: 11px;
COLOR: yellow;
FONT-FAMILY: Verdana;
text-decoration: underline;
font-style: normal;
}
.leftlinkssamll {
FONT-SIZE: 9px;
COLOR: #000000;
FONT-FAMILY: Verdana;
TEXT-DECORATION: none;
font-weight: normal;
font-style: normal;
margin: 0px;
}
.leftlinkssamll A {
FONT-SIZE: 9px;
COLOR: #000000;
FONT-FAMILY: Verdana;
TEXT-DECORATION: none;
font-weight: normal;
}
.leftlinkssamll A:hover {
FONT-SIZE: 9px;
COLOR: #FF0000;
FONT-FAMILY: Verdana;
text-decoration: underline;
font-style: normal;
}
.rightlinks {
FONT-SIZE: 11px;
COLOR: #000000;
FONT-FAMILY: "Courier New", Courier, mono;
text-decoration: none;
margin-top: 2px;
margin-bottom: 2px;
}
.rightlinks A {
FONT-SIZE: 11px;
COLOR: #FFFFFF;
FONT-FAMILY: "Courier New", Courier, mono;
TEXT-DECORATION: none;
margin-top: 2px;
margin-bottom: 2px;
}
.rightlinks A:hover {
FONT-SIZE: 11px;
COLOR: #000000;
FONT-FAMILY: "Courier New", Courier, mono;
text-decoration: none;
margin-top: 2px;
margin-bottom: 2px;
}
.botlinks {
FONT-SIZE: 11px;
COLOR: #000000;
FONT-FAMILY: Verdana;
TEXT-DECORATION: none;
font-weight: bold;
}
.botlinks A {
FONT-SIZE: 11px; COLOR: #339933; FONT-FAMILY:
Verdana; TEXT-DECORATION: underline
}
.botlinks A:hover {
FONT-SIZE: 11px; COLOR: #000000; LINE-HEIGHT:
12px; FONT-FAMILY: Verdana; TEXT-DECORATION: none
}
.email {
FONT-SIZE: 11px;
COLOR: #0000CC;
FONT-FAMILY: Verdana;
font-weight: bold;
}
.email A {
FONT-SIZE: 11px; COLOR: #0000CC; FONT-FAMILY:
Verdana; font-weight: bold;
}
.email A:hover {
FONT-SIZE: 11px; COLOR: #000000; LINE-HEIGHT:
12px; FONT-FAMILY: Verdana; font-weight: bold;
}
.boldlink {
FONT-SIZE: 12px;
COLOR: #ffffff;
FONT-FAMILY: Verdana;
font-weight: bold;
}
.boldlink A {
FONT-SIZE: 12px; COLOR: #ffffff; FONT-FAMILY:
Verdana; font-weight: bold;
}
.boldlink A:hover {
FONT-SIZE: 12px; COLOR: #ffffff; LINE-HEIGHT: 12px;
FONT-FAMILY: Verdana; font-weight: bold;
}
.subheading {
FONT-WEIGHT: bold;
FONT-SIZE: 12px;
FONT-FAMILY: Verdana;
color: #000000;
}
.button {
FONT-SIZE: 11px;
COLOR: #FFFFFF;
FONT-FAMILY: Verdana;
TEXT-DECORATION: none;
font-weight: bold;
background-color: #68775A;
border: 1px solid #000000;
}
.address {
font-family: Verdana;
font-size: 13px;
font-weight: bold;
color: #000000;
}
.maintable {
border: 1px solid #000000;
}
.flashtable {
border: 3px solid #02AB0A;
}
.textbox {
FONT-SIZE:12px;
COLOR: #000000;
FONT-FAMILY: Verdana;
TEXT-DECORATION: none;
font-weight: normal;
background-color: #FFFFA0;
border: 1px solid #000000;
}
.bodytextbold {
FONT-SIZE: 12px;
COLOR: #000000;
FONT-FAMILY: verdana;
font-weight: bold;
}
.usercontrol {
FONT-WEIGHT: bold;
FONT-SIZE: 10px;
FONT-FAMILY: Verdana;
color: #000000;
}
.mandatory {
FONT-WEIGHT: bold;
FONT-SIZE: 9px;
FONT-FAMILY: Verdana;
color: #FF0000;
}
.error {
FONT-WEIGHT: normal;
FONT-SIZE: 10px;
FONT-FAMILY: Verdana;
color: #FF0000;
}
.leftlinksCopy {
FONT-SIZE: 9px;
COLOR: #000000;
FONT-FAMILY: verdana;
font-weight: normal;
font-style: normal;
margin: 0px;
text-decoration: none;
}
.Bigling {
FONT-SIZE: 12px;
COLOR: #000000;
FONT-FAMILY: Verdana;
font-weight: bold;
}
.submedihead {
FONT-WEIGHT: bold;
FONT-SIZE: 16px;
FONT-FAMILY: Verdana, Verdana;
color: #FF0000;
font-style: normal;
}
.subheadingCopy {
FONT-WEIGHT: bold;
FONT-SIZE: 12px;
FONT-FAMILY: Verdana;
color: #FF0000;
text-decoration: none;
}
.bodytextCopy {
FONT-SIZE: 9px;
COLOR: #000000;
FONT-FAMILY: Verdana;
font-weight: normal;
}
.bodytextsmall {
FONT-SIZE: 9px;
COLOR: #000000;
FONT-FAMILY: Verdana;
}
.bodytext {
FONT-SIZE: 12px;
COLOR: #000000;
FONT-FAMILY: verdana;
font-weight: normal;
line-height: 21px;
}
.star {
FONT-SIZE: 12px;
COLOR: red;
FONT-FAMILY: verdana;
font-weight: normal;
line-height: 21px;
}
td {
FONT-SIZE: 12px;
COLOR: #000000;
FONT-FAMILY: verdana;
font-weight: normal;
line-height: 21px;
}
.bodytextalign {
FONT-SIZE: 12px;
COLOR: #000000;
FONT-FAMILY: Georgia;
font-weight: normal;
line-height: 22px;
}
.headingbig {
background: url('../images/background_nav_main.gif')
repeat-x;
FONT-WEIGHT: bold;
FONT-SIZE: 14px;
FONT-FAMILY: Verdana, Verdana;
/*background-color:#D7B829;*/
color: #ffffff;
}
.contenttdbg{ background-image:url(content_bg.gif);
background-repeat:repeat-x;
background-color:White;
}
#navtop, #navbottom
{
background: url('../images/background_nav_main.gif')
repeat-x;
font-size: 11px;
font-weight: bold;
font-family: Verdana, Helvetica, Helvetica-Narrow, Tahoma,
sans-serif;
margin-right: auto;
margin-left: auto;
width: 950px;
height: 45px;
color:#ffffff;
}
A.whitelinks:link {
FONT-SIZE: 11px;
COLOR: #ffffff;
TEXT-DECORATION: none;
FONT-FAMILY: "Verdana";
font-weight: bold;
}
A.whitelinks:visited {
FONT-SIZE: 11px;
COLOR: #ffffff;
TEXT-DECORATION: none;
FONT-FAMILY: "Verdana";
font-weight: bold;
}
A.whitelinks:hover {
FONT-SIZE: 11px;
FONT-FAMILY: "Verdana";
COLOR: #ffffff; TEXT-DECORATION:underline;
font-weight: bold;
}
A.whitelinks:active {
FONT-SIZE: 11px; FONT-FAMILY: "Verdana"; COLOR:
#ffffff;
font-weight: bold;
}
#navbottom
{
margin-top: 15px;
}
.fullwidth, #loginbanner
{
border: 1px solid #DBDB79;
/*width: 694px;*/
margin-right: auto;
margin-left: auto;
background: #FEFFAB
url('images/background_fullwidth.jpg') repeat-y;
margin-bottom: 10px;
padding-left: 15px;
padding-right: 15px;
padding-top: 10px;
padding-bottom: 10px;
text-align: left;
}
#footer
{
width: 100%;
margin-right: auto;
margin-left: auto;
text-align: center;
margin-top: 1px;
padding-bottom: 5px;
color: #C89F3D;
background: #FEFFAB
url('images/background_fullwidth.jpg') repeat-y;
}
.dashedline
{
border-bottom: 1px dashed #DBCE6A;
padding-top: 10px;
margin-bottom: 10px;
clear:right;
}
.button {
BORDER: #000000 1px solid;
FONT-WEIGHT: bold;
FONT-SIZE: 8pt;
COLOR: #FFFFFF;
FONT-FAMILY: Verdana;
BACKGROUND-COLOR:#51652C;
TEXT-DECORATION: none;
cursor:hand;
vertical-align:top;
height:20px;
}
.textbox {
FONT-SIZE: 9pt;
COLOR: #000000;
FONT-FAMILY: Verdana;
TEXT-DECORATION: none;
font-weight: normal;
background-color: #FFFFFF;
border: 1px solid #000000;
vertical-align:middle;
}
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/submit.gif
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/Sunset.jpg
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/Thumbs.db
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/tile_back.gif
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/Untitled-30.jpg
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/update.gif
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/update11.jpg
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/Water lilies.jpg
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/weaccept.gif
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/wf1_notavailable.gif
sri_ITSD325_IP3/Code-
Shopping/Admin/AdminCatalog/Images/Winter.jpg
sri_ITSD325_IP3/Code-Shopping/Admin/frmadmin.aspx
<%@ Page Language="C#"
MasterPageFile="~/Templates/Default/AdminMaster.master"
AutoEventWireup="true" CodeFile="frmadmin.aspx.cs"
Inherits="Admin_frmadmin" %>
<asp:Content ID="Content1"
ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<table width="100%" cellpadding="0" cellspacing="0"
border="1" height="345">
<tr>
<td width="20%" valign="top">
<ul>
<li>
<a href='Order/frmOrdersList.aspx' runat='server'>Admin
Order</a>
</li>
<li>
<a href='AdminCatalog/adminCategory/frmCategoriesList.aspx'
runat='server'>Admin Category</a>
</li>
<li>
<a id="A1"
href='AdminCatalog/adminBrand/frmBrandList.aspx'
runat='server'>Admin Brand</a>
</li>
<li>
<a id="A2"
href='AdminCatalog/adminProduct/frmProductList.aspx'
runat='server'>Admin Products</a>
</li>
<li>
<a id="A3" href='AdminCatalog/adminUsers/frmUsersList.aspx'
runat='server'>Manage Users</a>
</li>
</ul>
</td>
<td align="center" style="font-size:20px">
<strong>Welcome to Shopping Cart Administration</strong>
</td>
</tr>
</table>
</asp:Content>
sri_ITSD325_IP3/Code-Shopping/Admin/frmadmin.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Admin_frmadmin : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
sri_ITSD325_IP3/Code-
Shopping/Admin/Order/Controls/ucOrdersList.ascx
<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="ucOrdersList.ascx.cs"
Inherits="Order_Controls_ucOrdersList" %>
<%@ Register Assembly="GMDatePicker"
Namespace="GrayMatterSoft" TagPrefix="cc1" %>
<table style="width: 100%" cellpadding="0" cellspacing="0"
border="0">
<tr bgcolor='#ccccff'>
<td align="left" nowrap valign="top">
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx
sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx

More Related Content

Similar to sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx

HTML5 New and Improved
HTML5   New and ImprovedHTML5   New and Improved
HTML5 New and ImprovedTimothy Fisher
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to BootstrapRon Reiter
 
INTRODUCTION TO HTML & CSS .pptx
INTRODUCTION TO HTML & CSS .pptxINTRODUCTION TO HTML & CSS .pptx
INTRODUCTION TO HTML & CSS .pptxSarthakrOkr
 
Ôn tập KTTMDT
Ôn tập KTTMDTÔn tập KTTMDT
Ôn tập KTTMDTmrcoffee282
 
data insert in codeigniter.pptx
data insert in codeigniter.pptxdata insert in codeigniter.pptx
data insert in codeigniter.pptxfeesfesfesf
 
My project working well, but there no relationship between the t.docx
My project working well, but there no relationship between the t.docxMy project working well, but there no relationship between the t.docx
My project working well, but there no relationship between the t.docxrosemarybdodson23141
 
HTML5 and the dawn of rich mobile web applications pt 2
HTML5 and the dawn of rich mobile web applications pt 2HTML5 and the dawn of rich mobile web applications pt 2
HTML5 and the dawn of rich mobile web applications pt 2James Pearce
 
Creating web api and consuming part 2
Creating web api and consuming part 2Creating web api and consuming part 2
Creating web api and consuming part 2Dipendra Shekhawat
 
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!Coulawrence
 
Html server control - ASP. NET with c#
Html server control - ASP. NET with c#Html server control - ASP. NET with c#
Html server control - ASP. NET with c#priya Nithya
 
HTML SERVER CONTROL - ASP.NET WITH C#
HTML SERVER CONTROL  - ASP.NET WITH C#HTML SERVER CONTROL  - ASP.NET WITH C#
HTML SERVER CONTROL - ASP.NET WITH C#priya Nithya
 
Introduction to Template::Toolkit
Introduction to Template::ToolkitIntroduction to Template::Toolkit
Introduction to Template::Toolkitduncanmg
 
Practical PHP by example Jan Leth-Kjaer
Practical PHP by example   Jan Leth-KjaerPractical PHP by example   Jan Leth-Kjaer
Practical PHP by example Jan Leth-KjaerCOMMON Europe
 

Similar to sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx (20)

Html and css
Html and cssHtml and css
Html and css
 
HTML5 New and Improved
HTML5   New and ImprovedHTML5   New and Improved
HTML5 New and Improved
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
 
INTRODUCTION TO HTML & CSS .pptx
INTRODUCTION TO HTML & CSS .pptxINTRODUCTION TO HTML & CSS .pptx
INTRODUCTION TO HTML & CSS .pptx
 
Unit 1wt
Unit 1wtUnit 1wt
Unit 1wt
 
Ôn tập KTTMDT
Ôn tập KTTMDTÔn tập KTTMDT
Ôn tập KTTMDT
 
Unit 1wt
Unit 1wtUnit 1wt
Unit 1wt
 
data insert in codeigniter.pptx
data insert in codeigniter.pptxdata insert in codeigniter.pptx
data insert in codeigniter.pptx
 
My project working well, but there no relationship between the t.docx
My project working well, but there no relationship between the t.docxMy project working well, but there no relationship between the t.docx
My project working well, but there no relationship between the t.docx
 
HTML5 and the dawn of rich mobile web applications pt 2
HTML5 and the dawn of rich mobile web applications pt 2HTML5 and the dawn of rich mobile web applications pt 2
HTML5 and the dawn of rich mobile web applications pt 2
 
Creating web api and consuming part 2
Creating web api and consuming part 2Creating web api and consuming part 2
Creating web api and consuming part 2
 
JS-05-Handlebars.ppt
JS-05-Handlebars.pptJS-05-Handlebars.ppt
JS-05-Handlebars.ppt
 
Soa lab 3
Soa lab 3Soa lab 3
Soa lab 3
 
Lect# 1 html part ii
Lect# 1 html part iiLect# 1 html part ii
Lect# 1 html part ii
 
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
 
Html server control - ASP. NET with c#
Html server control - ASP. NET with c#Html server control - ASP. NET with c#
Html server control - ASP. NET with c#
 
HTML SERVER CONTROL - ASP.NET WITH C#
HTML SERVER CONTROL  - ASP.NET WITH C#HTML SERVER CONTROL  - ASP.NET WITH C#
HTML SERVER CONTROL - ASP.NET WITH C#
 
Introduction to Template::Toolkit
Introduction to Template::ToolkitIntroduction to Template::Toolkit
Introduction to Template::Toolkit
 
1cst
1cst1cst
1cst
 
Practical PHP by example Jan Leth-Kjaer
Practical PHP by example   Jan Leth-KjaerPractical PHP by example   Jan Leth-Kjaer
Practical PHP by example Jan Leth-Kjaer
 

More from whitneyleman54422

In this unit, you will experience the powerful impact communication .docx
In this unit, you will experience the powerful impact communication .docxIn this unit, you will experience the powerful impact communication .docx
In this unit, you will experience the powerful impact communication .docxwhitneyleman54422
 
In this task, you will write an analysis (suggested length of 3–5 .docx
In this task, you will write an analysis (suggested length of 3–5 .docxIn this task, you will write an analysis (suggested length of 3–5 .docx
In this task, you will write an analysis (suggested length of 3–5 .docxwhitneyleman54422
 
In this SLP you will identify where the major transportation modes a.docx
In this SLP you will identify where the major transportation modes a.docxIn this SLP you will identify where the major transportation modes a.docx
In this SLP you will identify where the major transportation modes a.docxwhitneyleman54422
 
In this module the student will present writing which focuses attent.docx
In this module the student will present writing which focuses attent.docxIn this module the student will present writing which focuses attent.docx
In this module the student will present writing which focuses attent.docxwhitneyleman54422
 
In this module, we looked at a variety of styles in the Renaissa.docx
In this module, we looked at a variety of styles in the Renaissa.docxIn this module, we looked at a variety of styles in the Renaissa.docx
In this module, we looked at a variety of styles in the Renaissa.docxwhitneyleman54422
 
In this experiential learning experience, you will evaluate a health.docx
In this experiential learning experience, you will evaluate a health.docxIn this experiential learning experience, you will evaluate a health.docx
In this experiential learning experience, you will evaluate a health.docxwhitneyleman54422
 
In this essay you should combine your practice responding and analyz.docx
In this essay you should combine your practice responding and analyz.docxIn this essay you should combine your practice responding and analyz.docx
In this essay you should combine your practice responding and analyz.docxwhitneyleman54422
 
In this Discussion, pick one film to write about and answer ques.docx
In this Discussion, pick one film to write about and answer ques.docxIn this Discussion, pick one film to write about and answer ques.docx
In this Discussion, pick one film to write about and answer ques.docxwhitneyleman54422
 
In this assignment, you will identify and interview a family who.docx
In this assignment, you will identify and interview a family who.docxIn this assignment, you will identify and interview a family who.docx
In this assignment, you will identify and interview a family who.docxwhitneyleman54422
 
In this assignment, you will assess the impact of health legisla.docx
In this assignment, you will assess the impact of health legisla.docxIn this assignment, you will assess the impact of health legisla.docx
In this assignment, you will assess the impact of health legisla.docxwhitneyleman54422
 
In this assignment, you will create a presentation. Select a topic o.docx
In this assignment, you will create a presentation. Select a topic o.docxIn this assignment, you will create a presentation. Select a topic o.docx
In this assignment, you will create a presentation. Select a topic o.docxwhitneyleman54422
 
In this assignment, the student will understand the growth and devel.docx
In this assignment, the student will understand the growth and devel.docxIn this assignment, the student will understand the growth and devel.docx
In this assignment, the student will understand the growth and devel.docxwhitneyleman54422
 
In this assignment, I want you to locate two pieces of news detailin.docx
In this assignment, I want you to locate two pieces of news detailin.docxIn this assignment, I want you to locate two pieces of news detailin.docx
In this assignment, I want you to locate two pieces of news detailin.docxwhitneyleman54422
 
In this assignment worth 150 points, you will consider the present-d.docx
In this assignment worth 150 points, you will consider the present-d.docxIn this assignment worth 150 points, you will consider the present-d.docx
In this assignment worth 150 points, you will consider the present-d.docxwhitneyleman54422
 
In the readings thus far, the text identified many early American in.docx
In the readings thus far, the text identified many early American in.docxIn the readings thus far, the text identified many early American in.docx
In the readings thus far, the text identified many early American in.docxwhitneyleman54422
 
In the Roman Colony, leaders, or members of the court, were to be.docx
In the Roman Colony, leaders, or members of the court, were to be.docxIn the Roman Colony, leaders, or members of the court, were to be.docx
In the Roman Colony, leaders, or members of the court, were to be.docxwhitneyleman54422
 
In the provided scenario there are a few different crimes being .docx
In the provided scenario there are a few different crimes being .docxIn the provided scenario there are a few different crimes being .docx
In the provided scenario there are a few different crimes being .docxwhitneyleman54422
 
STOP THE MEETING MADNESS HOW TO FREE UP TIME FOR ME.docx
STOP  THE MEETING MADNESS HOW TO FREE UP TIME FOR ME.docxSTOP  THE MEETING MADNESS HOW TO FREE UP TIME FOR ME.docx
STOP THE MEETING MADNESS HOW TO FREE UP TIME FOR ME.docxwhitneyleman54422
 
Stoichiometry Lab – The Chemistry Behind Carbonates reacting with .docx
Stoichiometry Lab – The Chemistry Behind Carbonates reacting with .docxStoichiometry Lab – The Chemistry Behind Carbonates reacting with .docx
Stoichiometry Lab – The Chemistry Behind Carbonates reacting with .docxwhitneyleman54422
 
Stock-Trak Portfolio Report Write-Up GuidelinesYou may want to.docx
Stock-Trak Portfolio Report Write-Up GuidelinesYou may want to.docxStock-Trak Portfolio Report Write-Up GuidelinesYou may want to.docx
Stock-Trak Portfolio Report Write-Up GuidelinesYou may want to.docxwhitneyleman54422
 

More from whitneyleman54422 (20)

In this unit, you will experience the powerful impact communication .docx
In this unit, you will experience the powerful impact communication .docxIn this unit, you will experience the powerful impact communication .docx
In this unit, you will experience the powerful impact communication .docx
 
In this task, you will write an analysis (suggested length of 3–5 .docx
In this task, you will write an analysis (suggested length of 3–5 .docxIn this task, you will write an analysis (suggested length of 3–5 .docx
In this task, you will write an analysis (suggested length of 3–5 .docx
 
In this SLP you will identify where the major transportation modes a.docx
In this SLP you will identify where the major transportation modes a.docxIn this SLP you will identify where the major transportation modes a.docx
In this SLP you will identify where the major transportation modes a.docx
 
In this module the student will present writing which focuses attent.docx
In this module the student will present writing which focuses attent.docxIn this module the student will present writing which focuses attent.docx
In this module the student will present writing which focuses attent.docx
 
In this module, we looked at a variety of styles in the Renaissa.docx
In this module, we looked at a variety of styles in the Renaissa.docxIn this module, we looked at a variety of styles in the Renaissa.docx
In this module, we looked at a variety of styles in the Renaissa.docx
 
In this experiential learning experience, you will evaluate a health.docx
In this experiential learning experience, you will evaluate a health.docxIn this experiential learning experience, you will evaluate a health.docx
In this experiential learning experience, you will evaluate a health.docx
 
In this essay you should combine your practice responding and analyz.docx
In this essay you should combine your practice responding and analyz.docxIn this essay you should combine your practice responding and analyz.docx
In this essay you should combine your practice responding and analyz.docx
 
In this Discussion, pick one film to write about and answer ques.docx
In this Discussion, pick one film to write about and answer ques.docxIn this Discussion, pick one film to write about and answer ques.docx
In this Discussion, pick one film to write about and answer ques.docx
 
In this assignment, you will identify and interview a family who.docx
In this assignment, you will identify and interview a family who.docxIn this assignment, you will identify and interview a family who.docx
In this assignment, you will identify and interview a family who.docx
 
In this assignment, you will assess the impact of health legisla.docx
In this assignment, you will assess the impact of health legisla.docxIn this assignment, you will assess the impact of health legisla.docx
In this assignment, you will assess the impact of health legisla.docx
 
In this assignment, you will create a presentation. Select a topic o.docx
In this assignment, you will create a presentation. Select a topic o.docxIn this assignment, you will create a presentation. Select a topic o.docx
In this assignment, you will create a presentation. Select a topic o.docx
 
In this assignment, the student will understand the growth and devel.docx
In this assignment, the student will understand the growth and devel.docxIn this assignment, the student will understand the growth and devel.docx
In this assignment, the student will understand the growth and devel.docx
 
In this assignment, I want you to locate two pieces of news detailin.docx
In this assignment, I want you to locate two pieces of news detailin.docxIn this assignment, I want you to locate two pieces of news detailin.docx
In this assignment, I want you to locate two pieces of news detailin.docx
 
In this assignment worth 150 points, you will consider the present-d.docx
In this assignment worth 150 points, you will consider the present-d.docxIn this assignment worth 150 points, you will consider the present-d.docx
In this assignment worth 150 points, you will consider the present-d.docx
 
In the readings thus far, the text identified many early American in.docx
In the readings thus far, the text identified many early American in.docxIn the readings thus far, the text identified many early American in.docx
In the readings thus far, the text identified many early American in.docx
 
In the Roman Colony, leaders, or members of the court, were to be.docx
In the Roman Colony, leaders, or members of the court, were to be.docxIn the Roman Colony, leaders, or members of the court, were to be.docx
In the Roman Colony, leaders, or members of the court, were to be.docx
 
In the provided scenario there are a few different crimes being .docx
In the provided scenario there are a few different crimes being .docxIn the provided scenario there are a few different crimes being .docx
In the provided scenario there are a few different crimes being .docx
 
STOP THE MEETING MADNESS HOW TO FREE UP TIME FOR ME.docx
STOP  THE MEETING MADNESS HOW TO FREE UP TIME FOR ME.docxSTOP  THE MEETING MADNESS HOW TO FREE UP TIME FOR ME.docx
STOP THE MEETING MADNESS HOW TO FREE UP TIME FOR ME.docx
 
Stoichiometry Lab – The Chemistry Behind Carbonates reacting with .docx
Stoichiometry Lab – The Chemistry Behind Carbonates reacting with .docxStoichiometry Lab – The Chemistry Behind Carbonates reacting with .docx
Stoichiometry Lab – The Chemistry Behind Carbonates reacting with .docx
 
Stock-Trak Portfolio Report Write-Up GuidelinesYou may want to.docx
Stock-Trak Portfolio Report Write-Up GuidelinesYou may want to.docxStock-Trak Portfolio Report Write-Up GuidelinesYou may want to.docx
Stock-Trak Portfolio Report Write-Up GuidelinesYou may want to.docx
 

Recently uploaded

Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 

Recently uploaded (20)

Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 

sri_ITSD325_IP3Code-ShoppingAbout UsfrmAboutus.aspx@ Page.docx

  • 1. sri_ITSD325_IP3/Code-Shopping/About Us/frmAboutus.aspx <%@ Page Language="C#" MasterPageFile="~/Templates/Default/MasterPage.master" AutoEventWireup="true" CodeFile="frmAboutus.aspx.cs" Inherits="About_Us_frmAboutus" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"> <html> <head> <title></title> </head> <body> <table> <tr> <td align="left"> <h3>
  • 2. About Us</h3> </td> </tr> <tr> <td style="text-align: justify"> <p>This Organization is ISO-9001 Certified Company.We are a group of 20 Lakh Employees spread all over the globe.We Provide Excellent Services to Costume and Fashion Industry.We specialize in Kurthis,Jeans, Shirts,Salwars,Sarees etc.Our Head office is located in Head Office Mumbai.We have our Branch Offices all over India(Hyderabad,Chennai etc).We Plan to extend our services to rural India in the near future. </p> </td> </tr> </table> </body>
  • 3. </html> </asp:Content> sri_ITSD325_IP3/Code-Shopping/About Us/frmAboutus.aspx.cs using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class About_Us_frmAboutus : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e)
  • 4. { } } sri_ITSD325_IP3/Code-Shopping/About Us/TEST.aspx <%@ Page Language="C#" AutoEventWireup="true" CodeFile="TEST.aspx.cs" Inherits="About_Us_TEST" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div>
  • 5. <table width="100%" border="1"> <tr> <td> hello</td></tr><tr><td>Shopping</td></tr></table> </div> </form> </body> </html> sri_ITSD325_IP3/Code-Shopping/About Us/TEST.aspx.cs using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls;
  • 6. public partial class About_Us_TEST : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } } sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/adminBrand/frmBrandList.aspx <%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Templates/Default/AdminMaster.master"Co deFile="frmBrandList.aspx.cs" Inherits="AdminBrand_frmBrandList" %> <%@ Register Src="ucBrandList.ascx" TagName="ucBrandList" TagPrefix="uc1" %> <asp:Content ID="content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <div> <uc1:ucBrandList ID="UcBrandList1" runat="server" />
  • 7. </div> </asp:Content> sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/adminBrand/frmBrandList.aspx .cs using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class AdminBrand_frmBrandList : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e)
  • 8. { } } sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/adminBrand/ucBrandList.ascx <%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucBrandList.ascx.cs" Inherits="ucBrandList" %> <table style="width:100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td align="center" bgcolor="navy"> <strong><span style="color:White">BRAND LIST</span></strong><br /> </td> </tr> <tr> <td id="tdBrandList" style="width:100%" align="left"> <asp:Panel ID="panelTop" runat="server" Width="100%">
  • 9. <asp:LinkButton ID="lBtnNewBrand" Text="Add New Brand" runat="server" OnClick="lBtnNewBrand_Click"></asp:LinkButton> <asp:DataList ID="dlBrand" RepeatColumns="1" runat="server" Width="100%" OnItemCommand="dlBrand_ItemCommand"> <HeaderStyle BackColor="Lavender"/> <ItemStyle BackColor="Azure"/> <AlternatingItemStyle BackColor="LightBlue"/> <HeaderTemplate > <table style="width:100%"> <tr> <td style="width:25%" align="center">Brand Name</td> <td style="width:45%" align="center">Description</td> <td style="width:15%" align="center">Edit</td> <td style="width:15%" align="center">Delete</td> </tr> </table>
  • 10. </HeaderTemplate> <ItemTemplate> <table style="width:100%"> <tr> <td style="width:25%" align="center"> <asp:Label ID="lblBrandName" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"BrandName") %>'></asp:Label> </td> <td style="width:45%" align="center"> <img id="imgBrand" alt='<%#DataBinder.Eval(Container.DataItem,"Description")%> ' src='<%#DataBinder.Eval(Container.DataItem,"Logo","~/Brows e/Images/{0}")%>' runat="server" width="50" height="50" /> </td> <td style="width:15%" align="center"> <asp:ImageButton ID="IbtnBrandEdit" AlternateText="Edit Record" ImageUrl="~/Admin/AdminCatalog/Images/edit.gif" CommandName="Edit" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "ID")%>' runat="server" />
  • 11. </td> <td style="width:15%" align="center"> <asp:ImageButton ID="IbtnBrandDelete" AlternateText="Delete Record" ImageUrl="~/Admin/AdminCatalog/Images/delete.gif" CommandName="Delete" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "ID")%>' runat="server" /> </td> </tr> </table> </ItemTemplate> </asp:DataList> <asp:Label ID="lblMsg" runat="server" ></asp:Label> </asp:Panel> </td> </tr> <tr> <td id="tdNewBrand" style="width:100%" align="left"> <asp:Panel ID="panelupdate" runat="server" Width="100%">
  • 12. <table style="width:100%"> <tr> <th colspan="3" align="center" style="height: 21px"> <asp:Label ID="lblUpdateBrand" runat="server" ForeColor="Green"></asp:Label></th> </tr> <tr> <td colspan="3" align="center"><asp:Label ID="lblBrandID" Text="" runat="server" Visible="false"></asp:Label></td> </tr> <tr> <td align="right">Brand Name</td> <td align="center" style="width:2%"><b>:</b></td> <td align="left"> <asp:TextBox ID="txtBrandName" runat="server"></asp:TextBox> </td> </tr>
  • 13. <tr> <td align="right">Description</td> <td align="center" style="width:2%"><b>:</b></td> <td align="left"> <asp:TextBox ID="txtBrandDescriptrion" runat="server" TextMode="MultiLine"></asp:TextBox> </td> </tr> <tr> <td align="right" style="height: 36px"> <asp:Label ID="lblBrandLogo" runat="server" Text="UpLoadLogo"></asp:Label> </td> <td align="center" style="width:2%; height: 36px;"><b>:</b></td> <td align="left" style="height: 36px"> <asp:Image ID="imgBrandLogo" runat="server" AlternateText="Not Available" width="100" Height="75"/> </td>
  • 14. </tr> <tr> <td align="right">Logo (Image)</td> <td align="center" style="width:2%"><b>:</b></td> <td align="left"> <asp:FileUpload ID="fileBrand" runat="server" /></td> </tr> <tr> <td colspan="3" align="center"> <asp:ImageButton ID="IbtnBrandSubmit" ImageUrl="~/Admin/AdminCatalog/Images/update11.jpg" AlternateText="Submit" runat="server" OnClick="IbtnBrandSubmit_Click" /> <asp:ImageButton ID="IBtnBrandCancel" ImageUrl="~/Admin/AdminCatalog/Images/cancel11.jpg" AlternateText="Cancel" runat="server" OnClick="IBtnBrandCancel_Click" /> </td> </tr> </table>
  • 15. <asp:Label ID="lblMsgNewBrand" runat="server" ForeColor="Red" Text=""></asp:Label></asp:Panel> </td> </tr> </table> sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/adminBrand/ucBrandList.ascx.c s using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.IO; using ShoppingCart.BL;
  • 16. public partial class ucBrandList : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BindList(); panelTop.Visible = true; panelupdate.Visible = false; } } private void BindList() { DataSet ds = ProductController.getALLBrands(); lblMsg.Text = ""; if (ds.Tables[0].Rows.Count > 0) {
  • 17. dlBrand.DataSource = ds; dlBrand.DataBind(); } else { lblMsg.Text = "No such Item !!! Please add one"; } } protected void lBtnNewBrand_Click(object sender, EventArgs e) { lblUpdateBrand.Text = "Add New Record"; panelTop.Visible = false; panelupdate.Visible = true; IbtnBrandSubmit.AlternateText = "Submit"; txtBrandName.Text = ""; txtBrandDescriptrion.Text = "";
  • 18. //imgBrandLogo.Visible = false; //lblBrandLogo.Visible = false; } protected void IbtnBrandSubmit_Click(object sender, ImageClickEventArgs e) { string BrandName="", Description="",imageurl="",Logo=""; if (txtBrandName.Text.Trim().Length > 0) BrandName = txtBrandName.Text.Trim(); else lblMsgNewBrand.Text = "Enter Brand Name"; Description =txtBrandDescriptrion.Text.Trim(); if (fileBrand.FileName != null && fileBrand.FileName.Trim() != "") { imageurl = "~/Browse/Images/" + fileBrand.FileName; fileBrand.SaveAs(Server.MapPath(imageurl)); Logo = fileBrand.FileName;
  • 19. } else { if (imgBrandLogo.ImageUrl != null) { Logo = Path.GetFileName(imgBrandLogo.ImageUrl); } else Logo = "na.jpg"; } if (IbtnBrandSubmit.AlternateText == "Submit") { ProductController.InsertBrand(BrandName, Description, Logo); } else
  • 20. { int ID = int.Parse(lblBrandID.Text); ProductController.UpdateBrand(ID, BrandName,Description,Logo); } BindList(); panelTop.Visible = true; panelupdate.Visible = false; } protected void dlBrand_ItemCommand(object source, DataListCommandEventArgs e) { if (e.CommandName == "Edit") { lblUpdateBrand.Text = "Update Record"; //IbtnBrandSubmit.AlternateText = "Update"; DataSet ds = ProductController.GetAllBrandBYBrandID(int.Parse(e.Comman dArgument.ToString())); if (ds.Tables[0].Rows.Count > 0)
  • 21. { lblBrandID.Text = e.CommandArgument.ToString(); txtBrandName.Text = ds.Tables[0].Rows[0]["BrandName"].ToString(); txtBrandDescriptrion.Text = ds.Tables[0].Rows[0]["Description"].ToString(); imgBrandLogo.ImageUrl = String.Format("~/Browse/Images/{0}", ds.Tables[0].Rows[0]["Logo"].ToString()); IbtnBrandSubmit.AlternateText = "Update"; panelTop.Visible = false; panelupdate.Visible = true; } } if (e.CommandName == "Delete") { lblBrandID.Text = e.CommandArgument.ToString(); int BrandId = int.Parse(lblBrandID.Text); //Response.Write(BrandId); ProductController.DeleteBrand(BrandId);
  • 22. BindList(); } } protected void IBtnBrandCancel_Click(object sender, ImageClickEventArgs e) { panelupdate.Visible = false; panelTop.Visible = true; } } sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/adminCategory/frmCategoriesL ist.aspx <%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Templates/Default/AdminMaster.master" CodeFile="frmCategoriesList.aspx.cs" Inherits="frmCategoriesList" %>
  • 23. <%@ Register Src="ucategoryListl.ascx" TagName="ucategoryListl" TagPrefix="uc1" %> <%@ Register Src="ucategoryListl.ascx" TagName="ucategoryListl" TagPrefix="uc2" %> <asp:Content ID="content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <div> <uc2:ucategoryListl ID="UcategoryListl1" runat="server" /> </div> </asp:Content> sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/adminCategory/frmCategoriesL ist.aspx.cs using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security;
  • 24. using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class frmCategoriesList : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } } sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/adminCategory/ucategoryListl. ascx <%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucategoryListl.ascx.cs" Inherits="ucategoryListl" %> <table style="width:100%" cellpadding="0" cellspacing="0"> <tr>
  • 25. <td style="width:100%" id="tdCategoryList" align="left"> <asp:Panel ID="panelCategoryTop" runat="server" Width="100%"> <asp:LinkButton ID="lBtnNewCategory" Text="Add New Category" runat="server" OnClick="lBtnNewCategory_Click"></asp:LinkButton> <asp:DataList ID="dlCategory" RepeatColumns="1" runat="server" Width="100%" OnItemCommand="dlCategory_ItemCommand"> <HeaderStyle BackColor="Aqua" /> <ItemStyle BackColor="azure"/> <AlternatingItemStyle BackColor="lightBlue"/> <HeaderTemplate > <table style="width:100%"> <tr> <td style="width:30%" align="center">Category Name</td> <td style="width:40%" align="center">Description</td> <td style="width:15%" align="center">Edit</td> <td style="width:15%"
  • 26. align="center">Delete</td> </tr> </table> </HeaderTemplate> <ItemTemplate> <table style="width:100%"> <tr> <td style="width:30%" align="center"> <asp:Label ID="lblCategoryName" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Name") %>'></asp:Label> </td> <td style="width:40%" align="center"> <img id="imgCategory" alt='<%#DataBinder.Eval(Container.DataItem,"Description")%> ' src='<%#DataBinder.Eval(Container.DataItem,"Image","~/Brow se/Images/{0}")%>' runat="server" width="100" height="75" /> </td> <td style="width:15%" align="center"> <asp:ImageButton ID="IbtnEditCat"
  • 27. AlternateText="Edit Record" ImageUrl="~/Admin/AdminCatalog/Images/edit.gif" CommandName="Edit" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "ID")%>' runat="server" /> </td> <td style="width:15%" align="center"> <asp:ImageButton ID="IbtnDeleteCat" AlternateText="Delete Record" ImageUrl="~/Admin/AdminCatalog/Images/delete.gif" CommandName="Delete" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "ID")%>' runat="server" /> </td> </tr> </table> </ItemTemplate> </asp:DataList> <asp:Label ID="lblMsg" Text="" ForeColor="Red" runat="server"></asp:Label> </asp:Panel> </td> </tr>
  • 28. <tr> <td style="width:100%" id="tdNewCategory" align="left"> <asp:Panel ID="panelNewCategory" runat="server" Width="100%"> <table style="width:100%" cellpadding="0" cellspacing="0"> <tr> <th align="center" colspan="3"> <asp:Label ID="lblNewCAtegoryHeader" Text="" runat="server"></asp:Label> </th> </tr> <tr> <td colspan="3" align="center"> <asp:Label ID="lblCatID" Text="" runat="server" Visible="false"></asp:Label> </td> </tr> <tr> <td align="right">
  • 29. Category Name</td> <td align="center" style="width: 2%"> <b>:</b></td> <td align="left"> <asp:TextBox ID="txtCategoryName" runat="server" /> </td> </tr> <tr> <td align="right" style="height: 38px">Description</td> <td align="center" style="width:2%; height: 38px;"><b>:</b></td> <td align="left" style="height: 38px"> <asp:TextBox ID="txtCatDescriptrion" runat="server" TextMode="MultiLine"></asp:TextBox> </td> </tr> <tr> <td align="right">
  • 30. <asp:Label ID="lblImage" Text="Uploaded Image" runat="server"></asp:Label></td> <td align="center" style="width:2%"><b>:</b></td> <td align="left"> <asp:Image ID="imgCatLogo" runat="server" AlternateText="Not Available" Height="75px" Width="100px" /> </td> </tr> <tr> <td align="right">Upload New Image</td> <td align="center" style="width:2%"><b>:</b></td> <td align="left"> <asp:FileUpload ID="fileCat" runat="server" /></td> </tr> <tr> <td colspan="3" align="center" style="height: 34px">
  • 31. <asp:ImageButton ID="IbtnCatSubmit" ImageUrl="~/Admin/AdminCatalog/Images/update11.jpg" AlternateText="Submit" runat="server" OnClick="IbtnCatSubmit_Click" /> <asp:ImageButton ID="IBtnCatCancel" ImageUrl="~/Admin/AdminCatalog/Images/cancel11.jpg" AlternateText="Cancel" runat="server" OnClick="IBtnCatCancel_Click" /> </td> </tr> </table> <asp:Label ID="lblMsgNewCat" runat="server" ForeColor="Red" Text=""></asp:Label></asp:Panel> </td> </tr> </table> sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/adminCategory/ucategoryListl. ascx.cs using System; using System.Data; using System.Configuration;
  • 32. using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.IO; using ShoppingCart.BL; public partial class ucategoryListl : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BindList(); panelCategoryTop.Visible = true;
  • 33. panelNewCategory.Visible = false; } } private void BindList() { DataSet ds = ProductController.getALLCategories(); lblMsg.Text = ""; if (ds.Tables[0].Rows.Count > 0) { dlCategory.DataSource = ds; dlCategory.DataBind(); } else { lblMsg.Text = "No such Item !!! Please add one"; } } protected void lBtnNewCategory_Click(object sender, EventArgs e)
  • 34. { lblNewCAtegoryHeader.Text = "Add New Category"; panelCategoryTop.Visible = false; panelNewCategory.Visible = true; IbtnCatSubmit.AlternateText = "Submit"; txtCategoryName.Text = ""; txtCatDescriptrion.Text = ""; // imgCatLogo.Visible = false; //lblImage.Visible = false; } protected void IbtnCatSubmit_Click(object sender, ImageClickEventArgs e) { string catname="", description="", imageurl="",image=""; if (txtCategoryName.Text.Trim().Length > 0) catname = txtCategoryName.Text.Trim(); else
  • 35. lblMsgNewCat.Text = "Enter Category Name"; description = txtCatDescriptrion.Text.Trim(); if (fileCat.FileName != null && fileCat.FileName.Trim()!="") { imageurl = "~/Browse/Images/" + fileCat.FileName; fileCat.SaveAs(Server.MapPath(imageurl)); image=fileCat.FileName; } else { if (imgCatLogo.ImageUrl != null) { image = Path.GetFileName(imgCatLogo.ImageUrl); } else image = "na.jpg"; }
  • 36. if (IbtnCatSubmit.AlternateText == "Submit") { ProductController.InsertCategory(catname, description, image); } else { int catid = int.Parse(lblCatID.Text); ProductController.UpdateCategory(catid,catname, description, image); } BindList(); panelCategoryTop.Visible = true; panelNewCategory.Visible = false; } protected void dlCategory_ItemCommand(object source, DataListCommandEventArgs e) {
  • 37. if (e.CommandName == "Edit") { lblNewCAtegoryHeader.Text = "Update Category"; DataSet ds = ProductController.GetAllCategoriesBYCategoryID(int.Parse(e.C ommandArgument.ToString())); if (ds.Tables[0].Rows.Count > 0) { lblCatID.Text = e.CommandArgument.ToString(); txtCategoryName.Text = ds.Tables[0].Rows[0]["Name"].ToString(); txtCatDescriptrion.Text = ds.Tables[0].Rows[0]["Description"].ToString(); imgCatLogo.ImageUrl = String.Format("~/Browse/Images/{0}", ds.Tables[0].Rows[0]["Image"].ToString()); IbtnCatSubmit.AlternateText = "Update"; panelCategoryTop.Visible = false; panelNewCategory.Visible = true; } }
  • 38. if (e.CommandName == "Delete") { lblCatID.Text = e.CommandArgument.ToString(); int catid = int.Parse(lblCatID.Text); //Response.Write(catid); ProductController.DeleteCategory(catid); BindList(); } } protected void IBtnCatCancel_Click(object sender, ImageClickEventArgs e) { panelCategoryTop.Visible = true; panelNewCategory.Visible = false; } }
  • 39. sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/adminProduct/frmProductList.a spx <%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Templates/Default/AdminMaster.master" CodeFile="frmProductList.aspx.cs" Inherits="AdminProduct_frmProductList" %> <%@ Register Src="ucProductList.ascx" TagName="ucProductList" TagPrefix="uc1" %> <asp:Content ID="content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <div> <uc1:ucProductList ID="UcProductList1" runat="server" /> </div> </asp:Content> sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/adminProduct/frmProductList.a spx.cs using System; using System.Data; using System.Configuration; using System.Collections;
  • 40. using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class AdminProduct_frmProductList : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } } sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/adminProduct/ucProductList.as cx <%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucProductList.ascx.cs" Inherits="ucProductList" %>
  • 41. <table style="width:100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td style="width:100%" id="tdProductList" align="left"> <asp:Panel ID="panelProductTop" runat="server" Width="100%"> <asp:LinkButton ID="lBtnNewProduct" Text="Add New Product" runat="server" OnClick="lBtnNewProduct_Click"></asp:LinkButton> <asp:DataList ID="dlProduct" RepeatColumns="1" runat="server" Width="100%" OnItemCommand="dlProduct_ItemCommand"> <HeaderStyle BackColor="lavender"/> <ItemStyle BackColor="azure"/> <AlternatingItemStyle BackColor="lightBlue"/> <HeaderTemplate > <table style="width:100%"> <tr> <td style="width:10%" align="center">Brand Name</td> <td style="width:30%" align="center">Product Name/PurchasePrice/SalePrice</td>
  • 42. <td style="width:30%" align="center">Description</td> <td style="width:10%" align="center">Quantity</td> <td style="width:10%" align="center">Edit</td> <td style="width:10%" align="center">Delete</td> </tr> </table> </HeaderTemplate> <ItemTemplate> <table style="width:100%"> <tr> <td style="width:10%" align="center"> <asp:Label ID="lblBrandName" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"BrandName" )%>'></asp:Label> </td> <td style="width:30%" align="center">
  • 43. <asp:Label ID="lblProductName" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Name")%>'></ asp:Label> /$ <asp:Label ID="lblPurchasePrice" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"PurchasePrice" )%>'></asp:Label> /$ <asp:Label ID="lblSalePrice" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"SalePrice") %>'></asp:Label> </td> <td style="width:30%" align="center"> <img id="imgProduct" alt='<%#DataBinder.Eval(Container.DataItem,"Description")%> ' src='<%#DataBinder.Eval(Container.DataItem,"Image","~/Brow se/Images/{0}")%>' runat="server" width="100" height="75" /> </td> <td style="width:10%" align="center"> <asp:Label ID="lblProductQuantity" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Quantity")%>' ></asp:Label> </td>
  • 44. <td style="width:10%" align="center"> <asp:ImageButton ID="IbtnProductEdit" AlternateText="Edit Record" ImageUrl="~/Admin/AdminCatalog/Images/edit.gif" CommandName="Edit" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "ID")%>' runat="server" /> </td> <td style="width:10%" align="center"> <asp:ImageButton ID="IbtnProductDelete" AlternateText="Delete Record" ImageUrl="~/Admin/AdminCatalog/Images/delete.gif" CommandName="Delete" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "ID")%>' runat="server" /> </td> </tr> </table> </ItemTemplate> </asp:DataList> <asp:Label ID="lblMsg" Text="" ForeColor="Red" runat="server"></asp:Label> </asp:Panel> </td>
  • 45. </tr> <tr> <td style="width:100%" id="tdNewProduct" align="left"> <asp:Panel ID="panelEditProduct" runat="server" Width="100%"> <table style="width:100%" cellpadding="0" cellspacing="0"> <tr> <td colspan="3" align="center"> Update Product</td> </tr> <tr> <td colspan="3" align="center"><asp:Label ID="lblID" Text="" runat="server" Visible="false"></asp:Label></td> </tr> <tr> <td align="right">Product Name</td> <td align="center" style="width:2%"><b>:</b></td>
  • 46. <td align="left"> &nbsp;<asp:TextBox ID="txtUpdateProductName" runat="server"></asp:TextBox></td> </tr> <tr> <td align="right"> Quantity</td> <td align="center" style="width: 2%"> <b>:</b></td> <td align="left"> <asp:TextBox ID="txtUpdateQuantity" runat="server" /></td> </tr> <tr> <td align="right"> PurchasePrice</td> <td align="center" style="width: 2%"> <b>:</b></td> <td align="left">
  • 47. <asp:TextBox ID="txtUpdatePurchasePrice" runat="server"/></td> </tr> <tr> <td align="right"> Sale Price</td> <td align="center" style="width: 2%"> <b>:</b> </td> <td align="left"> <asp:TextBox ID="txtUpdateSalePrice" runat="server" /> </td> </tr> <tr> <td align="right">Description</td> <td align="center" style="width:2%"><b>:</b></td> <td align="left">
  • 48. <asp:TextBox ID="txtUpdateDiscription" runat="server" TextMode="MultiLine"></asp:TextBox></td> </tr> <tr> <td align="right">Uploaded Logo (Image)</td> <td align="center" style="width:2%"><b>:</b></td> <td align="left"> <asp:Image ID="iUpload" runat="server" AlternateText="Not Available" Height="75" Width="100"/></td> </tr> <tr> <td align="right">Logo (Image)</td> <td align="center" style="width:2%"><b>:</b></td> <td align="left"> <asp:FileUpload ID="fileUpdateImage" runat="server" /></td> </tr> <tr>
  • 49. <td colspan="3" align="center" style="height: 34px"> <asp:ImageButton ID="IbtnProUpdate" ImageUrl="~/Admin/AdminCatalog/Images/update11.jpg" AlternateText="Update" runat="server" OnClick="IbtnProUpdate_Click" /> <asp:ImageButton ID="IBtnProCancel" ImageUrl="~/Admin/AdminCatalog/Images/cancel11.jpg" AlternateText="Cancel" runat="server" OnClick="IBtnProCancel_Click" /> </td> </tr> <tr> <td align="center" colspan="3"> <asp:Label ID="lblMsgUdateProduct" runat="server"></asp:Label></td> </tr> </table> </asp:Panel> </td> </tr> <tr>
  • 50. <td style="width:100%" id="td1" align="left"> <asp:Panel ID="panelNewProduct" runat="server" Width="100%"> <table style="width:100%" cellpadding="0" cellspacing="0"> <tr> <td colspan="3" align="center" style="height: 19px">Add New Product</td> </tr> <tr> <td colspan="3" align="center"><asp:Label ID="lblBrandId" runat="server" Visible="False"></asp:Label></td> </tr> <tr> <td align="right"> Brand Name</td> <td align="center" style="width: 2%"> <b>:</b></td> <td align="left"> <asp:DropDownList ID="ddlBrandName"
  • 51. runat="server" > <asp:ListItem>BrandName</asp:ListItem> </asp:DropDownList></td> </tr> <tr> <td align="right"> CategoryName</td> <td align="center" style="width: 2%"><b>:</b> </td> <td align="left"> <asp:DropDownList ID="ddlCategoryName" runat="server"> <asp:ListItem>CategoryName</asp:ListItem> </asp:DropDownList></td> </tr> <tr> <td align="right">Product Name</td> <td align="center" style="width:2%"><b>:</b></td>
  • 52. <td align="left"> <asp:TextBox ID="txtProductName" runat="server"></asp:TextBox></td> </tr> <tr> <td align="right"> Quantity On Hand</td> <td align="center" style="width: 2%"> <b>:</b></td> <td align="left"> <asp:TextBox ID="txtProductQuantity" runat="server" /></td> </tr> <tr> <td align="right"> PurchasePrice</td> <td align="center" style="width: 2%"> <b>:</b></td> <td align="left">
  • 53. &nbsp;<asp:TextBox ID="txtPurPrice" runat="server"/></td> </tr> <tr> <td align="right"> Sale Price</td> <td align="center" style="width: 2%"> <b>:</b> </td> <td align="left"> &nbsp;<asp:TextBox ID="txtSalePrice" runat="server" /></td> </tr> <tr> <td align="right">Description</td> <td align="center" style="width:2%"><b>:</b></td> <td align="left"> <asp:TextBox ID="txtProDescriptrion" runat="server" TextMode="MultiLine"></asp:TextBox></td>
  • 54. </tr> <tr> <td align="right">Uploaded Logo (Image)</td> <td align="center" style="width:2%"><b>:</b></td> <td align="left"> &nbsp;<asp:Image ID="imgProductLogo" runat="server" AlternateText="Not Available" Height="75" Width="100"/></td> </tr> <tr> <td align="right" style="height: 22px">Logo (Image)</td> <td align="center" style="width:2%; height: 22px;"><b>:</b></td> <td align="left" style="height: 22px"> <asp:FileUpload ID="fileProduct" runat="server" /></td> </tr> <tr> <td colspan="3" align="center">
  • 55. <asp:ImageButton ID="ibNewproduct" ImageUrl="" AlternateText="Submit" runat="server" OnClick="ibNewproduct_Click" /> <asp:ImageButton ID="ibCancel" ImageUrl="" AlternateText="Cancel" runat="server" OnClick="ibCancel_Click" /> </td> </tr> </table> <asp:Label ID="lblMsgNewProduct" runat="server" ForeColor="Red" Text=""></asp:Label></asp:Panel> </td> </tr> </table> sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/adminProduct/ucProductList.as cx.cs using System; using System.Data; using System.Configuration;
  • 56. using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.IO; using ShoppingCart.BL; public partial class ucProductList : System.Web.UI.UserControl { string Image="" ,imageUrl=""; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { CategoryName();
  • 57. BrandName(); BindList(); panelProductTop.Visible = true; panelNewProduct.Visible = false; panelEditProduct.Visible = false; } } private void CategoryName() { DataSet ds = ProductController.getCategoryNames(); BindDDL(ddlCategoryName, ds, "Name", "Id"); } private void BrandName() { DataSet ds = ProductController.getBrandNames(); BindDDL(ddlBrandName, ds, "BrandName", "Id"); } private void BindDDL(DropDownList ddl, DataSet ds, string
  • 58. txtField, string valField) { ddl.DataSource = ds; ddl.DataTextField = txtField; ddl.DataValueField = valField; ddl.DataBind(); } private void BindList() { DataSet ds = ProductController.GetAllProducts(); lblMsg.Text = ""; if (ds.Tables[0].Rows.Count > 0) { dlProduct.DataSource = ds; dlProduct.DataBind(); } else {
  • 59. lblMsg.Text = "No such Item !!! Please add one"; } } protected void lBtnNewProduct_Click(object sender, EventArgs e) { panelProductTop.Visible = false; panelNewProduct.Visible = true; panelEditProduct.Visible = false; } protected void dlProduct_ItemCommand(object source, DataListCommandEventArgs e) { if (e.CommandName == "Edit") { DataSet ds = ProductController.GetAllProductsBYID(int.Parse(e.CommandAr gument.ToString())); if (ds.Tables[0].Rows.Count > 0) {
  • 60. lblID.Text = e.CommandArgument.ToString(); txtUpdateProductName.Text = ds.Tables[0].Rows[0]["Name"].ToString(); txtUpdateQuantity.Text = ds.Tables[0].Rows[0]["Quantity"].ToString(); txtUpdatePurchasePrice.Text = ds.Tables[0].Rows[0]["PurchasePrice"].ToString(); txtUpdateSalePrice.Text = ds.Tables[0].Rows[0]["SalePrice"].ToString(); txtUpdateDiscription.Text = ds.Tables[0].Rows[0]["Description"].ToString(); iUpload.ImageUrl = String.Format("~/Browse/Images/{0}", ds.Tables[0].Rows[0]["Image"]).ToString(); panelProductTop.Visible = false; panelNewProduct.Visible = false; panelEditProduct.Visible = true; } } if (e.CommandName == "Delete") { lblID.Text = e.CommandArgument.ToString();
  • 61. int Id = int.Parse(lblID.Text); ProductController.DeleteProduct(Id); BindList(); } } protected void ibCancel_Click(object sender, ImageClickEventArgs e) { panelProductTop.Visible = true; panelNewProduct.Visible = false; panelEditProduct.Visible = false; } protected void IBtnProCancel_Click(object sender, ImageClickEventArgs e) { panelProductTop.Visible = true; panelNewProduct.Visible = false; panelEditProduct.Visible = false; }
  • 62. protected void ibNewproduct_Click(object sender, ImageClickEventArgs e) { string productname = "", Description = ""; float PurchasePrice = 0, SalePrice = 0; int Quantity = 0; int BrandId = int.Parse(ddlBrandName.SelectedValue); Response.Write(BrandId); int CategoryId = int.Parse(ddlCategoryName.SelectedValue); Response.Write(CategoryId); PurchasePrice = float.Parse(txtPurPrice.Text); SalePrice = float.Parse(txtSalePrice.Text); Quantity = int.Parse(txtProductQuantity.Text); Image = fileProduct.FileName; if (txtProductName.Text.Trim().Length > 0) productname = txtProductName.Text.Trim(); else lblMsgNewProduct.Text = "Enter Product Name";
  • 63. Description = txtProDescriptrion.Text.Trim(); if (fileProduct.FileName != null && fileProduct.FileName.Trim() != "") { imageUrl = "~/Browse/Images/" + fileProduct.FileName; fileProduct.SaveAs(Server.MapPath(imageUrl)); Image = fileProduct.FileName; } else { if (imgProductLogo.ImageUrl != null) { Image = Path.GetFileName(imgProductLogo.ImageUrl); } else imageUrl = "na.jpg"; }
  • 64. ProductController.InsertProduct(productname, PurchasePrice, SalePrice, Quantity, Description, Image, BrandId, CategoryId); Response.Write(Image); BindList(); panelProductTop.Visible = true; panelEditProduct.Visible = false; panelNewProduct.Visible = false; } protected void IbtnProUpdate_Click(object sender, ImageClickEventArgs e) { string productname = "", Description = ""; float PurchasePrice = 0, SalePrice = 0; int Quantity = 0; PurchasePrice = float.Parse(txtUpdatePurchasePrice.Text); SalePrice = float.Parse(txtUpdateSalePrice.Text); Quantity = int.Parse(txtUpdateQuantity.Text); Image = fileUpdateImage.FileName;
  • 65. if (txtUpdateProductName.Text.Trim().Length > 0) productname = txtUpdateProductName.Text.Trim(); else lblMsgUdateProduct.Text = "Enter Product Name"; Description = txtUpdateDiscription.Text.Trim(); if (fileUpdateImage.FileName != null && fileUpdateImage.FileName.Trim() != "") { imageUrl = "~/Browse/Images/" + fileUpdateImage.FileName; fileUpdateImage.SaveAs(Server.MapPath(imageUrl)); Image = fileUpdateImage.FileName; } else { if (iUpload.ImageUrl != null) { Image = Path.GetFileName(iUpload.ImageUrl);
  • 66. } else Image = "na.jpg"; } int Id = int.Parse(lblID.Text); ProductController.UpdateProduct(Id, productname, Description, Quantity, Image, PurchasePrice, SalePrice); BindList(); panelProductTop.Visible = true; panelNewProduct.Visible = false; panelEditProduct.Visible = false; } }
  • 67. sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/AdminUsers/frmUsersList.aspx <%@ Page Language="C#" MasterPageFile="~/Templates/Default/AdminMaster.master" AutoEventWireup="true" CodeFile="frmUsersList.aspx.cs" Inherits="Admin_AdminCatalog_AdminUsers_frmUsersList" %> <%@ Register Src="ucUsersList.ascx" TagName="ucUsersList" TagPrefix="uc1" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <uc1:ucUsersList ID="UcUsersList1" runat="server" /> </asp:Content> sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/AdminUsers/frmUsersList.aspx. cs using System; using System.Data; using System.Configuration; using System.Collections;
  • 68. using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class Admin_AdminCatalog_AdminUsers_frmUsersList : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } } sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/AdminUsers/ucUsersList.ascx <%@ Control Language="C#" AutoEventWireup="true"
  • 69. CodeFile="ucUsersList.ascx.cs" Inherits="Admin_AdminCatalog_AdminUsers_ucUsersList" %> <%@ Register Assembly="GMDatePicker" Namespace="GrayMatterSoft" TagPrefix="cc1" %> <table style="width:100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td id="tdBrandList" style="width:100%" align="left"> <asp:Panel ID="panelTop" runat="server" Width="100%"> <%--<asp:LinkButton ID="lBtnNewBrand" Text="Add New Brand" runat="server" OnClick="lBtnNewBrand_Click" Visible="False"></asp:LinkButton>--%> <asp:DataList ID="dlBrand" RepeatColumns="1" runat="server" Width="100%" OnItemCommand="dlBrand_ItemCommand"> <HeaderStyle BackColor="Lavender"/> <ItemStyle BackColor="Azure"/> <AlternatingItemStyle BackColor="LightBlue"/> <HeaderTemplate > <table style="width:100%"> <tr>
  • 70. <td style="width:20%" align="center">UserName</td> <td style="width:18%" align="center">Firstname</td> <td style="width:17%" align="center">LastName</td> <td style="width:15%" align="center">EmailID</td> <td style="width:10%" align="center">Gender</td> <td style="width:10%" align="center">ContactNo</td> <td style="width:05%" align="center">Edit</td> <td style="width:05%" align="center">Delete</td> </tr> </table> </HeaderTemplate> <ItemTemplate> <table style="width:100%"> <tr>
  • 71. <td style="width:20%" align="center"> <asp:Label ID="lblUserName" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"UserName")% >'></asp:Label> </td> <td style="width:18%" align="center"> <asp:Label ID="Label1" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Firstname")%> '></asp:Label> </td> <td style="width:17%" align="center"> <asp:Label ID="Label2" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"LastName")% >'></asp:Label> </td> <td style="width:15%" align="center"> <asp:Label ID="Label3" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"EmailID")%>' ></asp:Label> </td> <td style="width:10%" align="center">
  • 72. <asp:Label ID="Label4" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Gender")%>'> </asp:Label> </td> <td style="width:10%" align="center"> <asp:Label ID="Label5" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"ContactNo")% >'></asp:Label> </td> <td style="width:05%" align="center"> <asp:ImageButton ID="IbtnBrandEdit" AlternateText="Edit Record" ImageUrl="~/Admin/AdminCatalog/Images/edit.gif" CommandName="Edit" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "UserID")%>' runat="server" /> </td> <td style="width:05%" align="center"> <asp:ImageButton ID="IbtnBrandDelete" AlternateText="Delete Record" ImageUrl="~/Admin/AdminCatalog/Images/delete.gif" CommandName="Delete" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "UserID")%>' runat="server" /> </td>
  • 73. </tr> </table> </ItemTemplate> </asp:DataList> <asp:Label ID="lblMsg" runat="server" ></asp:Label> </asp:Panel> </td> </tr> <tr> <td id="tdNewBrand" style="width:100%; height: 290px;" align="left"> <asp:Panel ID="panelupdate" runat="server" Width="100%"> <table style="width:100%"> <tr> <th colspan="3" align="center" style="height: 21px"> <asp:Label ID="lblUpdateBrand" runat="server" ForeColor="Green"></asp:Label></th> </tr>
  • 74. <tr> <td colspan="3" align="center"><asp:Label ID="lblUserID" runat="server" Visible="False"></asp:Label> <asp:Label ID="lblAddressID" runat="server" Visible="False"></asp:Label> </td> </tr> <tr> <td align="right"> <span style="color: red">*</span> User Name: </td> <td align="left"> <asp:TextBox ID="txtuser" runat="server" CausesValidation="true"></asp:TextBox> <asp:RequiredFieldValidator ID="rfvUsername" runat="server" ErrorMessage="User name required" ControlToValidate="txtuser" ToolTip="User name required">*</asp:RequiredFieldValidator> <asp:Label ID="lblUser" runat="server" Font- Bold="True" ForeColor="Red"></asp:Label>
  • 75. </td> </tr> <tr> <td align="right" style="width: 195px; height: 34px;"> <span style="color: red">*</span>First Name: </td> <td align="left" style="height: 34px"> <asp:TextBox ID="txtfname" runat="server" CausesValidation="true"></asp:TextBox> <asp:RequiredFieldValidator ID="FirstNameValidator" runat="server" ControlToValidate="txtfname" ErrorMessage="First Name should not be empty" SetFocusOnError="True"></asp:RequiredFieldValidator> </td> </tr> <tr> <td align="right" style="width: 195px"> Last Name:
  • 76. </td> <td align="left" style="width: 551px"> <asp:TextBox ID="txtlname" runat="server" CausesValidation="true"></asp:TextBox> </td> </tr> <tr> <td align="right" style="width: 195px; height: 40px;"> Date Of Birth: </td> <td align="left" style="width: 551px; height: 40px;"> <cc1:GMDatePicker ID="GMDatePicker1" runat="server" Style="z-index: 225; left: 0px; position: absolute; top: 0px"> </cc1:GMDatePicker> <asp:Label ID="lblFormat" runat="server" Text="mm/dd/yyyy" Enabled="false"></asp:Label> </td> </tr>
  • 77. <tr> <td align="right" style="height: 55px"> <span style="color: red">*</span>Gender: </td> <td align="left" style="width: 551px; height: 55px;"> <asp:RadioButtonList ID="rdSex" runat="server" RepeatDirection="Horizontal"> <asp:ListItem Text="Male" Value="Male"> </asp:ListItem> <asp:ListItem Text="Female" Value="Female"> </asp:ListItem> </asp:RadioButtonList> <asp:RequiredFieldValidator ID="GenderValidator" runat="server" ErrorMessage="PLZ Select the gender!!!" ControlToValidate="rdSex" Display="Dynamic"></asp:RequiredFieldValidator> </td> </tr>
  • 78. <tr> <td align="right" style="width: 195px"> Contact No: </td> <td align="left" style="width: 551px"> <asp:TextBox ID="txtcontact" MaxLength="20" runat="server"></asp:TextBox> <asp:CompareValidator ID="CompareValidator2" runat="server" ErrorMessage="Must enter numeric value" Operator="DataTypeCheck" Type="Integer" ControlToValidate="txtcontact"></asp:CompareValidator> </td> </tr> <tr> <td align="right" style="width: 195px; height: 34px;"> Alternate E-Mail ID: </td> <td align="left" style="width: 551px; height: 34px;">
  • 79. <asp:TextBox ID="txtmail" runat="server"></asp:TextBox> </td> </tr> <tr> <td align="right" style="width: 195px"> <span style="color: red">*</span>Address: </td> <td align="left" style="width: 551px"> <asp:TextBox ID="txtaddr" runat="server" TextMode="MultiLine"> </asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="This Field should not be blank" ControlToValidate="txtaddr"></asp:RequiredFieldValidator> </td> </tr> <tr>
  • 80. <td align="right" style="width: 195px; height: 32px;"> <span style="color: red">*</span>Country:</td> <td align="left" style="width: 551px; height: 32px;"> <asp:DropDownList ID="ddlcountry" runat="server" OnSelectedIndexChanged="ddlcountry_SelectedIndexChanged" AutoPostBack="True"> </asp:DropDownList> </td> </tr> <tr> <td align="right" style="width: 195px"> <span style="color: red">*</span>State: </td> <td align="left" style="width: 551px"> <asp:DropDownList ID="ddlstate" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlstate_SelectedIndexChanged"> </asp:DropDownList>
  • 81. </td> </tr> <tr> <td align="right" style="width: 195px"> <span style="color: red">*</span>City: </td> <td align="left" style="width: 551px"> <asp:DropDownList ID="ddlcity" runat="server"> </asp:DropDownList> </td> </tr> <tr> <td align="right" style="width: 195px; height: 34px;"> ZIP Code: </td> <td align="left" style="width: 551px; height: 34px;">
  • 82. <asp:TextBox ID="txtZipCode" MaxLength="6" runat="server"></asp:TextBox> <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtZipCode" ErrorMessage="Enter Proper Zip Code" ValidationExpression="d{6}"> </asp:RegularExpressionValidator> </td> </tr> <tr> <td align="center" colspan="2"> <asp:Label ID="lblres" runat="server" BackColor="#80FF80" Font-Bold="True" ForeColor="Red" ></asp:Label> </td> </tr> <tr> <td align="center" colspan="2"> <small><span style="color: red">*Note:</span>Must enter data</small> </td>
  • 83. </tr> <tr> <td colspan="3" align="center"> <asp:ImageButton ID="IbtnBrandSubmit" ImageUrl="~/Admin/AdminCatalog/Images/update11.jpg" AlternateText="Submit" runat="server" OnClick="IbtnBrandSubmit_Click" /> <asp:ImageButton ID="IBtnBrandCancel" ImageUrl="~/Admin/AdminCatalog/Images/cancel11.jpg" AlternateText="Cancel" runat="server" OnClick="IBtnBrandCancel_Click" /> </td> </tr> </table> <asp:Label ID="lblMsgNewBrand" runat="server" ForeColor="Red" Text=""></asp:Label></asp:Panel> </td> </tr> </table> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:EasyWearConnectionString %>"
  • 84. SelectCommand="SELECT tblAddress.Address, tblAddress.CityId, tblAddress.StateId, tblAddress.CountryId, tblAddress.ZipCode, tblAddress.AddressId, tblUser.FName, tblUser.LName, tblUser.DOB, tblUser.ContactNo, tblUser.Gender, tblUser.AccountId, tblUser.EmailID, tblUser.AddressID AS Expr1, tblUser.Description, tblUser.UserId, tblCity.Name, tblUserAccount.UserName, tblUserAccount.Password, tblUserAccount.HintQuestion, tblUserAccount.Answer, tblUserAccount.RoleId, tblCountry.Name AS Expr2, tblState.Name AS Expr3, tblRole.Role FROM tblAddress INNER JOIN tblUser ON tblAddress.AddressId = tblUser.AddressID INNER JOIN tblUserAccount ON tblUser.AccountId = tblUserAccount.Id INNER JOIN tblCity ON tblAddress.CityId = tblCity.Id INNER JOIN tblCountry ON tblAddress.CountryId = tblCountry.ID INNER JOIN tblState ON tblAddress.StateId = tblState.Id AND tblCity.StateID = tblState.Id AND tblCountry.ID = tblState.CountryId INNER JOIN tblRole ON tblUserAccount.RoleId = tblRole.Id"> </asp:SqlDataSource> sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/AdminUsers/ucUsersList.ascx.c s using System; using System.Data; using System.Configuration; using System.Collections; using System.Web;
  • 85. using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.IO; using ShoppingCart.BL; public partial class Admin_AdminCatalog_AdminUsers_ucUsersList : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BindList(); panelTop.Visible = true; panelupdate.Visible = false;
  • 86. } } private void BindList() { DataSet ds = UserController.getALLUsers(); lblMsg.Text = ""; if (ds.Tables[0].Rows.Count > 0) { dlBrand.DataSource = ds; dlBrand.DataBind(); } else { lblMsg.Text = "No such Item !!! Please add one"; } country(); state(); city();
  • 87. } protected void ddlcountry_SelectedIndexChanged(object sender, EventArgs e) { DataSet dsState = ProductController.getAllStatesByCountryID(int.Parse(ddlcountr y.SelectedValue)); BindDDL(ddlstate, dsState, "Name", "ID"); DataSet dscity = ProductController.getCitydetailsByStateID(int.Parse(ddlstate.Se lectedValue)); BindDDL(ddlcity, dscity, "Name", "ID"); } protected void ddlstate_SelectedIndexChanged(object sender, EventArgs e) { DataSet dscity = ProductController.getCitydetailsByStateID(int.Parse(ddlstate.Se lectedValue)); BindDDL(ddlcity, dscity, "Name", "ID"); } private void state()
  • 88. { DataSet dsState = ProductController.getAllStatedetails(); BindDDL(ddlstate, dsState, "Name", "ID"); } private void country() { DataSet dsCountry = ProductController.getCountrydetails(); BindDDL(ddlcountry, dsCountry, "Name", "ID"); } private void BindDDL(DropDownList ddl, DataSet ds, string txtField, string valField) { ddl.DataSource = ds; ddl.DataTextField = txtField; ddl.DataValueField = valField; ddl.DataBind(); } private void city()
  • 89. { DataSet dscity = ProductController.getCitydetails(); BindDDL(ddlcity, dscity, "Name", "ID"); } protected void IbtnBrandSubmit_Click(object sender, ImageClickEventArgs e) { string BrandName = "", Description = "", imageurl = "", Logo = ""; //if (txtBrandName.Text.Trim().Length > 0) // BrandName = txtBrandName.Text.Trim(); //else // lblMsgNewBrand.Text = "Enter Brand Name"; //Description = txtBrandDescriptrion.Text.Trim(); //if (fileBrand.FileName != null && fileBrand.FileName.Trim() != "") //{ // imageurl = "~/Browse/Images/" + fileBrand.FileName; // fileBrand.SaveAs(Server.MapPath(imageurl));
  • 90. // Logo = fileBrand.FileName; //} //else //{ // if (imgBrandLogo.ImageUrl != null) // { // Logo = Path.GetFileName(imgBrandLogo.ImageUrl); // } // else // Logo = "na.jpg"; //} int AddressID = Convert.ToInt32(lblAddressID.Text.Trim()); int UserID = Convert.ToInt32(lblUserID.Text.Trim()); UserController.UpdateUserDetails(txtuser.Text, txtfname.Text, txtlname.Text, GMDatePicker1.Date, txtcontact.Text, rdSex.SelectedValue, txtmail.Text, txtaddr.Text, int.Parse(ddlcountry.SelectedValue), int.Parse(ddlstate.SelectedValue), int.Parse(ddlcity.SelectedValue), txtZipCode.Text, AddressID,
  • 91. UserID); lblres.Text = "Done!!!"; BindList(); panelTop.Visible = true; panelupdate.Visible = false; } protected void dlBrand_ItemCommand(object source, DataListCommandEventArgs e) { ListItem li = null; if (e.CommandName == "Edit") { DataSet ds = UserController.GetUserBYUserID(int.Parse(e.CommandArgume nt.ToString())); if (ds.Tables[0].Rows.Count > 0) { lblUserID.Text = e.CommandArgument.ToString(); lblAddressID.Text = ds.Tables[0].Rows[0]["AddressId"].ToString();
  • 92. txtuser.Text = ds.Tables[0].Rows[0]["UserName"].ToString(); txtaddr.Text = ds.Tables[0].Rows[0]["Address"].ToString(); txtcontact.Text = ds.Tables[0].Rows[0]["ContactNo"].ToString(); txtfname.Text = ds.Tables[0].Rows[0]["FirstName"].ToString(); txtlname.Text = ds.Tables[0].Rows[0]["LastName"].ToString(); txtmail.Text = ds.Tables[0].Rows[0]["EmailID"].ToString(); txtZipCode.Text = ds.Tables[0].Rows[0]["ZipCode"].ToString(); li = ddlcity.Items.FindByText(ds.Tables[0].Rows[0]["CityName"].T oString()); if(li!=null) { ddlcity.ClearSelection(); li.Selected = true; } li =
  • 93. ddlcountry.Items.FindByText(ds.Tables[0].Rows[0]["CountryNa me"].ToString()); if (li != null) { ddlcountry.ClearSelection(); li.Selected = true; } li = ddlstate.Items.FindByText(ds.Tables[0].Rows[0]["StateName"]. ToString()); if (li != null) { ddlstate.ClearSelection(); li.Selected = true; } li = rdSex.Items.FindByText(ds.Tables[0].Rows[0]["Gender"].ToStr ing()); if (li != null) { rdSex.ClearSelection();
  • 94. li.Selected = true; } GMDatePicker1.Date = Convert.ToDateTime(ds.Tables[0].Rows[0]["DOB"].ToString()) ; panelTop.Visible = false; panelupdate.Visible = true; } } if (e.CommandName == "Delete") { lblUserID.Text = e.CommandArgument.ToString(); int UserId = int.Parse(lblUserID.Text); UserController.DeleteUserByUserID(UserId); BindList(); } } protected void IBtnBrandCancel_Click(object sender, ImageClickEventArgs e)
  • 95. { panelupdate.Visible = false; panelTop.Visible = true; } } sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/background_fullwidth.j pg sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/banner1.jpg sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/banner2.jpg sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/banner7.jpg sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/Bar1.bmp sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/benner11.bmp sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/Blue hills.jpg sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/bottombanner_people.p
  • 97. Shopping/Admin/AdminCatalog/Images/F224200781003.jpg sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/FA_FadingRollovers.js /**************************************************** *************** * File : FA_ImageFadeSwap.js © JavaScript-FX.com * Created : 2001/08/31 * Author : Roy Whittle ([email protected]) www.Roy.Whittle.com * Purpose : To create a more dynamic image swap using opacity * History * Date Version Description * 2001-08-09 1.0 First version * 2001-08-31 1.1 Got it working with NS6 - You must use opaque * GIF's and use a STYLE attrib in the main * HTML Page - Thanks Owl. * 2001-08-31 1.2 Added different FadIn/FadeOut and converted * all vars to FA name space. * 2001-09-01 1.3 Make it so you only need one
  • 98. onMouseOver * onMouseOut in the main document. * 2001-09-09 1.4 Allow you to do a "Swap Other Image" so * you can swap the same image with different pictures. * 2001-09-17 1.5 Create the pre-loading object - just like * simple rollovers and animated rollovers. * allows for a similar interface to all. * 2001-09-18 1.6 The code contains so much of SimpleRollovers that * I added imgOn and imgOff so you can mix rollovers * without having to include 2 ".js" files. * 2002-02-08 1.7 If the ON image is already loaded don't reload it. * This should help with the IE bug that reloads images * from the server even though they are pre-cached. * (will not work for swapping multiple
  • 99. pictures into same Image object) * 2002-02-13 1.8 Corrected a bug in FA.findImg * 2002-04-23 1.9 Write out the style tag. * 2002-06-09 1.10 Attempt fix for IE on a Mac * 2002-08-27 1.11 Fix a bug whereby opacity may go over 100 which * may be causing a bug in IE6 * 2002-08-29 1.12 Thanks to piglet (http://homepage.ntlworld.com/thepiglet/) * I now have a partial fix for NS7 and Mozilla 1.1. ***************************************************** ******************/ /****** User may alter these to change the fade effect ********/ var FadeInStep = 20; var FadeOutStep = 20; /****** Don't alter anything else **************/ document.write('<STYLE TYPE="text/css">.imgFader{ position:relative; filter:alpha(opacity=0); -moz-opacity:0.0 }</STYLE>');
  • 100. if(!window.FA) FA=new Object(); FA.RolloverObjects=new Array(); FA.Rollover = function(name, img) { FA.RolloverObjects[name]=new Image(); FA.RolloverObjects[name].img_src = img; if(!FA.Rollover.postLoad) FA.RolloverObjects[name].src = img; } FA.Rollover.postLoad = false; FA.Rollover.loadImages = function() { var i; for(i in FA.RolloverObjects) {
  • 101. r=FA.RolloverObjects[i]; r.src=r.img_src; } } FA.Rollover.error = function(n) { alert("FA.Rollover - An Error has been detectedn" + "----------------------------------n" + "You must define a FA.Rollover in your documentn" + "FA.Rollover(""+n+"","your_on_img.gif")n" + "(check the spelling of your FA.Rollovers)"); } /**************************************************** *************** * * Function : getImg *
  • 102. * Description : In Netscape 4 images could be in layers so we might * have to recurse the layers to find the image * ***************************************************** ************/ FA.getImg = function(n, d) { var img = d.images[n]; if(!img && d.layers) for(var i=0 ; !img && i<d.layers.length ; i++) img=FA.getImg(n,d.layers[i].document); return img; } /**************************************************** *************** * * Function : findImg * * Description : gets the image from the document and reports an
  • 103. * error if it cannot find it. * ***************************************************** ************/ FA.findImg = function(n, d) { var img = FA.getImg(n, d); /*** Stop emails because the image was named incorrectly ***/ if(!img) { alert("FA.findImg - An Error has been detectedn" + "----------------------------------n" + "You must define an image in your documentn" + "<IMG SRC="your_image.ext" NAME=""+n+"">n" + "(check the NAME= attribute of your images)");
  • 104. return(new Image()); } return img; } FA.ImageFadeRunning=false; FA.ImageFadeInterval=30; /**************************************************** *************** * * Function : imgFadeIn * * Description : This function is based on the turn_on() function * of animate2.js (animated rollovers from www.roy.whittle.com). * Each image object is given a state. * OnMouseOver the state is switched depending on the current state.
  • 105. * Current state -> Switch to * =========================== * null -> OFF. * OFF -> FADE_IN * FADE_OUT -> FADE_IN * FADE_OUT -> FADE_OUT_IN (if the new image is different) * FADE_IN_OUT-> FADE_IN (if the image is the same) ***************************************************** ************/ FA.imgFadeIn = function(img, imgSrc) { if(img) { if(img.state == null) { img.state = "OFF"; img.index = 0;
  • 106. img.next_on = null; } if(img.state == "OFF") { /*** Vers 1.7 only load the ON image once ever ***/ if(img.src.indexOf(imgSrc) == -1) img.src=imgSrc; img.currSrc = imgSrc; img.state = "FADE_IN"; FA.startFading(); } else if( img.state == "FADE_IN_OUT" || img.state == "FADE_OUT_IN" || img.state == "FADE_OUT") { if(img.currSrc == imgSrc)
  • 107. img.state = "FADE_IN"; else { img.next_on = imgSrc; img.state="FADE_OUT_IN"; } } } } /**************************************************** *************** * * Function : imgFadeOut * * Description : This function is based on the turn_off function * of animate2.js (animated rollovers from www.roy.whittle.com). * Each image object is given a state.
  • 108. * OnMouseOut the state is switched depending on the current state. * Current state -> Switch to * =========================== * ON -> FADE_OUT. * FADE_IN -> FADE_IN_OUT. * FADE_OUT_IN -> FADE_IN. (after swapping to the next image) ***************************************************** ************/ FA.imgFadeOut = function(img) { if(img) { if(img.state=="ON") { img.state="FADE_OUT"; FA.startFading(); }
  • 109. else if(img.state == "FADE_IN") { img.state="FADE_IN_OUT"; } else if(img.state=="FADE_OUT_IN") { img.next_on == null; img.state = "FADE_OUT"; } } } /**************************************************** *************** * * Function : startFading * * Description : This function is based on the start_animating() function * of animate2.js (animated rollovers from www.roy.whittle.com).
  • 110. * If the timer is not currently running, it is started. * Only 1 timer is used for all objects ***************************************************** ************/ FA.startFading = function() { if(!FA.ImageFadeRunning) FA.ImageFadeAnimation(); } /**************************************************** *************** * * Function : ImageFadeAnimation * * Description : This function is based on the Animate function * of animate2.js (animated rollovers from www.roy.whittle.com). * Each image object has a state. This function
  • 111. * modifies each object and (possibly) changes its state. ***************************************************** ************/ FA.ImageFadeAnimation = function() { FA.ImageFadeRunning = false; for(i=0 ; i<document.images.length ; i++) { var img = document.images[i]; if(img.state) { if(img.state == "FADE_IN") { img.index+=FadeInStep; if(img.index > 100) img.index = 100;
  • 112. if(img.filters) img.filters.alpha.opacity = img.index; else img.style.MozOpacity = img.index/101; if(img.index == 100) img.state="ON"; else FA.ImageFadeRunning = true; } else if(img.state == "FADE_IN_OUT") { img.index+=FadeInStep; if(img.index > 100) img.index = 100; if(img.filters) img.filters.alpha.opacity = img.index;
  • 113. else img.style.MozOpacity = img.index/101; if(img.index == 100) img.state="FADE_OUT"; FA.ImageFadeRunning = true; } else if(img.state == "FADE_OUT") { img.index-=FadeOutStep; if(img.index < 0) img.index = 0; if(img.filters) img.filters.alpha.opacity = img.index;
  • 114. else img.style.MozOpacity = img.index/101; if(img.index == 0) img.state="OFF"; else FA.ImageFadeRunning = true; } else if(img.state == "FADE_OUT_IN") { img.index-=FadeOutStep; if(img.index < 0) img.index = 0; if(img.filters) img.filters.alpha.opacity = img.index; else
  • 115. img.style.MozOpacity = img.index/101; if(img.index == 0) { img.src = img.next_on; img.currSrc = img.next_on; img.state="FADE_IN"; } FA.ImageFadeRunning = true; } } } /*** Check to see if we need to animate any more frames. ***/ if(FA.ImageFadeRunning) setTimeout("FA.ImageFadeAnimation()", FA.ImageFadeInterval); }
  • 116. /**************************************************** *************** * * Function : hasOpacity * * Description : Tests if the browser allows Opacity * ***************************************************** ************/ FA.hasOpacity = function(obj) { if(document.layers) return false; if(window.opera) return false; if(navigator.userAgent.toLowerCase().indexOf("mac") != - 1) return false;
  • 117. return true; } /**************************************************** *************** * * Function : fadeIn /fadeOut * * Description : Detects browser that can do opacity and fades the images * For browsers that do not support opacity it just does an image swap. * (I only know about NS4 but maybe IE on a Mac also ?) * For these functions to work you need to name the image * e.g. for an image named "home" you need * <IMG .... NAME="home"> * and you need 2 images, the on and the off image ***************************************************** ************/
  • 118. FA.fadeIn = function(imgName, rollName) { if(rollName == null) rollName=imgName; /*** Stop emails because the rollover was named incorrectly ***/ if(!FA.RolloverObjects[rollName]) { FA.Rollover.error(rollName); return; } var img = FA.findImg(imgName, document); if(FA.hasOpacity(img)) FA.imgFadeIn(img, FA.RolloverObjects[rollName].img_src); else {
  • 119. if(img.offSrc==null) img.offSrc=img.src; img.src=FA.RolloverObjects[rollName].img_src; } } FA.fadeOut = function(imgName) { var img = FA.findImg(imgName, document); if(FA.hasOpacity(img)) FA.imgFadeOut(img); else img.src=img.offSrc; } /**************************************************** *************** * * Function : imgOn /imgOff *
  • 120. * Description : Included these functions so you can mix simple and * fading rollovers without having to include 2 ".js" files * ***************************************************** ************/ FA.imgOn = function(imgName, rollName) { if(rollName == null) rollName=imgName; /*** Stop emails because the rollover was named incorrectly ***/ if(!FA.RolloverObjects[rollName]) { FA.Rollover.error(rollName); return; } var img = FA.findImg(imgName,document);
  • 121. if(img.offSrc==null) img.offSrc=img.src; img.src=FA.RolloverObjects[rollName].img_src; } FA.imgOff = function(imgName) { var img = FA.findImg(imgName,document); img.src=img.offSrc; } sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/Header_Brands.gif sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/icon_download_event.g if sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/icon_event.gif sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/img1.jpg sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/imgCCHPMeBAAGSig nedOut.gif sri_ITSD325_IP3/Code-
  • 122. Shopping/Admin/AdminCatalog/Images/imgEcheck.gif sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/imgHdrLiveHelpIcon.gi f sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/inner_ima1.jpg sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/inner_ima2.jpg sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/inner_ima3.jpg sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/inner_ima4.jpg sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/inner_ima5.jpg sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/inner_ima6.jpg sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/inner_ima7.jpg sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/loading.gif sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/movedown.gif sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/moveup.gif
  • 123. sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/notavailable.gif sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/print.jpg sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/rollimages.js // JavaScript Document FadeInStep=20; FadeOutStep=6; FA.Rollover("l1", "http://localhost/SweetNewBaby2.0/images/home_o.gif"); FA.Rollover("l2", "http://localhost/SweetNewBaby2.0/images/aboutus_o.gif"); FA.Rollover("l3", "http://localhost/SweetNewBaby2.0/images/our_services_o.gif") ; FA.Rollover("l4", "http://localhost/SweetNewBaby2.0/images/best_solutions_o.gif "); FA.Rollover("l5", "http://localhost/SweetNewBaby2.0/images/faq_o.gif"); FA.Rollover("l6", "http://localhost/SweetNewBaby2.0/images/services_o.gif"); FA.Rollover("l7", "http://localhost/SweetNewBaby2.0/images/contact_o.gif");
  • 124. sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/Search.gif sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/signin.gif sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/slideshow_inner.js // JavaScript Document var fadeimages=new Array() //SET IMAGE PATHS. Extend or contract array as needed fadeimages[0]=["http://localhost/ShoppingCart/Admin/AdminCa talog/images/inner_ima1.jpg", "", ""] fadeimages[1]=["http://localhost/ShoppingCart/Admin/AdminCa talog/images/inner_ima2.jpg", "", ""] fadeimages[2]=["http://localhost/ShoppingCart/Admin/AdminCa talog/images/inner_ima3.jpg", "", ""] fadeimages[3]=["http://localhost/ShoppingCart/Admin/AdminCa talog/images/inner_ima4.jpg", "", ""] fadeimages[4]=["http://localhost/ShoppingCart/Admin/AdminCa talog/images/inner_ima5.jpg", "", ""] fadeimages[5]=["http://localhost/ShoppingCart/Admin/AdminCa talog/images/inner_ima6.jpg", "", ""] fadeimages[6]=["http://localhost/ShoppingCart/Admin/AdminCa
  • 125. talog/images/inner_ima7.jpg", "", ""] var fadebgcolor="black" ////NO need to edit beyond here///////////// var fadearray=new Array() //array to cache fadeshow instances var fadeclear=new Array() //array to cache corresponding clearinterval pointers var dom=(document.getElementById) //modern dom browsers var iebrowser=document.all function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){ this.pausecheck=pause this.mouseovercheck=0
  • 126. this.delay=delay this.degree=10 //initial opacity degree (10%) this.curimageindex=0 this.nextimageindex=1 fadearray[fadearray.length]=this this.slideshowid=fadearray.length-1 this.canvasbase="canvas"+this.slideshowid this.curcanvas=this.canvasbase+"_0" if (typeof displayorder!="undefined") theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :) this.theimages=theimages this.imageborder=parseInt(borderwidth) this.postimages=new Array() //preload images for (p=0;p<theimages.length;p++){ this.postimages[p]=new Image() this.postimages[p].src=theimages[p][0] }
  • 127. var fadewidth=fadewidth+this.imageborder*2 var fadeheight=fadeheight+this.imageborder*2 if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox) document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadehei ght+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadehei ght+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft. alpha(opacity=10);-moz-opacity:10;-khtml- opacity:10;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadehei ght+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft. alpha(opacity=10);-moz-opacity:10;background- color:'+fadebgcolor+'"></div></div>') else document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>') if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox this.startit()
  • 128. else{ this.curimageindex++ setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay) } } function fadepic(obj){ if (obj.degree<100){ obj.degree+=10 if (obj.tempobj.filters&&obj.tempobj.filters[0]){ if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+ obj.tempobj.filters[0].opacity=obj.degree else //else if IE5.5- obj.tempobj.style.filter="alpha(opacity="+obj.degree+")" } else if (obj.tempobj.style.MozOpacity) obj.tempobj.style.MozOpacity=obj.degree/101 else if (obj.tempobj.style.KhtmlOpacity)
  • 129. obj.tempobj.style.KhtmlOpacity=obj.degree/100 } else{ clearInterval(fadeclear[obj.slideshowid]) obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1" obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas) obj.populateslide(obj.tempobj, obj.nextimageindex) obj.nextimageindex=(obj.nextimageindex<obj.postimages.length -1)? obj.nextimageindex+1 : 0 setTimeout("fadearray["+obj.slideshowid+"].rotateimage()", obj.delay) } } fadeshow.prototype.populateslide=function(picobj, picindex){ var slideHTML="" if (this.theimages[picindex][1]!="") //if associated link exists for image
  • 130. slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">' slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">' if (this.theimages[picindex][1]!="") //if associated link exists for image slideHTML+='</a>' picobj.innerHTML=slideHTML } fadeshow.prototype.rotateimage=function(){ if (this.pausecheck==1) //if pause onMouseover enabled, cache object var cacheobj=this if (this.mouseovercheck==1) setTimeout(function(){cacheobj.rotateimage()}, 100) else if (iebrowser&&dom||dom){ this.resetit() var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
  • 132. if (typeof crossobj.filters[0].opacity=="number") //if IE6+ crossobj.filters(0).opacity=this.degree else //else if IE5.5- crossobj.style.filter="alpha(opacity="+this.degree+")" } else if (crossobj.style.MozOpacity) crossobj.style.MozOpacity=this.degree/101 else if (crossobj.style.KhtmlOpacity) crossobj.style.KhtmlOpacity=obj.degree/100 } fadeshow.prototype.startit=function(){ var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas) this.populateslide(crossobj, this.curimageindex) if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER var cacheobj=this
  • 134. FONT-WEIGHT: bold; FONT-SIZE: 16px; FONT-FAMILY: Verdana, Verdana; color: #000000; } .message { FONT-SIZE: 16px; COLOR: #F2c100; FONT-FAMILY: Verdana; font-weight: normal; } B { COLOR: #000080 }
  • 135. P { FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Verdana; font-weight: normal; } .topxextlinks { FONT-SIZE: 10px; COLOR: #000000; FONT-FAMILY: Verdana; TEXT-DECORATION: none; font-weight: normal; } .topxextlinks A { FONT-SIZE: 10px; COLOR: #ffffff; FONT-FAMILY: Verdana; TEXT-DECORATION: none }
  • 136. .topxextlinks A:hover { FONT-SIZE: 10px; COLOR: #FF0000; FONT-FAMILY: Verdana; TEXT-DECORATION: underline } .leftlinks { FONT-SIZE: 11px; COLOR: #FFFFFF; FONT-FAMILY: Georgia, "Times New Roman", Times, serif; TEXT-DECORATION: underline; font-weight: normal; font-style: normal; margin: 0px; } .leftlinks A { FONT-SIZE: 11px; COLOR: #000000; FONT-FAMILY: Verdana; TEXT-DECORATION: underline;
  • 137. font-weight: normal; } .leftlinks A:hover { FONT-SIZE: 11px; COLOR: #FF0000; FONT-FAMILY: Verdana; text-decoration: underline; font-style: normal; } .leftlinksw { FONT-SIZE: 11px; COLOR: #ffffff; FONT-FAMILY: Verdana; TEXT-DECORATION: none; font-weight: normal; font-style: normal; margin: 0px;
  • 138. } .leftlinksw A { FONT-SIZE: 11px; COLOR: #ffffff; FONT-FAMILY: Verdana; TEXT-DECORATION: none; font-weight: normal; } .leftlinksw A:hover { FONT-SIZE: 11px; COLOR: yellow; FONT-FAMILY: Verdana; text-decoration: underline; font-style: normal; } .leftlinkssamll { FONT-SIZE: 9px;
  • 139. COLOR: #000000; FONT-FAMILY: Verdana; TEXT-DECORATION: none; font-weight: normal; font-style: normal; margin: 0px; } .leftlinkssamll A { FONT-SIZE: 9px; COLOR: #000000; FONT-FAMILY: Verdana; TEXT-DECORATION: none; font-weight: normal; } .leftlinkssamll A:hover { FONT-SIZE: 9px; COLOR: #FF0000; FONT-FAMILY: Verdana;
  • 140. text-decoration: underline; font-style: normal; } .rightlinks { FONT-SIZE: 11px; COLOR: #000000; FONT-FAMILY: "Courier New", Courier, mono; text-decoration: none; margin-top: 2px; margin-bottom: 2px; } .rightlinks A { FONT-SIZE: 11px; COLOR: #FFFFFF; FONT-FAMILY: "Courier New", Courier, mono;
  • 141. TEXT-DECORATION: none; margin-top: 2px; margin-bottom: 2px; } .rightlinks A:hover { FONT-SIZE: 11px; COLOR: #000000; FONT-FAMILY: "Courier New", Courier, mono; text-decoration: none; margin-top: 2px; margin-bottom: 2px; } .botlinks { FONT-SIZE: 11px; COLOR: #000000; FONT-FAMILY: Verdana; TEXT-DECORATION: none; font-weight: bold;
  • 142. } .botlinks A { FONT-SIZE: 11px; COLOR: #339933; FONT-FAMILY: Verdana; TEXT-DECORATION: underline } .botlinks A:hover { FONT-SIZE: 11px; COLOR: #000000; LINE-HEIGHT: 12px; FONT-FAMILY: Verdana; TEXT-DECORATION: none } .email { FONT-SIZE: 11px; COLOR: #0000CC; FONT-FAMILY: Verdana; font-weight: bold; } .email A { FONT-SIZE: 11px; COLOR: #0000CC; FONT-FAMILY: Verdana; font-weight: bold; }
  • 143. .email A:hover { FONT-SIZE: 11px; COLOR: #000000; LINE-HEIGHT: 12px; FONT-FAMILY: Verdana; font-weight: bold; } .boldlink { FONT-SIZE: 12px; COLOR: #ffffff; FONT-FAMILY: Verdana; font-weight: bold; } .boldlink A { FONT-SIZE: 12px; COLOR: #ffffff; FONT-FAMILY: Verdana; font-weight: bold; } .boldlink A:hover { FONT-SIZE: 12px; COLOR: #ffffff; LINE-HEIGHT: 12px; FONT-FAMILY: Verdana; font-weight: bold; }
  • 144. .subheading { FONT-WEIGHT: bold; FONT-SIZE: 12px; FONT-FAMILY: Verdana; color: #000000; } .button { FONT-SIZE: 11px; COLOR: #FFFFFF; FONT-FAMILY: Verdana; TEXT-DECORATION: none; font-weight: bold; background-color: #68775A; border: 1px solid #000000; }
  • 145. .address { font-family: Verdana; font-size: 13px; font-weight: bold; color: #000000; } .maintable { border: 1px solid #000000; } .flashtable { border: 3px solid #02AB0A; } .textbox { FONT-SIZE:12px; COLOR: #000000; FONT-FAMILY: Verdana;
  • 146. TEXT-DECORATION: none; font-weight: normal; background-color: #FFFFA0; border: 1px solid #000000; } .bodytextbold { FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: verdana; font-weight: bold; } .usercontrol { FONT-WEIGHT: bold; FONT-SIZE: 10px; FONT-FAMILY: Verdana; color: #000000; }
  • 147. .mandatory { FONT-WEIGHT: bold; FONT-SIZE: 9px; FONT-FAMILY: Verdana; color: #FF0000; } .error { FONT-WEIGHT: normal; FONT-SIZE: 10px; FONT-FAMILY: Verdana; color: #FF0000; } .leftlinksCopy { FONT-SIZE: 9px; COLOR: #000000; FONT-FAMILY: verdana; font-weight: normal; font-style: normal;
  • 148. margin: 0px; text-decoration: none; } .Bigling { FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Verdana; font-weight: bold; } .submedihead { FONT-WEIGHT: bold; FONT-SIZE: 16px; FONT-FAMILY: Verdana, Verdana; color: #FF0000; font-style: normal;
  • 149. } .subheadingCopy { FONT-WEIGHT: bold; FONT-SIZE: 12px; FONT-FAMILY: Verdana; color: #FF0000; text-decoration: none; } .bodytextCopy { FONT-SIZE: 9px; COLOR: #000000; FONT-FAMILY: Verdana; font-weight: normal; } .bodytextsmall {
  • 150. FONT-SIZE: 9px; COLOR: #000000; FONT-FAMILY: Verdana; } .bodytext { FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: verdana; font-weight: normal; line-height: 21px; } .star { FONT-SIZE: 12px; COLOR: red; FONT-FAMILY: verdana; font-weight: normal; line-height: 21px;
  • 151. } td { FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: verdana; font-weight: normal; line-height: 21px; } .bodytextalign { FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Georgia; font-weight: normal; line-height: 22px; } .headingbig { background: url('../images/background_nav_main.gif')
  • 152. repeat-x; FONT-WEIGHT: bold; FONT-SIZE: 14px; FONT-FAMILY: Verdana, Verdana; /*background-color:#D7B829;*/ color: #ffffff; } .contenttdbg{ background-image:url(content_bg.gif); background-repeat:repeat-x; background-color:White; } #navtop, #navbottom { background: url('../images/background_nav_main.gif') repeat-x; font-size: 11px; font-weight: bold; font-family: Verdana, Helvetica, Helvetica-Narrow, Tahoma, sans-serif;
  • 153. margin-right: auto; margin-left: auto; width: 950px; height: 45px; color:#ffffff; } A.whitelinks:link { FONT-SIZE: 11px; COLOR: #ffffff; TEXT-DECORATION: none; FONT-FAMILY: "Verdana"; font-weight: bold; } A.whitelinks:visited { FONT-SIZE: 11px; COLOR: #ffffff; TEXT-DECORATION: none;
  • 154. FONT-FAMILY: "Verdana"; font-weight: bold; } A.whitelinks:hover { FONT-SIZE: 11px; FONT-FAMILY: "Verdana"; COLOR: #ffffff; TEXT-DECORATION:underline; font-weight: bold; } A.whitelinks:active { FONT-SIZE: 11px; FONT-FAMILY: "Verdana"; COLOR: #ffffff; font-weight: bold; } #navbottom
  • 155. { margin-top: 15px; } .fullwidth, #loginbanner { border: 1px solid #DBDB79; /*width: 694px;*/ margin-right: auto; margin-left: auto; background: #FEFFAB url('images/background_fullwidth.jpg') repeat-y; margin-bottom: 10px; padding-left: 15px; padding-right: 15px; padding-top: 10px; padding-bottom: 10px; text-align: left; }
  • 156. #footer { width: 100%; margin-right: auto; margin-left: auto; text-align: center; margin-top: 1px; padding-bottom: 5px; color: #C89F3D; background: #FEFFAB url('images/background_fullwidth.jpg') repeat-y; } .dashedline { border-bottom: 1px dashed #DBCE6A; padding-top: 10px; margin-bottom: 10px;
  • 157. clear:right; } .button { BORDER: #000000 1px solid; FONT-WEIGHT: bold; FONT-SIZE: 8pt; COLOR: #FFFFFF; FONT-FAMILY: Verdana; BACKGROUND-COLOR:#51652C; TEXT-DECORATION: none; cursor:hand; vertical-align:top; height:20px; } .textbox { FONT-SIZE: 9pt; COLOR: #000000;
  • 158. FONT-FAMILY: Verdana; TEXT-DECORATION: none; font-weight: normal; background-color: #FFFFFF; border: 1px solid #000000; vertical-align:middle; } sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/submit.gif sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/Sunset.jpg sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/Thumbs.db sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/tile_back.gif sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/Untitled-30.jpg sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/update.gif sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/update11.jpg
  • 159. sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/Water lilies.jpg sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/weaccept.gif sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/wf1_notavailable.gif sri_ITSD325_IP3/Code- Shopping/Admin/AdminCatalog/Images/Winter.jpg sri_ITSD325_IP3/Code-Shopping/Admin/frmadmin.aspx <%@ Page Language="C#" MasterPageFile="~/Templates/Default/AdminMaster.master" AutoEventWireup="true" CodeFile="frmadmin.aspx.cs" Inherits="Admin_frmadmin" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <table width="100%" cellpadding="0" cellspacing="0" border="1" height="345"> <tr> <td width="20%" valign="top"> <ul> <li> <a href='Order/frmOrdersList.aspx' runat='server'>Admin Order</a>
  • 160. </li> <li> <a href='AdminCatalog/adminCategory/frmCategoriesList.aspx' runat='server'>Admin Category</a> </li> <li> <a id="A1" href='AdminCatalog/adminBrand/frmBrandList.aspx' runat='server'>Admin Brand</a> </li> <li> <a id="A2" href='AdminCatalog/adminProduct/frmProductList.aspx' runat='server'>Admin Products</a> </li> <li> <a id="A3" href='AdminCatalog/adminUsers/frmUsersList.aspx' runat='server'>Manage Users</a> </li> </ul> </td>
  • 161. <td align="center" style="font-size:20px"> <strong>Welcome to Shopping Cart Administration</strong> </td> </tr> </table> </asp:Content> sri_ITSD325_IP3/Code-Shopping/Admin/frmadmin.aspx.cs using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts;
  • 162. using System.Web.UI.HtmlControls; public partial class Admin_frmadmin : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } } sri_ITSD325_IP3/Code- Shopping/Admin/Order/Controls/ucOrdersList.ascx <%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucOrdersList.ascx.cs" Inherits="Order_Controls_ucOrdersList" %> <%@ Register Assembly="GMDatePicker" Namespace="GrayMatterSoft" TagPrefix="cc1" %> <table style="width: 100%" cellpadding="0" cellspacing="0" border="0"> <tr bgcolor='#ccccff'> <td align="left" nowrap valign="top">