Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
INTRODUCTION
Internet is a crucial source the company existence, its information and products to the
people around the world. Online sale and purchase, is a big and important part of the
internet in present life. In Food court we are providing all kinds of food items of all
cuisine. We are taking orders from the customers by showing our available food items.
We are having the facility of changing home content, changing about us content,
uploading the products (dishes), uploading images in gallery of our food court, generating
blogs by user, receiving orders from the website. The main purpose of creating the
website on this topic is to promote our restaurant and products online to make it in
everyone’s approach . The user required the basic knowledge of internet for usage.
Our website “FOOD COURT” is a site for promoting our products and online ordering
for Home delivery. The client can visit our site , view the products (dishes) and place the
order online. He /she doesn’t need to visit the shop for ordering the food. Our website is
having a user friendly environment and it is designed as per all web standards . user can
easily understand about its working and can browse the site as per their need. Effective
retrieval of data can save lot of precious time and hence makes it easier for user to fulfill
their requirements ,increase the productivity of the employee concerned and the
organization as whole. Not only that , through proper management of website’s section
and its we can serve our users better and enforce them to visit our website products.
1
1.2 TECHNOLOGY USED :Asp.Net
Asp.net is the technology used to develop the project . ASP.NET is a server-side Web
application framework designed for Web development to produce dynamic Web pages.
Active Server Pages (ASP), also known as Classic ASP, was introduced in 1998 as
Microsoft's first server side scripting engine. ASP is a technology that enables scripts in
web pages to be executed by an Internet server.ASP pages have the file extension .asp,
and are normally written in VBScript.
1. ASP.NET dramatically reduces the amount of code needed to build large applications.
2. With built-in Windows authentication and application settings, and applications safe
and secure.
5. ASP.NET provides a simple and easy to perform common tasks, from simple form
submission and client authentication configuration and deployment site.
6. The source code and HTML together, so that ASP.NET pages are easy to maintain and
write. In addition, the source code is executed on the server. It provides greater power and
flexibility to Web pages.
2
7. All processes are carefully controlled and managed by ASP.NET, so that if the process
is dead, the new process can be created in its place, which helps to keep your application
constantly available to handle requests.
8. This is purely server-side technologies, so that the ASP.NET code runs on the server
before being sent to the browser.
9. Be independent of the language, it allows you to select the language that best applies to
your application or partition applications in many languages.
10. ASP.NET makes for easy deployment. No need to register components because the
configuration information is embedded.
11. The Web server continuously monitors the pages, components and applications
running on it. If he notices any memory leaks, infinite loops, other illegal activities,
which immediately destroys the activity and restarts.
12. It is easy to work with ADO.NET using data binding and formatting of the page. This
is an application that works faster and counters large volumes of users without
performance problems
3
1.2.1 LANGUAGE USED : c#
4
exists. Built-in languages include C/C++[5] (via Visual C++), VB.NET (via Visual
Basic .NET), C# (via Visual C#), and F# (as of Visual Studio 2010[6]). Support for
other languages such as M, Python, and Ruby among others is available via
language services installed separately. It also supports XML/XSLT,
HTML/XHTML, JavaScript and CSS. Individual language-specific versions of
Visual Studio also exist which provide more limited language services to the user:
Microsoft Visual Basic, Visual J#, Visual C#, and Visual C++.
5
CHAPTER 2
2.1 INTRODUCTION:
System requirements are expressed in a software requirement document. The
Software requirement specification (SRS) is the official statement of what is
required of the system developers. This requirement document includes the
requirements definition and the requirement specification. The software
requirement document is not a design document. It should set out what the system
should do without specifying how it should be done. The requirement set out in
this document is complete and consistent. The software specification document
satisfies the following:
6
2.3 FUNCTIONAL REQUIREMENTS:
The System must provide following functionalities:
1. Keeping the content of the website updated ( Home content , About content).
2. Keeping the records of products.
3. Keeping the records of gallery images
4. Reading of the blogs given by the customers.
5. Keeping details about the product it is delivered or not etc.
6. Keeping the records of the order form filled.
7
shall only be accessible to authenticated administrators. Sensitive data will be
encrypted before being sent over insecure connections like the internet.
3 AVAILABILITY: The system should be available at all times, meaning the user
can access it using a web browser, only restricted by the down time of the server
on which the system runs. In case of a of a hardware failure or database
corruption, a replacement page will be shown. Also in case of a hardware failure
or database corruption, backups of the database should be retrieved from the
server and saved by the administrator. Then the service will be restarted. It means
24 X 7 availability.
8
2.6 EXTERNAL INTERFACE REQUIREMENTS:
1. USER INTERFACE: User of the system will be provided with the Graphical user
interface, there is no command line interface for any functions of the product.
The user will get Blog page where he can write blogs and admin can view it. The
order now page where he can order the food.
2. HARDWARE INTERFACE:Hardware requirements for Insurance on internet will
be same for both the parties which are follows:
i. Processor: - Pentium I or above.
ii. RAM: - 128 MB or above.
iii. HD: 20 GB or above.
iv. NIC: For each party4.5.3
3. SOFTWARE INTERFACE: Software required to make working of product is:
i. Operating System: Windows XP/vista/7or later version, Linux OS which
supports networking.
ii. Asp.Net development tools : Visual studio 2010
4. COMMUNICATION INTERFACES: The two parties should be connected through
either by LAN or WAN for the communication.
COMMUNICATION CHANNELS
SENDER RECEIVER
9
2. ASSUMPTIONS AND DEPENDENCIES: The product does require back end
database server SQL SERVER 2008 for storing the blogs information and
current order information, gallery information, new products information for
different types of user of the system as well as various databases regarding
various insurance information.
ASSUMPTIONS: User must be trained for basic computer functionalities. User
must have the basic knowledge of English. The system must be able to
respond to database software within reasonable time.
10
CHAPTER 3
DESIGN
INTRODUCTION:
System design is a process of developing specifications for a candidate system that meet
the criteria established in the system analysis. Major steps in system design are the
preparation of the input forms and the output reports in a form applicable to the user.
System design is a solution, a “how to” approach to the creation of a new system. The
term design describes a final system and the process by which it is developed. It provides
the understanding and procedural details necessary for implementing the system
recommended in the feasibility study. Emphasis on translating the performance
requirement into design specifications. Design goes through the logical and physical
stages of development. Logical design reviews the present physical system, prepares
input and output specification, and makes edit security and control specifications. The
physical design maps out the details of the physical system. Design includes construction
of programs, Dfds, use case diagrams, er diagrams, flow charts etc.
11
constructed by using a set of symbols that do not imply a physical implementation. It has the
purpose of clarifying system requirements and identifying major transformations that will
become programs in system design. So it is the starting point of the design phase that
functionality decomposes the requirement specifications down to the lowest level of detail.
The symbols used to prepare DFD do not imply a physical implementation, a DFD can be
considered to an abstract of the logic of an information oriented or a process oriented system
flowchart. For these reasons DFDs are often referred to as logical data flow diagrams.
The four basic symbols used to construct data flow diagrams are shown below:
These are symbols that represent data flows, data sources, data transformations and data
storage. The points at which data are transformed are represented by enclosed figures,
usually circles, which are called nodes. The principle processes that take place at nodes
are:
1. combining data streams
2. splitting data streams
3. modifying data streams.
General Request
User s
Server
12
Request
Customer Database
Admin
1 LEVEL DFD FOR ADMIN
Login table
Data for
ADMIN id & password LOGIN verification
Home Current
Order
About
Order
Gallary View Blog Products
EditDelete
Content
Blog
Blog Table
Delete
Add
Content Content
Add Image
Gallary Table
Product
Add Image
14
Product Table
Order
Edit
Enter Item
name Delete
Order Table
F.K Order
Edit
Enter Item
Rate Delete
15
F.K Order Table
User
Blog
Order
Delivery
type
Name
Item Mobile No
Subject
Comment
Address
Name
16
ER DIAGRAM
Item Name
Id Item
Item rate
Order
Now
Mobile No Id
Order Name
Delievery Type
Address
User
Write blog
17
Subject Id
Blog
Comment Name
DATABASE DESIGN:
A database design is a collection of stored data organized in such a way that the data
requirements are satisfied by the database. The general objective is to make information
access easy, quick, inexpensive and flexible for the user. There are also some specific
objectives like controlled redundancy from failure, privacy, security and performance.
A collection of relative records make up a table. To design and store data to the needed
forms database tables are prepared. Two essential settings for a database are:
i. PRIMARY KEY: The field that is unique for all the record occurrences.
ii. FOREIGN KEY: The field used to set relation between tables. Normalization is a
technique to avoid redundancy in the tables.
18
GALLARY TABLE:
BLOG TABLE:
PRODUCT TABLE:
19
ORDER TABLE:
F.K ORDER:
20
LOGIN TABLE:
21
CHAPTER 4
CODING & TESTING
INTRODUCTION
The goal of the coding phase is to translate the design of the system into code in a given
programming language. For a given design, the aim of this phase is to implement the
design in the best possible manner. The coding phase affects both testing and
maintenance profoundly. A well written code reduces the testing and maintenance effort.
Since the testing and maintenance cost of software are much higher than the coding cost,
the goal of coding should be to reduce the testing and maintenance effort. Hence, during
coding the focus should be on developing programs that are easy to write. Simplicity and
clarity should be strived for, during the coding phase.
22
Some methods are static in nature that is, that is they do not involve execution of the
code. Examples of such methods are data flow analysis, code reading, code reviews,
testing (a method that involves executing the code, which is used very heavily). In the
coding phase, the entire system is not tested together. Rather, the different modules are
tested separately. This testing of modules is called "unit testing". Consequently, this
phase is often referred to as "coding and unit testing". The output of this phase is the
verified and unit tested code of the different modules.
ADMIN INTERFACE:
Home:
<div id="Menu">
<Menus:Menubarr ID="menuar" runat="server" />
</div>
<div id="Center">
<div id="AllHomeContent">Home</div>
<div>
<%------------Starting Table------------------------------------------%>
23
<table style="color:Black; border:2px solid black; padding-left:30px; margin-
left:100px;" class="Gallarytab">
<tr>
<td>Enter Content</td>
<td>
<CKEditor:CKEditorControl ID="CKEditors" runat="server" Width="150px"
Height="50px"></CKEditor:CKEditorControl>
</td>
</tr>
<tr>
<td><asp:HiddenField ID="Hid" runat="server" Value="0"/> </td>
</tr>
<tr>
<td>Submit</td>
<td>
<asp:Button ID="Btn_Submit" runat="server" Text="Submit" ValidationGroup="S1"
onclick="Btn_Submit_Click1"/>
</td>
<td><asp:Label ID="lbl" runat="server"></asp:Label></td>
</tr>
</table>
</div>
<%----------------------------Starting of Fetch
Content------------------------------%>
<div>
<asp:Repeater ID="Rpt" runat="server" onitemcommand="Rpt_ItemCommand">
<HeaderTemplate>
<table>
<tr>
<td class="Rpt1">HomeContent</td>
<td class="Rpt1">Delete?</td>
<td class="Rpt1">Edit</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td class="Rpt2"><%#Eval("HomeContent") %></td>
<td class="Rpt2"><asp:ImageButton ID="ImgDels" runat="server"
ImageUrl="~/Upload/MainImg/Del.jpeg" Width="30px" Height="30px"
CommandName="Delete" CommandArgument='<%#Eval("ID") %>' /></td>
<td class="Rpt2">
<asp:LinkButton ID="LinkButton1" runat="server" CommandName="Edit"
CommandArgument='<%#Eval("ID") %>'>Edit</asp:LinkButton> </td>
</tr>
24
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
<SeparatorTemplate>
</SeparatorTemplate>
</asp:Repeater>
</div>
</div>
</asp:Content>
ABOUT :
<div id="Center">
<div id="AllHomeContent">About Us</div>
<div>
<tr>
<td>Enter Content</td>
<td>
<CKEditor:CKEditorControl ID="CKEditors" runat="server" Width="150px"
Height="50px"></CKEditor:CKEditorControl>
</td>
</tr>
25
<tr>
<td><asp:HiddenField ID="Hid" runat="server" Value="0"/> </td>
</tr>
<tr>
<td>Submit</td>
<td>
<asp:Button ID="Btn_Submit" runat="server" Text="Submit"
ValidationGroup="S1"
onclick="Btn_Submit_Click1"/>
</td>
<td><asp:Label ID="lbl" runat="server"></asp:Label></td>
</tr>
</table>
</div>
<%--------------------------Ending Instion
Table---------------------------------------------------------------%>
<%---------------------------Starting Fetch
Rpt-------------------------------------------------------------------------------
%>
<div>
<asp:Repeater ID="Rpt" runat="server" onitemcommand="Rpt_ItemCommand">
<HeaderTemplate>
<table>
<tr>
<td class="Rpt1">HomeContent</td>
<td class="Rpt1">Delete?</td>
<td class="Rpt1">Edit</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td class="Rpt2"><%#Eval("AboutContent") %></td>
<td class="Rpt2"><asp:ImageButton ID="ImgDels"
runat="server" ImageUrl="~/Upload/MainImg/Del.jpeg" Width="30px" Height="30px"
CommandName="Delete" CommandArgument='<%#Eval("ID") %>'
/></td>
<td class="Rpt2">
<asp:LinkButton ID="LinkButton1" runat="server"
CommandName="Edit"
CommandArgument='<%#Eval("ID") %>'>Edit</asp:LinkButton>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
</div>
<%----------------------------------------Ending Fetch
Rpt------------------------------------------------------------------------------
%>
</div>
26
</asp:Content>
GALLERY:
<div id="Menu">
<Menubar:Menu ID="Menus" runat="server" />
</div>
<div id="Center">
<div id="AllHomeContent">Gallary</div>
<div>
<table style="color:Black; border:2px solid black; padding-left:30px; margin-
left:100px;" class="Gallarytab">
<tr>
<td>Enter Image</td>
<td><asp:FileUpload ID="FileUpload1" runat="server" /></td>
</tr>
<tr>
<td>Enter Name</td>
<td><asp:TextBox ID="TxtName" runat="server"></asp:TextBox></td>
<td><asp:HiddenField ID="Hid" runat="server" Value="0"/></td>
27
</tr>
<tr>
<td>save</td>
<td><asp:Button ID="BtnSave" runat="server" Width="50px" Height="20px"
Text="Save" onclick="BtnSave_Click"/></td>
<td><asp:Label ID="lbl" runat="server"></asp:Label></td>
</tr>
</table>
</div>
<%--//--------------------Fetch
Table--------------------------------------------------------%>
<div>
<td class="Rpt1">Name</td>
<td class="Rpt1">Img</td>
<td class="Rpt1">Delete?</td>
<td class="Rpt1">Edit</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td class="Rpt2"><%#Eval("Name") %></td>
<td class="Rpt2">
<img src='<%#getimagepath(Eval("ImageGallery").ToString())
%>' width="100px" height="100px" alt="" />
</td>
<td class="Rpt2">
<%--<asp:LinkButton ID="LinkButton1" runat="server"
CommandName="Edit"
CommandArgument='<%#Eval("ID") %>'>Edit</asp:LinkButton>
--%>
<asp:LinkButton ID="LinkButton1" runat="server"
CommandName="Edit" CommandArgument='<%#Eval("ID")
%>'>Edit</asp:LinkButton>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
28
</asp:Repeater>
</div>
</div>
</asp:Content>
BLOG:
<div id="Menu">
<Menus:Menubarr ID="menuar" runat="server" />
</div>
<div id="Center">
<div id="AllHomeContent">Blog</div>
<div>
<asp:Repeater ID="Rpt" runat="server" onitemcommand="Rpt_ItemCommand">
<HeaderTemplate>
<table>
29
<tr>
<td class="Rpt1">Name</td>
<td class="Rpt1">Subject</td>
<td class="Rpt1">Comment</td>
<td class="Rpt1">Delete</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td class="Rpt2"><%#Eval("Name") %></td>
<td class="Rpt2"><%#Eval("Subject") %></td>
<td class="Rpt2"><%#Eval("Comment") %></td>
<td class="Rpt2"><asp:ImageButton ID="ImgDels"
runat="server" ImageUrl="~/Upload/MainImg/Del.jpeg" Width="30px" Height="30px"
CommandName="Delete" CommandArgument='<%#Eval("ID") %>'
/></td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
</div>
</div>
</asp:Content>
PRODUCT:
30
</tr>
<tr>
<td>Enter Product Name</td>
<td><asp:TextBox ID="TxtName" runat="server"></asp:TextBox></td>
<td><asp:HiddenField ID="Hid" runat="server" Value="0"/></td>
</tr>
<tr>
<td>Enter Product Cost</td>
<td><asp:TextBox ID="TxtName2" runat="server"></asp:TextBox></td>
<%--<td><asp:HiddenField ID="Hid" runat="server" Value="0"/></td>--%>
</tr>
<tr>
<td>save</td>
<td><asp:Button ID="BtnSave" runat="server" Width="50px" Height="20px"
Text="Save" onclick="BtnSave_Click" /></td>
<td><asp:Label ID="lbl" runat="server"></asp:Label></td>
</tr>
</table>
</div>
<%--//--------------------Fetch
Table--------------------------------------------------------%>
<div>
<tr>
<td class="Rpt1">ProductImage</td>
<td class="Rpt1">ProductName</td>
<td class="Rpt1">ProductCost</td>
<td class="Rpt1">Delete?</td>
<td class="Rpt1">Edit</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td class="Rpt2">
<img src='<%#getimagepath(Eval("ProductImage").ToString())
%>' width="100px" height="100px" alt="" />
</td>
<td class="Rpt2"><%#Eval("ProductName") %></td>
<td class="Rpt2"><%#Eval("ProductCost") %></td>
31
<td class="Rpt2">
<asp:LinkButton ID="LinkButton1" runat="server"
CommandName="Edit" CommandArgument='<%#Eval("ID")
%>'>Edit</asp:LinkButton>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
</div>
</div>
</asp:Content>
ORDER:
32
<table style="color:Black; padding-left:30px; margin-left:300px;">
<tr>
<td>EnterItemName</td>
<td><asp:TextBox ID="txtName" runat="server"></asp:TextBox></td>
<td><asp:HiddenField ID="Hid" runat="server" Value="0"/></td>
</tr>
<tr>
<td>Submit</td>
<td>
<asp:Button ID="Btn_Submit" runat="server" Text="Submit"
ValidationGroup="S1"
onclick="Btn_Submit_Click" />
</td>
<td><asp:Label ID="lbl" runat="server"></asp:Label></td>
</tr>
</table>
</div>
<div>
<asp:Repeater ID="Rpt" runat="server" onitemcommand="Rpt_ItemCommand">
<HeaderTemplate>
<table>
<tr>
<td class="Rpt1">ItemName</td>
<td class="Rpt1">Delete</td>
<td class="Rpt1">Edit</td>
<td class="Rpt1">Add More</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td class="Rpt2"><%#Eval("ItemName") %></td>
<td class="Rpt2"><asp:ImageButton ID="ImgDels"
runat="server" ImageUrl="~/Upload/MainImg/Del.jpeg" Width="30px" Height="30px"
CommandName="Delete" CommandArgument='<
%#Eval("ID") %>' /></td>
<td class="Rpt2">
<asp:LinkButton ID="LinkButton1" runat="server"
CommandName="Edit" CommandArgument='<%#Eval("ID")
%>'>Edit</asp:LinkButton>
</td>
--%> </tr>
</ItemTemplate>
<FooterTemplate>
</table>
33
</FooterTemplate>
</asp:Repeater>
</div>
</div>
</asp:Content>
F.K ORDER:
<div id="Menu">
<Menubar:Menu ID="Menus" runat="server" />
</div>
<div id="Center">
34
<div id="AllHomeContent">-:Rate:Order:-</div>
<div>
<table style="color:Black; padding-left:30px; margin-left:300px;">
<tr>
<td>
Select Item:
</td>
<td>
<asp:DropDownList ID="DDLItem" runat="server" Height="16px"
Width="120px" AutoPostBack="true">
</asp:DropDownList>
</td>
</tr>
<tr>
<td>Enter Item Rate</td>
<td><asp:TextBox ID="txtRate" runat="server"></asp:TextBox> </td>
<td><asp:HiddenField ID="Hid" runat="server" Value="0" /></td>
</tr>
<tr>
<td>Sumbit</td>
<td><asp:Button ID="Btn_Save" runat="server" Text="Save"
onclick="Btn_Save_Click"/></td>
</tr>
<tr>
<td><asp:Label ID="lbl" runat="server"></asp:Label></td>
</tr>
</table>
</div>
<div>
<asp:Repeater ID="Rpt" runat="server" onitemcommand="Rpt_ItemCommand">
<HeaderTemplate>
<table>
<tr>
<td class="Rpt1">ItemName</td>
<td class="Rpt1">ItemRate</td>
<td class="Rpt1">Delete</td>
<td class="Rpt1">Edit</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td class="Rpt2"><%#Eval("ItemName") %></td>
<td class="Rpt2"><%#Eval("ItemRate") %></td>
<td class="Rpt2"><asp:ImageButton ID="ImgDels"
runat="server" ImageUrl="~/Upload/MainImg/Del.jpeg" Width="30px" Height="30px"
CommandName="Delete"
CommandArgument='<%#Eval("ID") %>' /></td>
35
<td class="Rpt2">
<asp:LinkButton ID="LinkButton1" runat="server"
CommandName="Edit" CommandArgument='<%#Eval("ID")
%>'>Edit</asp:LinkButton>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
</div>
</div>
</asp:Content>
CURRENT ORDER:
36
<HeaderTemplate>
<table>
<tr>
<td class="Rpt1">Item Name</td>
<td class="Rpt1">Item Rate</td>
<td class="Rpt1">Name</td>
<td class="Rpt1">Address</td>
<td class="Rpt1">Mobile_No</td>
<td class="Rpt1">Delivery_Type</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td class="Rpt2"><%#Eval("ItemName") %></td>
<td class="Rpt2"><%#Eval("ItemRate") %></td>
<td class="Rpt2"><%#Eval("Name") %></td>
<td class="Rpt2"><%#Eval("Address") %></td>
<td class="Rpt2"><%#Eval("Mobile_No") %></td>
<td class="Rpt2"><%#Eval("Delivery_Type") %></td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
</div>
</asp:Content>
FRONT END:
HOME:
37
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<div id="Imgbar">
<Jquer:Jquery ID="Jquer" runat="server" />
</div>
<div id="Menu">
<Mens:Menb ID="Menus" runat="server" />
</div>
<div id="Center">
<%------------------------Sidebar Images
Start------------------------------------------%>
<div id="CenterHome">
<div id="CenterHome2">
<marquee scrollamount="5" direction ="up" height="500px"
onmouseover="stop();" onmouseout="start();">
<img src="Upload/Home/1.jpg" width="200px" height="100" alt=""
class="imgs" />
<img src="Upload/Home/2.jpg" width="200px" height="100" alt=""
class="imgs"/>
<img src="Upload/Home/3.jpg" width="200px" height="100" alt=""
class="imgs"/>
<img src="Upload/Home/4.jpg" width="200px" height="100" alt=""
class="imgs"/>
</marquee>
</div>
</div>
<%-------------------Ending Images
Marquee----------------------------------------------------------%>
<div id="CenterHomeMid">
38
</table>
</FooterTemplate>
</asp:Repeater>
</div>
<%---------------------Ending repeater control in Home
Content-----------------------------------------------------%>
<%---------------------Starting Home
Images--------------------------------------------------%>
<div id="HomeImages">
<div class="HomeImg"><img src="Upload/MainImg/thali.jpg" width="150px"
height="100px" alt="" /></div>
<div class="HomeImg1"><img src="Upload/MainImg/bbq-shrimp-and-grits.jpg"
width="150px" height="100px" alt="" /></div>
<div class="HomeImg1"><img src="Upload/MainImg/pizza.jpg" width="150px"
height="100px" alt=""/></div>
<div class="HomeImg1"><img src="Upload/MainImg/14.jpg" width="150px"
height="100px" alt="" /></div>
</div>
</div>
<%---------------------Ending
Images------------------------------------------------------------%>
</div>
</asp:Content>
ABOUT:
<div id="Imgbar">
<Jquer:Jquery ID="Jquer" runat="server" />
39
</div>
<div id="Menu">
<Mens:Menb ID="Menus" runat="server" />
</div>
<div id="Center">
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
<asp:Label ID="lbl" runat="server"></asp:Label>
</div>
<div id="ImageAbout"><img src="Upload/MainImg/AboutUs2.jpg" alt="" /></div>
</div>
</asp:Content>
GALLERY:
40
<div id="Menu">
<Meus:Menus ID="Mes" runat="server" />
</div>
<div id="Center">
<div>
<asp:DataList ID="Dlt" runat="server" CellSpacing="1"
RepeatColumns="6" RepeatDirection="Horizontal" ShowFooter="true">
<HeaderTemplate>
<table>
</HeaderTemplate>
<ItemTemplate>
</ItemTemplate>
<AlternatingItemTemplate>
</AlternatingItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:DataList>
</div>
41
</div>
</div>
</asp:Content>
BLOG:
42
</div>
<div id="Menu">
<Mens:Menb ID="Menus" runat="server" />
</div>
<div id="Center">
<%------------------------Sidebar Images
Start------------------------------------------%>
<div id="BlogHome">
<div id="CenterBlog2">
<marquee scrollamount="5" direction ="up" height="500px"
onmouseover="stop();" onmouseout="start();">
<img src="Upload/Home/1.jpg" width="200px" height="100" alt=""
class="imgs" />
<img src="Upload/Home/2.jpg" width="200px" height="100" alt=""
class="imgs"/>
<img src="Upload/Home/3.jpg" width="200px" height="100" alt=""
class="imgs"/>
<img src="Upload/Home/4.jpg" width="200px" height="100" alt=""
class="imgs"/>
</marquee>
</div>
</div>
<%-------------------Ending Images
Marquee----------------------------------------------------------%>
<div id="BlogHomeMid">
<table style="color:Black; padding-left:30px; margin-left:200px; margin-
top:10px;" class="Gallarytab">
<tr>
<td>Enter Name</td>
<td><asp:TextBox ID="txtName" runat="server"></asp:TextBox></td>
<td><asp:RequiredFieldValidator ID="Rfv1" runat="server"
ControlToValidate="txtName" ErrorMessage="*Required" ValidationGroup="B1"
ForeColor="Red">
</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>Enter Subject</td>
<td><asp:TextBox ID="txtSub" runat="server"></asp:TextBox></td>
<td><asp:RequiredFieldValidator ID="Rfv2" runat="server"
43
ControlToValidate="txtSub" ErrorMessage="*Required" ValidationGroup="B1"
ForeColor="Red">
</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>Enter Comment</td>
<td><asp:TextBox ID="txtComment" runat="server"
TextMode="MultiLine"></asp:TextBox></td>
<td><asp:RequiredFieldValidator ID="Rfv3" runat="server"
ControlToValidate="txtComment" ErrorMessage="*Required" ValidationGroup="B1"
ForeColor="Red">
</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>Save</td>
<td><asp:Button ID="Btn_Save" runat="server" Text="Submit"
ValidationGroup="B1"
onclick="Btn_Save_Click"/></td>
<td><asp:Label ID="lbl" runat="server"></asp:Label> </td>
</tr>
</table>
</div>
<%---------------------Ending Home
Content-----------------------------------------------------%>
</div>
</div>
</asp:Content>
PRODUCT:
44
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<div id="Imgbar"><JqueryPics:Jquerys ID="Jqueryr" runat="server" /></div>
<div id="Menu">
<Meus:Menus ID="Mes" runat="server" />
</div>
<div id="Center">
<%--------------------------------Starting on the Gallary
Images----------------------------------------------%>
<div id="Product1">
<div id="AllProduct"><h1>:All-Products:</h1></div>
<div>
<asp:DataList ID="Dlt" runat="server" CellSpacing="1"
RepeatColumns="6" RepeatDirection="Horizontal" ShowFooter="true">
<HeaderTemplate>
<table>
</HeaderTemplate>
<ItemTemplate>
</ItemTemplate>
<AlternatingItemTemplate>
</AlternatingItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:DataList>
45
<asp:Label ID="lbl" runat="server"></asp:Label>
</div>
</div>
</div>
</asp:Content>
ORDER NOW:
46
<%@ Register Src="~/WebUserControl/WebUserControl2.ascx" TagName="Menus"
TagPrefix="Meus" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<style type="text/css">
.style1
{
height: 50px;
}
.style2
{
height: 49px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="Server">
<div id="Imgbar">
<JqueryPics:Jquerys ID="Jqueryr" runat="server" />
</div>
<div id="Menu">
<Meus:Menus ID="Mes" runat="server" />
</div>
<div id="Center">
<div id="CenterOrder"><img src="Upload/MainImg/orderpic.jpg" width="300px"
height="500px" alt="" /></div>
<div id="Centerorder">
<tr>
<td class="style1">
Enter Price:
</td>
<td class="style1">
<asp:DropDownList ID="DDLItemRate" runat="server"
AutoPostBack="True">
</asp:DropDownList>
</td>
47
<td class="style1"><asp:RequiredFieldValidator ID="Rfv1"
runat="server"
ControlToValidate="DDLItemRate" ErrorMessage="Please Select
The DropDown" ValidationGroup="O1">
</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td class="style1">Enter Name</td>
<td class="style1"><asp:TextBox ID="txtName"
runat="server"></asp:TextBox></td>
<td class="style1"><asp:RequiredFieldValidator ID="Rqf2"
runat="server"
ControlToValidate="DDLItemRate" ErrorMessage="Please Fill
Name" ValidationGroup="O1">
</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td class="style1">Enter Address</td>
<td class="style1"><asp:TextBox ID="txtAdd"
runat="server"></asp:TextBox></td>
<td class="style1"><asp:RequiredFieldValidator ID="Rqf3"
runat="server"
ControlToValidate="DDLItemRate" ErrorMessage="Please Fill
Address" ValidationGroup="O1">
</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td class="style1">Enter Mobile</td>
<td class="style1"><asp:TextBox ID="txtMobile"
runat="server"></asp:TextBox></td>
<td class="style1"><asp:RequiredFieldValidator ID="Rqfv4"
runat="server"
ControlToValidate="DDLItemRate" ErrorMessage="Please Fill
Mobile No" ValidationGroup="O1">
</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td class="style2">Enter Delievery_Type</td>
<td class="style2"><asp:TextBox ID="txtDel"
runat="server"></asp:TextBox></td>
<td class="style2"><asp:RequiredFieldValidator ID="Rqfv"
runat="server"
ControlToValidate="DDLItemRate" ErrorMessage="Please Fill
Delivery Type" ValidationGroup="O1">
</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>
48
<asp:Button ID="btnSave" runat="server" Text="Order"
onclick="btnSave_Click"
Width="66px" />
</td>
</tr>
</table>
</div>
</div>
</asp:Content>
LOGIN:
49
<%@ Page Title="" Language="C#" MasterPageFile="~/Master_Pages/Common.master"
AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>
<%@ Register Src="~/WebUserControl/WebUserControl3.ascx" TagName="Jquerys"
TagPrefix="JqueryPics" %>
<div id="Menu">
<Meus:Menus ID="Mes" runat="server" />
</div>
<div id="Center">
<div id="Login">
<tr>
<td>Password</td>
<td><asp:TextBox ID="txtPass" runat="server"
TextMode="Password"></asp:TextBox> </td>
<td><asp:RequiredFieldValidator ID="Rfc" runat="server"
ControlToValidate="txtPass" ErrorMessage="*Required" ValidationGroup="U1"
ForeColor="Red"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>Save</td>
<td><asp:Button ID="Btn_Save" runat="server" Text="Save"
ValidationGroup="U1"
onclick="Btn_Save_Click1"/></td>
</tr>
<tr>
<td><asp:Label ID="lbl" runat="server"></asp:Label></td>
</tr>
</table>
</div>
</div>
</asp:Content>
CSS(CASCADING STYLE SHEETS):
50
It defines how to style sheets.There are three types of the style sheets .
1. Inline
2. Internal
3. External
We have used external style sheets because it is ideal when the style is to be appled on
many sheets. It can change the look of the entire websiteby changinh one file. Each page
must link to the style sheet using <link> tag.
ADMIN CSS:
<div id="Menu">
<Meus:Menus ID="Mes" runat="server" />
</div>
<div id="Center">
<div id="Login">
<tr>
<td>Password</td>
<td><asp:TextBox ID="txtPass" runat="server"
TextMode="Password"></asp:TextBox> </td>
<td><asp:RequiredFieldValidator ID="Rfc" runat="server"
ControlToValidate="txtPass" ErrorMessage="*Required" ValidationGroup="U1"
ForeColor="Red"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>Save</td>
<td><asp:Button ID="Btn_Save" runat="server" Text="Save"
ValidationGroup="U1"
onclick="Btn_Save_Click1"/></td>
</tr>
51
<tr>
<td><asp:Label ID="lbl" runat="server"></asp:Label></td>
</tr>
</table>
</div>
</div>
</asp:Content>
52
body
{
background-image:url('../Upload/MainImg/B_Main.jpeg');
background-attachment:fixed;
}
*
{
margin:0px 0px 4px 0px;
padding:0px;
}
#Main
{
width:1000px;
height:auto;
background-color:Transparent;
margin:auto;
}
#Header
{
width:1000px;
height:125px;
background-color:White;
}
#Head2
{
width:700px;
height:125px;
background-color:White;
float:left;
text-align:center;
color:#6F4E37;
#Head3
{
width:300px;
height:125px;
background-color:White;
float:left;
padding-top:20px;
font-size:20px;
text-align:center;
}
#Imgbar
{
width:1000px;
height:300px;
background-color:White;
}
#Menu
53
{
width:1000px;
height:50px;
background-color:#6F4E37;
}
#Centerbar
{
width:1000px;
height:auto;
background-color:White;
}
#Footer
{
width:1000px;
height:25px;
background-color:#6F4E37;
text-align:justify;
color:White;
font-size:15px;
float:left;
text-align:center;
}
#Center
{
width:1000px;
height:auto;
background-color:White;
float:left;
}
#CenterOrder
{
width:300px;
height:500px;
background-color:Blue;
float:left;
}
#Centerorder
{
width:700px;
height:500px;
background-color:white;
float:left
}
#CenterHome
{
width:250px;
height:auto;
float:left;
}
#CenterHome1
54
{
width:750px;
height:auto;
float:left;
}
#CenterHomeMid
{
width:700px;
height:auto;
float:left;
margin-left:20px;
margin-top:20px;
}
#CenterBlogMid
{
width:700px;
height:350px;
float:left;
margin-left:20px;
margin-top:20px;
#CenterHome2
{
width:230px;
height:auto;
margin-left:8px;
}
#CenterBlog2
{
width:230px;
height:500px;
margin-left:8px;
}
.imgs
{
width:200px;
height:100px;
margin-left:13px;
}
#BlogImages
{
width:750px;
height:120px;
background-color:yellow;
float:left;
margin-top:3px;
55
}
#HomeImages
{
width:750px;
height:120px;
background-color:white;
float:left;
margin-top:3px;
}
.HomeImg
{
width:150px;
height:100px;
background-color:Olive;
margin-top:5px;
margin-left:17px;
float:left;
}
.HomeImg1
{
width:150px;
height:100px;
background-color:Olive;
margin-top:5px;
margin-left:35px;
float:left;
}
#Abouts
{
width:900px;
height:auto;
background-color:White;
margin:auto;
text-align:justify;
color:Black;
}
#Aboutimg
{
width:250px;
height:350px;
background-color:white;
float:left;
margin-left:5px;
}
#AboutContent
{
width:450px;
height:auto;
margin-left:20px;
background-color:white;
float:left;
}
#ImageAbout
{
width:250px;
56
height:350px;
background-color:white;
float:left;
margin-left:20px;
#Gallary1
{
width:900px;
height:auto;
background-color:White;
margin:auto;
}
#Product1
{
width:900px;
height:auto;
background-color:White;
margin:auto;
}
#AllGallary
{
width:900px;
height:50px;
background-color:White;
color:Black;
text-align:center;
}
#AllProduct
{
width:900px;
height:50px;
background-color:White;
color:Black;
text-align:center;
}
#CenterBlog
{
width:1000px;
height:500px;
background-color:White;
float:left;
}
#CenterBlog1
{
width:750px;
height:500px;
background-color:White;
float:left;
}
#BlogHome
57
{
width:250px;
height:500px;
background-color:White;
float:left;
}
#AllBlog
{
width:750px;
height:50px;
background-color:White;
text-align:center;
color:Black;
}
#CenterContact
{
width:400px;
height:500px;
background-color:White;
float:left;
}
#CenterContact1
{
width:600px;
height:500px;
background-color:White;
float:left;
}
#Ctn
{
width:600px;
height:50px;
background-color:White;
text-align:center;
color:Black;
font-size:20px;
}
#Login
{
width:500px;
height:500px;
background-color:white;
margin:auto;
}
.logindec
{
text-decoration:none;
color:Black;
}
.list
{
display:block;
color:White;
padding-left:20px;
58
list-style-type:none;
width:160px;
margin-left:10px;
padding-top:10px;
float:left;
text-decoration:none;
}
.List1
{
text-decoration:none;
color:White;
}
.Gallarytab
{
text-align:justify;
}
59
DAL(DATA ACCESS LAYER);
For example, the DAL might return a reference to an object (in terms of object-oriented
programming) complete with its attributes instead of a row of fields from a database
table. This allows the client (or user) modules to be created with a higher level of
abstraction. This kind of model could be implemented by creating a class of data access
methods that directly reference a corresponding set of database stored procedures.
Another implementation could potentially retrieve or write records to or from a file
system. The DAL hides this complexity of the underlying data store from the external
world.
For example, instead of using commands such as insert, delete, and update to access a
specific table in a database, a class and a few stored procedures could be created in the
database. The procedures would be called from a method inside the class, which would
return an object containing the requested values. Or, the insert, delete and update
commands could be executed within simple functions like register user or login user
stored within the data access layer.
Applications using a data access layer can be either database server dependent or
independent. If the data access layer supports multiple database types, the application
becomes able to use whatever databases the DAL can talk to. In either circumstance,
having a data access layer provides a centralized location for all calls into the database,
and thus makes it easier to port the application to other database systems (assuming that
100% of the database interaction is done in the DAL for a given application).
60
DAL CODING:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Data;
/// <summary>
/// Summary description for Dal
/// </summary>
public class Dal
{
public Dal()
{
//
// TODO: Add constructor logic here
//
}
/// <summary>
/// bill order front
/// </summary>
public int P_int_FK_ID
61
{
get
{
return int_FK_ID;
}
set
{
int_FK_ID = value;
}
}
public string P_strRate
{
get
{
return strRate;
}
set
{
strRate = value;
}
}
public string P_strItemName
{
get
{
return strItemName;
}
set
{
strItemName = value;
}
}
set
{
Mobile_No = value;
}
}
set
{
62
strCustomer_Name = value;
}
}
set
{
strAddress = value;
}
}
set
{
strDelivery_Type = value;
}
}
/// <summary>
/// ending of bill order front
/// </summary>
public string P_StrUserName
{
get
{
return StrUserName;
}
set
{
StrUserName = value;
}
}
set
{
StrPassword = value;
63
}
}
set
{
StrContent = value;
}
}
set
{
StrIMG = value;
}
}
64
}
set
{
StrInsertContact = value;
}
}
//----------Property of product
-------------------------------------------------------------
65
}
set
{
StrProductImage= value;
}
}
set
{
StrProductName = value;
}
}
set
{
StrProductCost = value;
}
}
/// <summary>
/// /////////Blogs
/// </summary>
set
{
StrNames = value;
66
}
set
{
StrSubject = value;
}
}
set
{
StrComment = value;
}
}
set
{
StrComment = value;
}
}
//////////////////////Ending
Blogss/////////////////////////////////////////////////////////
67
{
string StrCon = Dal_Lib.GetConnection();
SqlConnection con = new SqlConnection(StrCon);
con.Open();
SqlCommand cmd = new SqlCommand("Mst_HomeCont", con);
SqlParameter param1 = new SqlParameter("@HomeContent", SqlDbType.NChar);
SqlParameter param2 = new SqlParameter("@ID", SqlDbType.Int);
param1.Value = c.P_StrContent;
param2.Value = c.P_IntID;
cmd.Parameters.Add(param1);
cmd.Parameters.Add(param2);
cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
}
//----------------Starting of Delete
HomeContent------------------------------------
public void Del_Content(Dal c)
{
string StrCon = Dal_Lib.GetConnection();
SqlConnection con = new SqlConnection(StrCon);
con.Open();
SqlCommand cmd = new SqlCommand("Mst_Del", con);
SqlParameter param1 = new SqlParameter("@ID", SqlDbType.NChar);
param1.Value = c.P_IntID;
cmd.Parameters.Add(param1);
cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
}
68
param1.Value = C.P_IntID;
cmd.Parameters.Add(param1);
cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
SqlDataAdapter sd = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
sd.Fill(ds);
return ds;
}
param1.Value=c.P_StrAboutContent;
param2.Value = c.P_IntID;
cmd.Parameters.Add(param1);
cmd.Parameters.Add(param2);
cmd.CommandType= CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
69
string StrCon = Dal_Lib.GetConnection();
SqlConnection con = new SqlConnection(StrCon);
con.Open();
SqlCommand cmd = new SqlCommand("Mst_AboutDel", con);
SqlParameter param1 = new SqlParameter("@ID", SqlDbType.NChar);
param1.Value = c.P_IntID;
cmd.Parameters.Add(param1);
cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
param1.Value = c.P_IntID;
cmd.Parameters.Add(param1);
cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
cmd.Parameters.Add(param1);
cmd.Parameters.Add(param2);
70
cmd.Parameters.Add(param3);
cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
}
//--------------------Fetch Image
Gallery-----------------------------------------------------
param1.Value = c.P_IntID;
cmd.Parameters.Add(param1);
cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
71
}
param1.Value = c.P_StrInsertContact;
cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
param1.Value = c.P_StrProductImage;
param2.Value = c.P_StrProductName;
param3.Value = c.P_StrProductCost;
param4.Value = c.P_IntID;
cmd.Parameters.Add(param1);
cmd.Parameters.Add(param2);
cmd.Parameters.Add(param3);
cmd.Parameters.Add(param4);
cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
/// <summary>
/// Fetch Product
/// </summary>
72
/// <param name="c"></param>
/// <returns></returns>
//-------------Delete Product-------------------------------------
//---------Edit Product------------------------------------
param1.Value = c.P_IntID;
cmd.Parameters.Add(param1);
cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
73
//////////////////////////////////////////////////////////////////////////////
//
param1.Value = c.P_StrBlogNames;
param2.Value = c.P_StrSubject;
param3.Value = c.P_StrComments;
cmd.Parameters.Add(param1);
cmd.Parameters.Add(param2);
cmd.Parameters.Add(param3);
cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
}
param1.Value = c.P_StrUserName;
param2.Value = c.P_StrPassword;
cmd.Parameters.Add(param1);
cmd.Parameters.Add(param2);
74
cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
//-----------------------------Delete blog
public void DelBlog(Dal c)
{
string strcon = Dal_Lib.GetConnection();
SqlConnection con = new SqlConnection(strcon);
con.Open();
SqlCommand cmd = new SqlCommand("Mst_DelBlog", con);
SqlParameter param1 = new SqlParameter("@ID", SqlDbType.NChar);
param1.Value = c.P_IntID;
cmd.Parameters.Add(param1);
cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
}
cmd.Parameters.Add(param1);
cmd.Parameters.Add(param2);
cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
}
75
cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
SqlDataAdapter ad = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
ad.Fill (ds);
return ds;
}
//////////////////////////////////////////////////////////////////////////////
///////////////
/// <summary>
/// //////////////////////////FK
_Order //////////////////////////////////////////////////
/// </summary>
/// <param name="c"></param>
76
SqlConnection con = new SqlConnection(StrCon);
con.Open();
SqlCommand cmd = new SqlCommand("InsertTxn_Ord", con);
SqlParameter param1 = new SqlParameter("@FK_ID", SqlDbType.Int);
SqlParameter param2 = new SqlParameter("@ItemName", SqlDbType.VarChar,
100);
SqlParameter param3 = new SqlParameter("@ItemRate", SqlDbType.VarChar,
100);
SqlParameter param4 = new SqlParameter("@ID", SqlDbType.Int);
param1.Value = c.P_int_FK_ID;
param2.Value = c.P_strItemName;
param3.Value = c.P_strRate;
param4.Value = c.P_IntID;
cmd.Parameters.Add(param1);
cmd.Parameters.Add(param2);
cmd.Parameters.Add(param3);
cmd.Parameters.Add(param4);
cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
}
77
con.Open();
SqlCommand cmd = new SqlCommand("Txn_Edit_Order", con);
SqlParameter param1 = new SqlParameter("@FK_ID", SqlDbType.Int);
param1.Value = c.P_int_FK_ID;
cmd.Parameters.Add(param1);
cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
SqlDataAdapter sd = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
sd.Fill(ds);
return ds;
}
/// <summary>
/// ///////////////Ending FK_Order Information///////////////////////////
/// </summary>
/// <param name="c"></param>
/////////////////////////////////////////////////
/// <summary>
/// ////////Insertion Front Code Billing Information///
/// </summary>
/// <param name="c"></param>
78
SqlParameter param2 = new SqlParameter("@ItemName", SqlDbType.VarChar,
100);
SqlParameter param3 = new SqlParameter("@ItemRate", SqlDbType.VarChar,
100);
SqlParameter param4= new SqlParameter("@Name", SqlDbType.VarChar, 50);
SqlParameter param5 = new SqlParameter("@Address", SqlDbType.VarChar, 50);
SqlParameter param6= new SqlParameter("@Mobile_No", SqlDbType.VarChar,50);
SqlParameter param7= new SqlParameter("@Delivery_Type", SqlDbType.VarChar,
50);
param2.Value = c.P_strItemName;
param3.Value = c.P_strRate;
param4.Value = c.P_str_Cus_Name;
param5.Value = c.P_strAddress;
param6.Value = c.P_Mobile_No;
param7.Value = c.P_str_Delivery_Type;
cmd.Parameters.Add(param2);
cmd.Parameters.Add(param3);
cmd.Parameters.Add(param4);
cmd.Parameters.Add(param5);
cmd.Parameters.Add(param6);
cmd.Parameters.Add(param7);
cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
}
79
DAL Lib CODING:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;
/// <summary>
/// Summary description for Dal_Lib
/// </summary>
public class Dal_Lib
{
public Dal_Lib()
{
//
// TODO: Add constructor logic here
//
}
80
TESTING:
UNIT TESTING: The primary goal of unit testing is to take the smallest piece of testable
software in the application, isolate it from the remainder of the code, and determine
whether it behaves exactly as you expect. Each unit is tested separately before integrating
them into modules to test the interfaces between modules. Unit testing has proven its
value in that a large percentage of defects are identified during its use.
81
Unit testing is a software verification and validation method where the programmer
gains confidence that individual units of source code are fit for use. A unit is the smallest
testable part of an application. In procedural programming a unit may be an individual
program, function, procedure, etc., while in object-oriented programming, the smallest
unit is a class, which may belong to a base/super class, abstract class or derived/child
class.
Ideally, each test case is independent from the others: substitutes like method stubs, mock
objects, fakes and test harnesses can be used to assist testing a module in isolation. Unit
tests are typically written and run by software developers to ensure that code meets its
design and behaves as intended. Its implementation can vary from being very manual
(pencil and paper) to being formalized as part of build automation.
There are two major ways of carrying out an integration test, called the bottom-up
method and the top-down method. Bottom-up integration testing begins with unit testing,
followed by tests of progressively higher-level combinations of units called modules or
builds. In top-down integration testing, the highest-level modules are tested first and
progressively lower-level modules are tested after that. In a comprehensive software
development environment, bottom-up testing is usually done first, followed by top-down
testing.
VALIDATION TESTING : At the validation level, testing focuses on user visible actions
and user recognizable output from the system. Validations testing is said to be successful
82
when software functions in a manner that can be reasonably expected by the customer.
Two types of validation testing :
BETA TESTING: IT comes after alpha testing. Versions of the software, known as beta
version, are released to a limited audience outside of the programming team. The
software is released to groups of people so that further testing can ensure the product has
few faults or bugs. Sometimes, beta versions are made available to the open public to
increase the feedback field to a maximal number of future users.
GRAY BOX TESTING: Grey box testing is the combination of black box and white box
testing. Intention of this testing is to find out defects related to bad design or bad
implementation of the system. It is used for web application.
83
CHAPTER-5
MAINTENANCE
Software maintenance in software engineering is the modification of a software product
after delivery to correct faults, to improve performance or other attributes.
Software maintenance and evolution of systems was first addressed by Meir M. Lehman
in 1969. Over a period of twenty years, his research led to the formulation of Lehman's
Laws (Lehman 1997). Key findings of his research include that maintenance is really
evolutionary development and that maintenance decisions are aided by understanding
what happens to systems (and software) over time. Lehman demonstrated that systems
continue to evolve over time. As they evolve, they grow more complex unless some
action such as code refactoring is taken to reduce the complexity.
The key software maintenance issues are both managerial and technical. Key
management issues are: alignment with customer priorities, staffing, which organization
84
does maintenance, estimating costs. Key technical issues are: limited understanding,
impact analysis, testing, and maintainability measurement.
PLANNING
PROCESS:
85
preparation for handling problems identified during development; and the follow-
up on product configuration management.
2. The problem and modification analysis process, which is executed once the
application has become the responsibility of the maintenance group. The
maintenance programmer must analyze each request, confirm it (by reproducing
the situation) and check its validity, investigate it and propose a solution,
document the request and the solution proposal, and finally, obtain all the required
authorizations to apply the modifications.
5. The migration process (platform migration, for example) is exceptional, and is not
part of daily maintenance tasks. If the software must be ported to another platform
without any change in functionality, this process will be used and a maintenance
project team is likely to be assigned to this task.
6. Finally, the last maintenance process, also an event which does not occur on a
daily basis, is the retirement of a piece of software.
CATEGORIES:
86
Perfective maintenance: Modification of a software product after delivery to
improve performance or maintainability.
CHAPTER: 6
FUTURE SCOPE
The project made here is just to ensure that this product could be valid in today real
challenging world. Here all the facilities are made and tested. Currently the system works
for limited number of administrators to work. In near future it will be extended for many
types of insurance policies so that efficiency can be improved.
87