Beruflich Dokumente
Kultur Dokumente
E-CARE
Submitted To:
Submitted By:
Mr.Sachin Jain
Suhani Gurung
Kritika Bohra
Megha Thapa
Deeksha Raturi
Coordinated By:
Mr. Ashutosh Uniyal - HOD BCA
-----------------------------------------------------------------------------------------------------------------
Approved
Not Approved
1
2
3
4
5
6
7
Date: --------------------
INDEX
1. INTRODUCTION
1.1Background
1.2 Objectives
1.3 Scope and Purpose
1.3.1 Scope
1.3.2 Purpose
2. SURVEY OF TECHNOLOGIES
3. REQUIREMENTS AND ANALYSIS
3.1 Problem Definition
3.2 Preliminary Product Description
3.3 Hardware and Software Requirements
3.4 Conceptual Models
3.4.1 Use Case Diagrams
3.4.2 Data Flow Diagrams
3.4.3 Entity Relationship Diagram
3.4.4 Data Structures
4. SECURITY MECHANISMS
5. FUTURE SCOPE
6. REFERENCES
Acknowledgement
Certificate of Originality
I ................................... do hereby declare that the Project entitled E-CARE submitted to the
Department of Information Technology, INSTITUTE OF TECHNOLOGY & MANAGEMENT
DEHRADUN, in partial fulfilment for the award of the Degree of BACHELOR OF COMPUTER
APPLICATION in session 2011-2014.
Place:
Date:
E-Care
E-care is customer care management system. E-care is called as E-desk or Help Desk System.
It is so called as Help Desk System because it tries to solve all the HD (helpdesk) problems,
which are coming from the users of E-care. E-care will take care of every request coming
from their users and try to solve and produce the solution of the particular request. E-care
also will store the responses for the future use.
E-care contains six main members who play very important role in this Help Desk System. They
include super user, level1 administrator, level2 administrator, level3 administrator, corporate client
user and corporate user (or end-user).
Super user is the chief head of the organization that assigns first level, second level, and third
level administrators. The super user is responsible for all the three level administrators
including the corporate clients. The Super user is the sole person who is responsible for
creating categories, modules and the support team.
Super user creates new categories only if HD problems dont belong to those categories present in Ecare and similarly with the creation of modules. When the super user creates new categories and
modules he will label these categories and modules as levels and appoint one administrator for each of
them. When the super user gets the HD problem as request he can modify the request or can answer it
by sending solution to the level3 or the support team who is responsible for messaging the response or
the solution to the end-user (corporate user).
Corporate client is the one who buys E-care product for his business purpose. He can create
corporate users for his product. Corporate user is the one who has to register himself to the
corporate client before he submits the HD problems to the super user and corporate user is the
actual end-user of the product or service.
Corporate user will register to the corporate client and corporate client sends all the
registration details to the super user, and after the registration the end-user will submit the
HD problems to the super user. When the super user gets the HD problems he will check the
details of the end-user and send the responses to the support team who will message the
responses to the corporate users.
E-care is very useful for the corporate clients who want their business to extend worldwide i.e., by
keeping contact and good relation with the corporate users who buy their products. The corporate
clients who buy E-care for their business can know what are the various problems of their product
which are coming from their users so that they improve their products to the user needs. Any user who
knows a little about of the computer can handle e-care.
INTRODUCTION
This project mainly deals with automating the task of the E-care system that helps many endusers to know the solutions for their request within no time. E-care can be done manually but
there may be problems that have to be faced so to overcome such problems we need to
automate the Help Desk System.
If the system is maintaining the list of all the details of
clients manually it will take a lot of time to retrieve even single information such as
retrieving or deleting single information becomes very difficult task.
The updating for the list such as creating a new creating new end-user details or creating
new corporate client details and including the details of the categories and the modules
that are created newly by the super user becomes very difficult manually. Once all
information is provided manually it become quite difficult for updating the records with
new information manually, so we automate the system to overcome all such difficulties.
E-care, which is developed manually, is the existing system. This system generates
and delivers the services to the end-users, which depends on the response provided by the
support team who actually message the responses to the corporate users for their requests.
By manually the Help Desk System will face difficulties while updating and it is time
consuming and leads more errors. E-care automates the tedious job of maintaining the
corporate user details or corporate client details and manages the updating and sees that the
responses are sent to the corporate user as soon as possible. It includes main members like:
Super user
Corporate client
Corporate user
Level1 administrator
Level2 administrator
Super user will manage the entire organization that includes corporate clients, corporate
users, and level administrators and also he can create the new categories and also the
modules.
Proposed systems are those that are automated, so that it is easy to retrieve the responses
from the system fast and updating the details once the response or services are provided to the
end-users upon their request without any difficulty and saves time.
SURVEY OF TECHNOLOGIES
Microsoft .NET is Microsoft's new Internet strategy. .NET was originally called NGWS.
NGWS - Next Generation Windows Services. Before the official announcement of .NET, the
term NGWS was used for Microsoft's plans for producing an "Internet-based platform of
Next Generation Windows Services".
.NET Framework
The .NET Framework is the infrastructure for the new Microsoft .NET Platform. The .NET
Framework is a common environment for building, deploying, and running Web Services and
Web Applications. The .NET Framework contains common class libraries - like ADO.NET,
ASP.NET and Windows Forms - to provide advanced standard services that can be integrated
into a variety of computer systems. The .NET Framework is language neutral. Currently it
supports C++, C#, Visual Basic, J Script (The Microsoft version of JavaScript) and COBOL.
Third-party languages - like Eiffel, Perl, Python, Smalltalk, and others - will also be available
for building future .NET Framework applications. The new Visual Studio.NET is a common
development environment for the new .NET Framework. It provides a feature-rich
application execution environment, simplified development and easy integration between a
number of different development languages.
ASP.NET File
seen
greater adoption
of
the
product
for
larger
enterprise
databases.
Sybase SQL Server was the name of Sybase Corporation's primary relational database
management system product from 1987 to 1995. It was originally created for UNIX platforms
in 1987.
To adapt the SQL to Microsoft SQL Server, the company developed Transact-SQL as
Microsoft's implementation of SQL. Transact-SQL is the language used internally by
Microsoft SQL Server and MSDE. Although SQL Server highly adheres to the SQL
standards, it has some internal details that may not be applied to other database systems like
My SQL, Oracle, or even Microsoft Access, etc; although they too fairly conform to the
standard. As a computer language, the SQL is used to give instructions to an internal
program called an interpreter.
CONNECTIVITY
SQL Direct .NET is an enhanced data provider for SQL Server that builds on ADO.NET
technology and SQL Client to present a complete solution for developing SQL Server-based
database applications. As part of the Core Lab database application development framework,
SQL Direct .NET offers both high performance native connectivity to SQL Server and a
number of innovative development tools and technologies.
SQL Direct .NET introduces new approaches for designing application architecture, boosts
productivity, and leverages database application implementation.
ADO.NET Overview
ADO.NET is an evolution of the ADO data access model that directly addresses user
requirements for developing scalable applications. It was designed specifically for the web
with scalability, statelessness, and XML in mind.
ADO.NET uses some ADO objects, such as the Connection and Command objects, and also
introduces new objects. Key new ADO.NET objects include the Data Set, Data Reader, and
Data Adapter.
The important distinction between this evolved stage of ADO.NET and previous data
architectures is that there exists an object -- the Data Set -- that is separate and distinct from
any data stores. Because of that, the Data Set functions as a standalone entity. You can think
of the Data Set as an always disconnected record set that knows nothing about the source or
destination of the data it contains. Inside a Data Set, much like in a database, there are tables,
columns, relationships, constraints, views, and so forth.
A Data Adapter is the object that connects to the database to fill the Data Set. Then, it
connects back to the database to update the data there, based on operations performed while
the Data Set held the data. In the past, data processing has been primarily connection-based.
Now, in an effort to make multi-tiered apps more efficient, data processing is turning to a
message-based approach that revolves around chunks of information. At the center of this
approach is the Data Adapter, which provides a bridge to retrieve and save data between a
Data Set and its source data store. It accomplishes this by means of requests to the
appropriate SQL commands made against the data store.
The XML-based Data Set object provides a consistent programming model that works with
all models of data storage: flat, relational, and hierarchical. It does this by having no
'knowledge' of the source of its data, and by representing the data that it holds as collections
and data types. No matter what the source of the data within the Data Set is, it is manipulated
through the same set of standard APIs exposed through the Data Set and its subordinate
objects.
While the Data Set has no knowledge of the source of its data, the managed provider has
detailed and specific information. The role of the managed provider is to connect, fill, and
persist the Data Set to and from data stores. The OLE DB and SQL Server .NET Data
Providers (System. Data Ole Db and System. Data. SQL Client) that are part of the .Net
Framework provide four basic objects: the Command, Connection, Data Reader and Data
Adapter. In the remaining sections of this document, we'll walk through each part of the Data
Set and the OLE DB/SQL Server .NET Data Providers explaining what they are, and how to
program against them.
The following sections will introduce you to some objects that have evolved, and some that
are new. These objects are:
Data Readers. For reading a forward-only stream of data records from a SQL Server
data source.
Data Sets. For storing, remoting and programming against flat data, XML data and
relational data.
Data Adapters. For pushing data into a Data Set, and reconciling data against a database
Problem Definition
DESIGN PRINCIPLES & EXPLANATION
MODULES
E-Care [help desk system] is a customer care management system. The following are the
modules related to E-Care [help desk system] are as follows: -
User module
Administration module
MODULE DESCRIPTIOIN
User Module
In this module user can register themselves to the e-Care if they are new users, otherwise they
can login directly and can then post their queries to e-Care or e-desk. First user has to register
with corporate client. In order to send request the end-user has to login and the login details
are stored in the database maintained by e-Care system. Database checks the details of the
user, if he is valid then allows the user to access the help desk system.
Super User module
In this module Super user is the chief head of the Organization who assigns 1 st level and 3rd
level administrators. The super user is responsible for all the three levels administrators
including the corporate clients. The super user is the sole person who is responsible for
creating categories, modules and support team.
Upper User will take all the registration details of the Corporate Users so as to check with the
queries which in turn consist of the query and also the user id.
Super user has the right to remove any level or add any level and also responsible for creating
modules and categories.
Administration module
Depending upon categories and modules created by super user the three levels are allotted.
They are three types of administrator:
Level 1 Administrator: the first level administrator is the one who can add HD problems to a
category created by the super user.
Level 2 Administrators: The second level administrator is the one who can add HD problems
to the modules.
Level 3 Administrators: The third level administrator is a member of the support team who
provides services to the
Corporate Client user: A corporate client user is the one who buys e-desk products. He can
create corporate users for his product.
Corporate User: Corporate user is the one who registers himself with the corporate client and
who is the actual end-user of the product/service.
The product features are as follows:
Scheduling of tasks.
Hardware Requirement
Processor
Core 2 Duo
RAM
1 GB
Operating System
Windows 7
Front End
Database
Software Requirement
DATAFLOW DIAGRAMS
Data flow diagrams can be used to provide a clear representation of any business function.
The technique starts with an overall picture of the business and continues by analysing each
of the functional areas of interest. This analysis can be carried out to precisely the level of
detail required. The technique exploits a method called top-down expansion to conduct the
analysis in a targeted way.
Data flow diagrams are used to represent the flow of data in the system. This gives the total
representation of data flow from start to end. Data Flow Diagram has certain symbols to
represent the flow in diagrammatic form. This representation can be done in several levels.
Rules
External-Entities
It is normal for all the information represented within a system to have been obtained from,
and/or to be passed onto, an external source or recipient. These external entities may be
duplicated on a diagram, to avoid crossing data flow lines. Where they are duplicated a stripe
is drawn across the left hand corner, like this.
The addition of a lowercase letter to each entity on the diagram Processes
when naming processes, avoid glossing over them, without really understanding their role.
Indications that this has been done are the use of vague terms in the descriptive title area like 'process' or 'update'.
The most important thing to remember is that the description must be meaningful to whoever
will be using the diagram.
Data-Flows
Double headed arrows can be used (to show two-way flows) on all but bottom level
diagrams. Furthermore, in common with most of the other symbols used, a data flow at a
particular level of a diagram may be decomposed to multiple data flows at lower levels.
Data-Stores
Each store should be given a reference letter, followed by an arbitrary number. These
reference letters are allocated as follows:
'D'- indicates a permanent computer file
'M'- indicates a manual file
'T'- indicates a transient store, one that is deleted after processing.
In order to avoid complex flows, the same data store may be drawn several times on a
diagram. A double vertical bar on their left hand edge indicates multiple instances of the same
data store.
Zero Level
Responses of Queries
E-care
User
Context Level
User
Responses of Queries
E-care
User
User
2.0
Client
process
First level
User database
User details
User
Update
3.0
Administrator
Process
1.0
Login process
Client id
Pwd
id
solved query
Super
4.0
Corporate user process
User
Invalid User Id
2.0
Client
process
2.2
2.1
Add/del/
Modify users
2.3
Company
profile
User Details
3.0
Query No
Details
Company
Administrator
Process
Update
Update Query
Admin details
Administration Database
3.1
3.0
Super User
Administrator Process
3.4
Create/del/ modify levels
3.2
Level data
3.5
Query
Level details
Modify company
status
profile
Query
3.6
Query
Details
Details
Add/delete
Client details
Client
No
3.2
Client details
Query status
Administrator Database
3.2.4
Create
1st Level
3.2.5
Create
2nd Level
3.3
Messaging system
Unsolved
3.2.2
Query,
2nd level
Administrator
USER
Category
Name
Resolve details
Module, name
E-R DIAGRAMS
Entity Relationship Diagram gives the structural representation of the relationship between
entities in the system. This representation of relations gives the clear understanding how the
data flow between entities. This diagram also explains how many members involved in the
system.
The symbols we use in this representation is
Entity
Week Entity
Relationship
Attribute
U-Id
idId
Password
name
C-Id IdU
idId
Company
type
name
Use
r
Registers as
customer
Corporate
Client
Password
Registers
Ticketno
SQL Snapshots:
Module
IdU
name
password
IdC
Super
IDsCategory
User
name
height: 208px;
width: 223px;
}
.auto-style16 {
height: 28px;
}
.auto-style17 {
font-size: large;
}
</style>
</head>
<body style="width: 1137px; height: 674px; margin-left: 142px;">
<form id="form1" runat="server">
<table class="auto-style1">
<tr>
<td class="auto-style5" colspan="3"></td>
</tr>
<tr>
<td class="auto-style10" colspan="3">
<asp:Image ID="Image1" runat="server" Height="151px" Width="1128px"
ImageUrl="~/images/Technology_Help_Desk.jpg" />
</td>
</tr>
<tr>
<td class="auto-style14" colspan="3">
<strong>
<em>
<asp:Menu ID="Menu1" runat="server" BackColor="#F7F6F3" FontNames="Verdana" Font-Size="Large" ForeColor="#7C6F57" Orientation="Horizontal"
StaticSubMenuIndent="40px" Height="22px" RenderingMode="Table" Width="1131px"
CssClass="auto-style17">
<DynamicHoverStyle BackColor="#7C6F57" ForeColor="White" />
<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px"
/>
<DynamicMenuStyle BackColor="#F7F6F3" />
<DynamicSelectedStyle BackColor="#5D7B9D" Font-Size="XX-Large" />
<DynamicItemTemplate>
<%# Eval("Text") %>
</DynamicItemTemplate>
<Items>
<asp:MenuItem Text="Home" Value="Home"
NavigateUrl="~/Default.aspx"></asp:MenuItem>
<asp:MenuItem Text="About Us" Value="About Us"
NavigateUrl="~/User/About us.aspx"></asp:MenuItem>
<asp:MenuItem Text="Our Services" Value="Products">
<asp:MenuItem Text="Mobiles" Value="Mobiles"
NavigateUrl="~/User/Products/Mobiles.aspx"></asp:MenuItem>
<asp:MenuItem Text="Laptops" Value="Laptops"
NavigateUrl="~/User/Products/Laptops.aspx"></asp:MenuItem>
<p>
&
nbsp;
&nbs
p; &n
bsp;
&nbs
p; &n
bsp; </p>
</asp:ContentPlaceHolder>
</td>
<td class="auto-style13">
<br />
<br />
<marquee direction ="up" ><asp:Image ID="Image4" runat="server"
Height="102px"
Width="135px"
ImageUrl="~/images/Help-Desk-Applications-CloudComputing.jpg" /></marquee>
<br />
<br />
<marquee><asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl="~/User/Complaints.aspx">For
Complaints
click
Here
!!
</asp:HyperLink></marquee>
<br />
</td>
</tr>
<tr>
<td colspan="3">
<asp:Image ID="Image2" runat="server" Height="118px"
ImageUrl="~/images/2bf77183b31d7098651e7a80878b173c48d34eaa.gif"
style="marginbottom: 13px" Width="1129px" />
</td>
</tr>
<tr>
<td colspan="3"><center>Design and Developed By: Mohit Bhandari
2007</center><br />
<center> IMS NOIDA </center></td>
</tr>
</table>
</form>
</body>
</html>
C# Coding
using System;
using System. Collections. Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Master Page : System. Web. UI. Master Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button2_Click(object sender, EventArgs e)
{
Session["UserId"] = "";
Session.Abandon();
Response.Redirect("~/User/Signin.aspx");
}
}
</tr>
<tr>
<td class="auto-style5" colspan="2">
<strong>
<em>
<asp:Menu ID="Menu1" runat="server" BackColor="#F7F6F3" FontNames="Verdana" Font-Size="Large" ForeColor="#7C6F57" Orientation="Horizontal"
StaticSubMenuIndent="40px" Height="43px" RenderingMode="Table" Width="1131px"
CssClass="auto-style17">
<DynamicHoverStyle BackColor="#7C6F57" ForeColor="White" />
<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px"
/>
<DynamicMenuStyle BackColor="#F7F6F3" />
<DynamicSelectedStyle BackColor="#5D7B9D" Font-Size="XX-Large" />
<DynamicItemTemplate>
<%# Eval("Text") %>
</DynamicItemTemplate>
<Items>
<asp:MenuItem Text="About Us" Value="About Us"
NavigateUrl="~/User/About1.aspx"></asp:MenuItem>
<asp:MenuItem Text="Jobs@E-Care" Value="Jobs@E-Care"
NavigateUrl="~/User/Jobs2.aspx"></asp:MenuItem>
<asp:MenuItem Text="Complaints" Value="Complaints"
NavigateUrl="~/User/Default2.aspx"></asp:MenuItem>
<asp:MenuItem NavigateUrl="~/User/Signin.aspx" Text="SignIn"
Value="SignIn"></asp:MenuItem>
</Items>
<StaticHoverStyle BackColor="#33CC33" ForeColor="White" FontBold="True" />
<StaticMenuItemStyle HorizontalPadding="20px" VerticalPadding="2px"
Width="100px" BackColor="#FFFFCC" />
<StaticMenuStyle BackColor="#FFFFCC" />
<StaticSelectedStyle BackColor="#FF5050" />
<StaticItemTemplate>
<%# Eval("Text") %>
</StaticItemTemplate>
</asp:Menu>
</em>
</strong>
</td>
</tr>
<tr>
<td class="auto-style6">
<asp:Image ID="Image1" runat="server" Height="190px"
ImageUrl="~/images/bnrSubContact.jpg" Width="233px" />
</td>
<td class="auto-style4">
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
<p> </p>
</asp:ContentPlaceHolder>
</td>
</tr>
<tr>
<td colspan="2">
<asp:Image ID="Image3" runat="server" Height="119px"
ImageUrl="~/images/2bf77183b31d7098651e7a80878b173c48d34eaa.gif" Width="1131px"
/>
</td>
</tr>
<tr>
<td colspan="3"><center>Design and Developed By: Mohit Bhandari
2007</center><br />
<center> IMS NOIDA </center></td>
</tr>
</table>
</form>
</body>
</html>
Web.Config Coding
<?xml version="1.0"?>
<!-For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<connectionStrings>
<add name="MyCon" connectionString="Data Source=BHANDARI;Initial
Catalog=BCA;Integrated Security=True"
providerName="System.Data.SqlClient" />
<add
name="E-CareConnectionString"
connectionString="Data
Source=BHANDARI;Initial Catalog=BCA;Integrated Security=True"
providerName="System.Data.SqlClient" />
<add
name="E-CAreConnectionString2"
connectionString="Data
Source=BHANDARI;Initial Catalog=BCAIntegrated Security=True"
providerName="System.Data.SqlClient" />
<add
name="E-CareConnectionString3"
connectionString="Data
Source=BHANDARI;Initial Catalog=BCAIntegrated Security=True"
providerName="System.Data.SqlClient" />
<add name="BCAConnectionString" connectionString="Data Source=BHANDARI;Initial
Catalog=BCA;Integrated Security=True"
providerName="System.Data.SqlClient" />
<add
name="BCAConnectionString2"
connectionString="Data
Source=BHANDARI;Initial Catalog=BCA;Integrated Security=True"
providerName="System.Data.SqlClient" />
<add
name="BCAConnectionString3"
connectionString="Data
Source=BHANDARI;Initial Catalog=BCA;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.5"/>
<httpRuntime targetFramework="4.5"/>
</system.web>
<appSettings>
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/>
</appSettings>
</configuration>
Sign In Page
Source Code
<%@
Page
Title=""
Language="C#"
MasterPageFile="~/MasterPage3.master"
bsp;
<asp:Label ID="Label1" runat="server" style="font-weight: 700; font-size: x-large;
font-style: italic;" Text="SIGN IN !!" ForeColor="Red"></asp:Label>
</td>
</tr>
<tr>
<td
class="autostyle24"> &n
bsp;
<asp:Label ID="Label2" runat="server" Text="UserId"></asp:Label>
</td>
<td class="auto-style21">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox1"
ErrorMessage="UserId
Required"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="auto-style25">
<asp:Label ID="Label3" runat="server" Text="Password"></asp:Label>
</td>
<td class="auto-style26">
<asp:TextBox ID="TextBox2" runat="server"
TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="TextBox2"
ErrorMessage="Password
Required"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td
class="auto-style28"
colspan="2"> &nbs
p;
<asp:DropDownList
ID="DropDownList1" runat="server">
<asp:ListItem>Choose Type </asp:ListItem>
<asp:ListItem>Admin</asp:ListItem>
<asp:ListItem>User</asp:ListItem>
</asp:DropDownList>
&
nbsp;
<asp:CheckBox ID="CheckBox1" runat="server" Text="Remember me !!" />
<br />
&nbs
p; <asp:RequiredFieldValidator
ID="RequiredFieldValidator3"
runat="server"
ControlToValidate="DropDownList1"
ErrorMessage="Please
Choose
Type"
InitialValue="Choose
Type
"></asp:RequiredFieldValidator>
&
nbsp;
& nbsp;
<asp:Button ID="Button1" runat="server" Text="Log In"
OnClick="Button1_Click" />
</td>
</tr>
<tr>
<td
class="auto-style27"
colspan="2"> &nbs
p;
<asp:HyperLink ID="HyperLink2" runat="server"
NavigateUrl="~/User/PasswordRecovery.aspx">Forgot Password ?</asp:HyperLink>
</td>
</tr>
<tr>
<td
class="auto-style14"
colspan="2"> &nbs
p;
<asp:Label ID="Label4" runat="server" Text="New User ??"></asp:Label>
&nbs
p; & nbsp;
<asp:HyperLink ID="HyperLink3" runat="server"
NavigateUrl="~/User/Registration.aspx">Sign Up !!</asp:HyperLink>
</td>
</tr>
</table>
</asp:Content>
C# Coding
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using System.Data.SqlClient;
public partial class Signup : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string s = ConfigurationManager.ConnectionStrings["MyCon"].ToString();
con = new SqlConnection(s);
}
SqlConnection con = new SqlConnection();
SqlCommand cmd = new SqlCommand();
SqlDataReader dr;
protected void Button1_Click(object sender, EventArgs e)
{
if (DropDownList1.SelectedValue == "User")
{
//Session["UserId"] = TextBox1.Text;
con.Open();
cmd = new SqlCommand("select * from User1 where UserId='" + TextBox1.Text + "'and
Password='" + TextBox2.Text + "'", con);
dr = cmd.ExecuteReader();
if (dr.Read())
{
Session["UserId"] = dr[0].ToString();
Response.Write("Login Sucessful");
Response.Redirect("~/User/Home.aspx");
}
else
{
Response.Write("Login Not sucessfull");
}
}
if (DropDownList1.SelectedValue == "Admin")
{
con.Open();
cmd = new SqlCommand("select * from Admin where UserId=" + TextBox1.Text +
" and Password='" + TextBox2.Text + "'", con);
dr = cmd.ExecuteReader();
if (dr.Read())
{
//Session["UserId"] = dr[1].ToString();
Response.Write("Login Sucessful");
Response.Redirect("~/Admin/Admin_home.aspx");
}
else
{
Response.Write("Login Not sucessfull");
}
}
}
}
Sign Up Page
Source Code
<%@
Page
Title=""
Language="C#"
MasterPageFile="~/MasterPage3.master"
AutoEventWireup="true" CodeFile="Registration.aspx.cs" Inherits="Registration" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
.auto-style6 {
width: 404px;
margin-left: 0px;
}
.auto-style22 {
width: 280px;
height: 8px;
}
.auto-style23 {
width: 644px;
height: 8px;
}
.auto-style32 {
width: 280px;
height: 28px;
}
.auto-style33 {
height: 28px;
width: 644px;
}
.auto-style34 {
width: 280px;
height: 30px;
}
.auto-style35 {
height: 30px;
width: 644px;
}
.auto-style36 {
height: 31px;
}
.auto-style37 {
height: 55px;
}
</style>
</asp:Content>
<asp:Content
ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<table class="auto-style5">
<tr>
<td colspan="2" class="auto-style37">
&
nbsp;
&nbs
p; &n
bsp;
<asp:Label ID="Label1" runat="server" Text="SIGN UP !!" style="font-weight:
700; font-size: x-large; font-style: italic;" ForeColor="Red"></asp:Label>
</td>
</tr>
<tr>
<td class="auto-style32">
&nbs
p;
<asp:Label
ID="Label2"
runat="server" Text="UserId"></asp:Label>
</td>
<td class="auto-style33">
<asp:TextBox ID="username" runat="server" Width="157px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="username"
ErrorMessage="UserId
Required"
ValidationGroup="1"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="auto-style34">
&nbs
p;
<asp:Label ID="Label3" runat="server" Text="Password"></asp:Label>
</td>
<td class="auto-style35">
<asp:TextBox ID="password" runat="server"
TextMode="Password" Width="157px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="password"
ErrorMessage="Password
Required"
ValidationGroup="1"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="auto-style34">
&nbs
p;
<asp:Label
ID="Label4"
runat="server" Text="Confirm Password"></asp:Label>
</td>
<td class="auto-style35">
C# Coding
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
public partial class Registration : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string s = ConfigurationManager.ConnectionStrings["MyCon"].ToString();
con = new SqlConnection(s);
}
SqlConnection con;
SqlCommand cmd;
protected void Button1_Click(object sender, EventArgs e)
{
con.Open();
cmd = new SqlCommand("INSERT
VALUES(@p1,@p2,@p3,@p4,@p5,@p6,@p7)", con);
cmd.Parameters.AddWithValue("@p1", username.Text);
cmd.Parameters.AddWithValue("@p2", password.Text);
cmd.Parameters.AddWithValue("@p3", mail.Text);
cmd.Parameters.AddWithValue("@p4", mobile.Text);
cmd.Parameters.AddWithValue("@p5",Question.SelectedValue);
cmd.Parameters.AddWithValue("@p6", ans.Text);
cmd.Parameters.AddWithValue("@p7", dob.Text);
int x = cmd.ExecuteNonQuery();
INTO
User1
if (x > 0)
{
//Response.Write("<script>javascript:alert(' you Registered');</script>");
Response.Redirect("~/User/Signin.aspx");
}
else
{
Response.Write("<script>javascript:alert('Sorry! you can not Registered');</script>");
}
con.Close();
}
Source Code
<%@
Page
Title=""
Language="C#"
MasterPageFile="~/MasterPage3.master"
AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
.auto-style6 {
font-size: medium;
}
.Apple-converted-space {
font-weight: 700;
}
.auto-style7 {
font-weight: 700;
font-size: medium;
}
.auto-style8 {
color: rgb(0, 0, 0);
font-size: medium;
}
.auto-style19 {
font-size: large;
}
.auto-style19 {
color: #3333FF;
}
.auto-style18 {
text-align: right;
}
.auto-style18 {
height: 45px;
color: #000000;
}
</style>
</asp:Content>
<asp:Content
ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<script>
javascript: window.histroy.forwad(1)
</script>
<span class="auto-style6" style="color: rgb(0, 0, 0); font-family: sans-serif; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height:
19.1875px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; whitespace: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color:
rgb(255,
255,
255);
display:
inline
!important;
float:
none;"><em>A</em><span
class="Apple-converted-space"><em> E-care
</em></span><em>is a resource intended to provide the customer or</em><span
class="Apple-converted-space"><em> </em></span></span><a class="auto-style6"
href="http://en.wikipedia.org/wiki/End_user" style="text-decoration: none; color: rgb(11, 0,
128); background-image: none; background-color: rgb(255, 255, 255); font-family: sansserif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 19.1875px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-repeat: initial initial;" title="End user"><em>end
user</em></a><span style="color: rgb(0, 0, 0); font-family: sans-serif; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height:
19.1875px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; whitespace: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); display: inline !important; float: none;"><span
class="auto-style7"><em> </em></span></span><span
class="auto-style6"
style="color: rgb(0, 0, 0); font-family: sans-serif; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: 19.1875px; orphans: auto; text-align:
start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; wordspacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display:
inline !important; float: none;"><em>with information and support related to a
company's or institution's products and services.
The purpose of a help desk is usually to</em><span class="Apple-convertedspace"><em> </em></span></span><a
class="auto-style8"
href="http://en.wikipedia.org/wiki/Troubleshoot" style="text-decoration: none; backgroundimage: none; background-color: rgb(255, 255, 255); font-family: sans-serif; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height:
19.1875px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; whitespace: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-repeat: initial initial;" title="Troubleshoot"><em>troubleshoot</em></a><span
style="color: rgb(0, 0, 0); font-family: sans-serif; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: 19.1875px; orphans: auto; text-align:
start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; wordspacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display:
inline
!important;
float:
none;"><span
class="autostyle7"><em> </em></span></span><span class="auto-style6" style="color: rgb(0, 0,
0); font-family: sans-serif; font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 19.1875px; orphans: auto; text-align: start; text-indent:
0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkittext-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important;
float: none;"><em>problems
or provide guidance about products such as computers, electronic equipment, food,
apparel, or software. Corporations usually provide help desk support to their customers
through various channels such as toll-free numbers, websites, instant messaging, or email.
<br />There are also in-house help desks designed to provide assistance to
employees.Existing Users can also file there complaints through there UserId.User can login
by clicking on the link
<asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="~/User/Signin.aspx"
style="font-weight: 700" CssClass="auto-style19">Sign In</asp:HyperLink>
.A typical help desk can effectively perform several functions. A help desk generally manages
its requests through the use of software such as</em><span class="Apple-convertedspace"><em> </em></span></span><span style="color: rgb(0, 0, 0); font-family:
sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal;
About Us Page
Source Code
<%@
Page
Title=""
Language="C#"
MasterPageFile="~/MasterPage3.master"
AutoEventWireup="true" CodeFile="About1.aspx.cs" Inherits="User_About1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
.auto-style18 {
width: 100%;
height: 188px;
}
.auto-style19 {
width: 555px;
}
ul
{margin-bottom:0cm;}
li.MsoNormal
{margin-top:0cm;
margin-right:0cm;
margin-bottom:10.0pt;
margin-left:0cm;
line-height:115%;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
}
.auto-style20 {
margin-left: 161px;
}
</style>
</asp:Content>
<asp:Content
ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<p>
<b><i><span style="font-size:18.0pt;mso-bidi-font-size:
11.0pt;font-family:"Times New Roman","serif";mso-fareast-fontfamily:"Times
New
Roman"">About
E-Care</span></i></b><i><span
style="font-size:13.5pt;font-family:"Times New Roman","serif";
mso-fareast-font-family:"Times New Roman""><br />
<br />
The E-Care is a system which uses innovative technology to link
customer information between user and Executive memebrs sites over a protected network,
enabling the secure sharing of information. As a user, you will benefit in many ways,
including increased safety, enhanced quality of care, and improved coordination of care.E
Care Network also enables to read other caregivers notes and share their notes with others
within and outside the Premises all through this protected network.
<br />
<br />
</span></i><b><i><span style="font-size:13.5pt;mso-bidi-font-size:11.0pt;
font-family:"Times
New
Roman","serif";mso-fareast-fontfamily:"Times
New
Roman"">What
does
eCare
Accomplish?
</span></i></b><i><span style="font-size:13.5pt;
font-family:"Times
New
Roman","serif";mso-fareast-fontfamily:"Times New Roman""><o:p></o:p></span></i></p>
<ul type="disc">
<li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottomalt:auto;
line-height:normal;mso-list:l0 level1 lfo1;tab-stops:list 36.0pt"><i><span style="fontsize:13.5pt;mso-bidi-font-size:11.0pt;font-family:"Times
New
Roman","serif";
mso-fareast-font-family:"Times New Roman"">Real-time
documentation</span></i><span
style="font-size:13.5pt;mso-bidi-font-size:11.0pt;fontfamily:"Times New Roman","serif";
mso-fareast-font-family:"Times New Roman""><o:p></o:p></span></li>
<li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottomalt:auto;
line-height:normal;mso-list:l0 level1 lfo1;tab-stops:list 36.0pt"><i><span style="fontsize:13.5pt;font-family:"Times New Roman","serif";mso-fareastfont-family:
"Times New Roman"">Improved communications and
coordination</span></i><span
style="font-size:12.0pt;font-family:"Times
New
Roman","serif";mso-fareast-font-family:
"Times New Roman""><o:p></o:p></span></li>
<li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottomalt:auto;
line-height:normal;mso-list:l0 level1 lfo1;tab-stops:list 36.0pt"><i><span style="fontsize:13.5pt;font-family:"Times New Roman","serif";mso-fareastfont-family:
"Times New Roman"">Enhanced quality of care<o:p></o:p></span></i></li>
</ul>
<p class="MsoNormal">
<b><i><span style="font-size:13.5pt;mso-bidi-font-size:
11.0pt;font-family:"Times New Roman","serif";mso-fareast-fontfamily:"Times
New
Roman"">Important
Features
of
ECare</span></i></b><i><span style="font-size:12.0pt;font-family:
"Times New Roman","serif";mso-fareast-font-family:"Times
New Roman""><o:p></o:p></span></i></p>
<p class="MsoNormal">
<i><span style="font-size:13.5pt;mso-bidi-font-size:11.0pt;
line-height:115%;font-family:"Times New Roman","serif";msofareast-font-family:
"Times New Roman"">An Electronic Record replaces your paper chart with a
secure, digital record. This electronic record is accessible to authorized Dealers via the secure
E-Care Network<o:p></o:p></span></i></p>
<p class="MsoNormal">
<i><span style="font-size:13.5pt;mso-bidi-font-size:11.0pt;font-family:
"Times New Roman","serif";mso-fareast-font-family:"Times
New
Roman";color:black">The
main
aim
of
developing </span></i><b><i><span style="font-size:13.5pt;
mso-bidi-font-size:11.0pt;font-family:"Times
New
Roman","serif";mso-fareast-font-family:
"Times
New
Roman";color:blue">E-Care
System</span></i></b><i><span style="font-size: 13.5pt; font-family: "Times New
Roman","serif";
mso-fareast-font-family:
"Times
New
Roman"; color: black; background: white"> is to provide best service to all
customers in an organization. The home page contains two options to login into the system 1)
login with corporate user and 2) login with help desk user. With the help of registration form
user can enter all his details and register himself into the website. Then he selects the
company name inside the tool bar and post any query related the electronic hardware. This
Asp.net application helps company management to solve the issues as early as
possible.</span><span
style="font-size:13.5pt;font-family:"Times
New
Roman","serif";
mso-fareast-font-family:"Times New Roman""><o:p></o:p></span></i></p>
<p>
<table class="auto-style18">
<tr>
<td class="auto-style19">
<asp:Image ID="Image4" runat="server" CssClass="auto-style20"
Height="176px" ImageAlign="Middle" ImageUrl="~/images/About eCare IMG.jpg"
Width="323px" />
</td>
<td> </td>
</tr>
</table>
</p>
</asp:Content>
Source Code
<%@
Page
Title=""
Language="C#"
AutoEventWireup="true"
Inherits="PasswordRecovery" %>
MasterPageFile="~/MasterPage.master"
CodeFile="PasswordRecovery.aspx.cs"
C# Code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using System.Data.SqlClient;
using System.Data;
public partial class PasswordRecovery : System.Web.UI.Page
{
SqlConnection con;
protected void Page_Load(object sender, EventArgs e)
{
con
=
SqlConnection(ConfigurationManager.ConnectionStrings["MyCon"].ToString());
}
new
Source Code
<%@
Page
Title=""
Language="C#"
AutoEventWireup="true"
Inherits="User_ResetPassword" %>
MasterPageFile="~/MasterPage.master"
CodeFile="ResetPassword.aspx.cs"
C# Coding
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
using System.Data;
public partial class User_ChangePassword : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string s = ConfigurationManager.ConnectionStrings["MyCon"].ToString();
con=new SqlConnection(s);
}
SqlConnection con;
protected void Button3_Click(object sender, EventArgs e)
{
con.Open();
SqlCommand cmd1 = new SqlCommand("update User1 set Password=@sp where
Security_answer='" + Session["one"].ToString() + "'", con);
cmd1.Parameters.AddWithValue("@sp", TextBox1.Text);
int row = cmd1.ExecuteNonQuery();
if (row > 0)
{
Response.Write("<script> javascript:alert('Password Succesfully Reset ');</script>");
Response.Redirect("Signin.aspx");
}
else
{
Response.Write("<script> javascript:alert('Password Not Reset ');</script>");
}
con.Close();
}
}
Source Code
<%@
Page
Title=""
Language="C#"
AutoEventWireup="true"
Inherits="User_ChangePassword" %>
MasterPageFile="~/MasterPage.master"
CodeFile="ChangePassword.aspx.cs"
C# Coding
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Configuration;
using System.Data.SqlClient;
public partial class User_ResetPassword : System.Web.UI.Page
{
SqlConnection con;
SqlDataReader dr;
protected void Page_Load(object sender, EventArgs e)
{
con
=
new
SqlConnection(ConfigurationManager.ConnectionStrings["MyCon"].ToString());
}
protected void Button3_Click(object sender, EventArgs e)
{
con.Open();
SqlCommand cmd = new SqlCommand("select * from User1 where Security_answer='"
+ TextBox2.Text + "' and UserId='" + Session["one"].ToString() + "'", con);
dr = cmd.ExecuteReader();
if (dr.Read())
{
Session["one"] = TextBox2.Text;
Response.Redirect("ChangePassword.aspx");
}
else
{
Response.Write("<script> javascript:alert('Wrong Answer');</script>");
}
}
}
Source Code
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="Admin_home.cs" Inherits="Admin_Login"
%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
.auto-style16 {
width: 100%;
}
.auto-style17 {}
.auto-style18 {
width: 460px;
height: 715px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" runat="server" contentplaceholderid="ContentPlaceHolder1">
<table class="auto-style16">
<tr>
<td class="auto-style18">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataKeyNames="UserId" DataSourceID="SqlDataSource1" AutoGenerateDeleteButton="True"
AutoGenerateEditButton="True" AutoGenerateSelectButton="True" AllowPaging="True">
<Columns>
<asp:BoundField DataField="Dob" HeaderText="Dob" SortExpression="Dob" />
<asp:BoundField DataField="Security_answer" HeaderText="Security_answer"
SortExpression="Security_answer" />
<asp:BoundField DataField="Security_question" HeaderText="Security_question"
SortExpression="Security_question" />
<asp:BoundField DataField="Mobile" HeaderText="Mobile"
SortExpression="Mobile" />
<asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
<asp:BoundField DataField="Password" HeaderText="Password"
SortExpression="Password" />
<asp:BoundField DataField="UserId" HeaderText="UserId" ReadOnly="True"
SortExpression="UserId" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$
ConnectionStrings:BCAConnectionString2 %>" SelectCommand="SELECT [UserId], [Password],
[Email], [Mobile], [Security_question], [Security_answer], [Dob] FROM [User1]">
</asp:SqlDataSource>
<br />
<br />
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$
ConnectionStrings:BCAConnectionString3 %>" SelectCommand="SELECT [UserId], [First_Name],
[Last_Name],
[Email],
[Mobile],
[Complaints]
FROM
[Complaints]"
ProviderName="System.Data.SqlClient"></asp:SqlDataSource>
<br />
C# Coding
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;
public partial class Admin_Login : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string s = ConfigurationManager.ConnectionStrings["MyCon"].ToString();
con = new SqlConnection(s);
}
SqlConnection con;
SqlCommand cmd;
SqlDataReader dr;
protected void GridView2_SelectedIndexChanged(object sender, EventArgs e)
{
Session["fname"] = GridView1.SelectedRow.Cells[1].Text;
Session["query"] = GridView1.SelectedRow.Cells[5].Text;
TextBox2.Text = Session["fname"].ToString();
TextBox3.Text = Session["query"].ToString();
}
protected void Button1_Click(object sender, EventArgs e)
{
cmd = new SqlCommand("insert into solution values('" +
GridView2.SelectedRow.Cells[1].Text + "','" + GridView2.SelectedRow.Cells[4].Text + "','"
+ TextBox2.Text + "','" + "','" + TextBox3.Text + "')", con);
con.Open();
int x = cmd.ExecuteNonQuery();
con.Close();
if (x > 0)
{
Response.Write("<script>javascript:alert('successfully..')</script>");
}
}
}
Complaints Page
Source Code
<%@
Page
Title=""
Language="C#"
MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="Complaints.aspx.cs" Inherits="User_Complaints" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
.auto-style24 {
width: 102%;
height: 661px;
}
.auto-style26 {
width: 235px;
font-size: large;
}
.auto-style27 {
width: 235px;
height: 66px;
}
.auto-style28 {
height: 66px;
}
.auto-style29 {
width: 235px;
height: 65px;
}
.auto-style30 {
height: 65px;
}
.auto-style31 {
width: 235px;
height: 68px;
}
.auto-style32 {
height: 68px;
}
.auto-style33 {
width: 235px;
height: 64px;
}
.auto-style34 {
height: 64px;
}
.auto-style35 {
width: 235px;
height: 81px;
}
.auto-style36 {
height: 81px;
}
.auto-style37 {
width: 235px;
height: 59px;
}
.auto-style38 {
height: 59px;
}
</style>
</asp:Content>
<asp:Content
ID="Content2"
ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<script>
javascript: window.histroy.forwad(1)
</script>
<table class="auto-style24">
<tr>
<td colspan="2">
&
nbsp;
&nbs
p;
<asp:Label ID="Label8" runat="server" style="font-weight: 700; font-style: italic;
font-size: x-large; text-align: center;" Text="FILE YOUR NEW COMPLAINT.....!!"
ForeColor="Red"></asp:Label>
</td>
</tr>
<tr>
<td
class="autostyle27"> &n
bsp;
<asp:Label ID="Label2" runat="server" Text="UserId" CssClass="autostyle17"></asp:Label>
</td>
<td class="auto-style28">
<asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox7"
ErrorMessage="UserId
Required"
CssClass="autostyle17"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="auto-style29">
&
nbsp;
<asp:Label ID="Label3" runat="server" Text="First Name" CssClass="autostyle17"></asp:Label>
</td>
<td class="auto-style30">
<asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>
&
nbsp;
<asp:Label ID="Label7" runat="server" Text="Complaint" CssClass="autostyle17"></asp:Label>
</td>
<td class="auto-style36">
<asp:TextBox ID="TextBox12" runat="server" Height="72px"
TextMode="MultiLine" Width="196px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"
ControlToValidate="TextBox12" ErrorMessage="Field cannot b empty. " CssClass="autostyle17"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="auto-style27"></td>
<td class="auto-style28">
<asp:Button ID="Button1" runat="server" Text="Send..."
OnClick="Button1_Click" />
</td>
</tr>
<tr>
<td class="auto-style37">
<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="Message" />
</td>
<td class="auto-style38"></td>
</tr>
<tr>
<td class="auto-style26">Resolution........</td>
<td>
<asp:Label ID="Label1" runat="server" Text=" "></asp:Label>
</td>
</tr>
</table>
</asp:Content>
C# Coding
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
public partial class User_Complaints : System.Web.UI.Page
{
SqlConnection con;
SqlCommand cmd, cmd1;
SqlDataReader dr, dr1;
protected void Page_Load(object sender, EventArgs e)
{
con
=
new
SqlConnection(ConfigurationManager.ConnectionStrings["MyCon"].ToString());
if (Session["Email"] != null)
{
Response.Redirect("~/User/Signin.aspx");
}
else
{
cmd = new SqlCommand("select UserId,Email,Mobile from User1 where UserId='" +
Session["Email"] + "'", con);
con.Open();
dr = cmd.ExecuteReader();
if (dr.Read())
{
TextBox7.Text= dr[4].ToString();
TextBox8.Text = dr[0].ToString();
TextBox9.Text = dr[1].ToString();
TextBox10.Text = dr[2].ToString();
TextBox11.Text = dr[3].ToString();
Session["Email"] = dr[2].ToString();
}
con.Close();
}
}
protected void Button1_Click(object sender, EventArgs e)
{
cmd = new SqlCommand("insert into Complaints values('" + TextBox7.Text + "','" +
TextBox8.Text + "','" + TextBox9.Text + "','" + TextBox10.Text + "','" + TextBox11.Text +
"','"+TextBox12.Text+"')", con);
con.Open();
int x = cmd.ExecuteNonQuery();
if (x > 0)
{
Response.Write("<script>javascript:alert('Complaint Sent..')</script>");
}
}
protected void Button2_Click(object sender, EventArgs e)
{
con.Open();
cmd1 = new SqlCommand("select solution,date from solution where Email='" +
Session["Email"] + "'", con);
dr1 = cmd1.ExecuteReader();
if (dr1.Read())
{
Label1.Text = dr1[0].ToString() + " Resolution date up to : " + dr1[1].ToString();
}
con.Close();
}
}
Contact Us Page
Source Code
<%@
Page
Title=""
Language="C#"
MasterPageFile="~/MasterPage3.master"
AutoEventWireup="true" CodeFile="Contacts.aspx.cs" Inherits="Contacts" %>
4. Security Mechanisms
The software can be made compatible as per future technologies and strategies and is easily
extensible and upgradable according to organization need with little or no changes and can be
made upto-date and to incorporate necessary changes for both students as well as for college
staff.
BIBILIOGRAPHY
1. Study Material Provided By Multisoft Systems.
2. www.microsoft.com
3. http://www.santanu.in/forums/
4. www.dotnetspider.com
5. Wrox Visual C# 2010
6. Black Book Asp.Net 4.0