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#" AutoEve.
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)
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;
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;
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;
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" %>
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();
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"
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;
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();
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>');
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)");
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
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);
}
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
{
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);
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()
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
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;