Professional Documents
Culture Documents
ON
IN
INFORMATION TECHNOLOGY
SUBMITTED
ANIMESH GULATI
Roll No. 2209604
ACKNOWLEDGEMENT
Apart from the efforts of me, the success of my project depends largely
on the encouragement and guidelines of many others. I take this
opportunity to express my gratitude to the people who have been
instrumental in the successful completion of this project.
I would like to show my greatest appreciation to my project in-charge,
Mrs. Shalini Sharma. I cant say thank you enough for the tremendous
support and help. I feel motivated and encouraged every time I attend
her meeting. Without her encouragement and guidance this project work
would not have materialized.
Im highly grateful to Mr. Chhotu Sharma, chief instructor at
CS-InfoTech, for his thorough guidance right from day 1 till the end of
training. He actually laid the ground for conceptual understanding of
technologies used in project.
TABLE OF CONTENTS
S. NO.
TOPIC
Training Certificates
II
Acknowledgement
1.
Introduction
1-11
PAGE NO.
System Design
2-11
18
19
19
20
Coding
4.
Screen Shots
21-24
29-42
INTRODUCTION
Project Title
WEB CONTENT
MANAGEMENT SYSTEM
Project Duration:
Project category:
6 Weeks
Web Based Application
OBJECTIVE
OF
PROJECT
OBJECTIVES OF PROJECT
Whether you are using a WCMS to manage an Internet, Extranet or
Intranet - the business benefits that can be derived from such a solution
do of course vary. The suggestions below are by no means an exhaustive
list of all the benefits and it would be worth reading the documentation
on personalization, collaboration and portals in combination with the
documentation on WCMS as increasingly business benefits can be
derived indirectly for these capabilities with the WCMS underpinning
them to provide a single solution.
The website is easy to use and understand by anyone
A WCMS enables information to be fresh, consistent & high quality.
Reduced customer (internal and external) dissatisfaction created by
having incorrect information.
Reduction in legal issues created by displaying incorrect information.
Increased value perception of the information provided.
There is a higher likelihood of a customer re-visiting the site.
PLATFORM
DISCRIPTION
WORKING ENVIRONMENT
Understanding .Net Frame Work
DEFINITION:
The .Net framework can be defined as a language neutral platform designed to
provide a number of rich and powerful application development tools and
technologies. It has an extensive class library that provides wide-ranging support
for data access. .Net framework has an independent code execution and
management environment called the Common Language Runtime (CLR) which
ensures that code is safe to run, and provides an abstract layer on top of the
operating system, which allows the elements of the .Net framework to run on many
operating systems and devices.
3: ASP.NET Is Multilanguage
IL is a stepping stone for every managed application. (A managed
application is any application thats written for .NET and executes inside
the managed environment of the CLR.) In a sense, IL is the language of
.NET, and its the only language that the CLR recognizes.
Is Object-Oriented:
Auditing
Create and manage auditing via DDL, while simplifying compliance by
providing more comprehensive data auditing. This enables organizations
to answer common questions, such as, "What data was retrieved?"
Data Compression
Enable data to be stored more effectively, and reduce the storage
requirements for your data. Data compression also provides significant
performance improvements for large I/O bound workloads, like data
warehousing.
SOFTWARE
&
HARDWARE
REQUIREMENTS
Users:
This site can be used by 2 types of users:
1.1. The users who is likely to find the information of their classmates
Assumptions:
2.1. The alerts will not be provided by the site, the user has to visit it to
3.
Requirements:
3.1.Functional Requirements:
3.1.1. The portal will search for the details of the schools and colleges as
per details entered by user.
3.1.2. If the user is an admin, he has to login.
3.1.3. Admin can add, modify or delete records related to various
institutions and
also updates guestbook entries.
3.1.4. The concept of Master Pages and Content Pages is used.
SOFTWARE REQUIREMENTS
Visual studio 2010 can be installed on the following operating systems:
SUPPORTED ARCHITECTURES:
* 32-BIT (X86)
* 64-BIT (X64)
HARDWARE REQUIREMENTS
computer that has a 1.6ghz or faster processor
1 GB (32 bit) or 2 GB (64 bit) ram (add 512 MB if running in a
virtual machine)
Tables
User
Temp
Menu
The various roles through which the data flows used in the project are:
1) Administrator
2) User
Sr. No.
Table Name
1.
Tbusr
Description
2.
Tbpag
3.
Tbmnu
The following are the relations we have designed to manage the database. Here we
have followed a convention of having the table names with tb as a prefix, and
the remaining name of the table represent the description of the data inside that
table.
Tables
Tbusr
Column Name
Datatype
Key
Description
Usrcod
Usrnam
int
Varchar(50)
Primary key
Usrpwd
Usrfstnam
Usrlstnam
usrtyp
Usrcrtdat
Varchar(50)
Varchar(50)
Varchar(50)
char(1)
datetime
Unique
User code
Registration
User name
Email id
Password
Status U,A
Tbtmp
Column Name
Datatype
Key
Mnucod
mnunam
Mnuusrcod
Mnuparmnucod
Mnudspord
Mnuusrtyp
Int
Varchar(100)
Int
Int
Int
char(1)
Pk
Description
Tbpag
Column Name
Datatype
Key
Pagcod
pagnam
Pagcon
Pagbrwtit
Pagmettit
Pagmetkey
Pagmetdsc
Pagmnucod
Pagusrcod
Pagcrtdat
Int
Varchar(50)
ntext(max)
varchar(200)
varchar(200)
varchar(200)
varchar(200)
int
Int
Datetime
Pk
Description
CODING
CODING
Application class code file
using
using
using
using
using
using
using
System;
System.Collections.Generic;
System.Linq;
System.Web;
System.Data;
System.Data.SqlClient;
System.Configuration;
namespace nswcmns
{
public interface intusr
{
Int32 p_usrcod
{
get;
set;
}
String p_usrnam
{
get;
set;
}
String p_usrpwd
{
get;
set;
}
Char p_usrsts
{
get;
set;
}
DateTime p_usrcrtdate
{
get;
set;
}
String p_usrfrstname
{
get;
set;
}
String p_usrlstname
{
get;
set;
}
String p_usrtyp
{
get;
set;
}
}
public class clsusrprp : intusr
{
private Int32 uc;
private String un, up, ufn, uln, ut;
private DateTime ucd;
private Char us;
public int p_usrcod
{
get
{
return uc;
}
set
{
uc = value;
}
}
public String p_usrnam
{
get
{
return un;
}
set
{
un = value;
}
}
public String p_usrpwd
{
get
{
return up;
}
set
{
up = value;
}
}
public Char p_usrsts
{
get
{
return us;
}
set
{
us = value;
}
}
public DateTime p_usrcrtdate
{
get
{
return ucd;
}
set
{
ucd = value;
}
}
public String p_usrfrstname
{
get
{
return ufn;
}
set
{
ufn = value;
}
}
public String p_usrlstname
{
get
{
return uln;
}
set
{
uln = value;
}
}
public String p_usrtyp
{
get
{
return ut;
}
set
{
ut = value;
}
}
}
public abstract class clscon
{
protected SqlConnection con = new SqlConnection();
public clscon()
{
con.ConnectionString = ConfigurationManager.ConnectionStrings["cn"].ConnectionString;
}
}
public class clsusr : clscon
{
public Char logincheck(String usrnam, String usrpwd)
{
if (con.State == ConnectionState.Closed)
{
con.Open();
}
con.Open();
}
SqlCommand cmd = new SqlCommand("delusr", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@uc", SqlDbType.Int).Value = p.p_usrcod;
cmd.ExecuteNonQuery();
cmd.Dispose();
con.Close();
}
public List<clsusrprp> dsp_rec()
{
if (con.State == ConnectionState.Closed)
{
con.Open();
}
SqlCommand cmd = new SqlCommand("dspusr", con);
cmd.CommandType = CommandType.StoredProcedure;
SqlDataReader dr = cmd.ExecuteReader();
List<clsusrprp> Obj = new List<clsusrprp>();
while (dr.Read())
{
clsusrprp k = new clsusrprp();
k.p_usrcod = Convert.ToInt32(dr[0]);
//k.p_usrnam = Convert.ToInt32(dr[0]);
k.p_usrnam = dr[1].ToString();
k.p_usrpwd = dr[2].ToString();
k.p_usrsts = Convert.ToChar(dr[3]);
k.p_usrcrtdate = Convert.ToDateTime(dr[4]);
k.p_usrfrstname = dr[5].ToString();
k.p_usrlstname = dr[6].ToString();
k.p_usrtyp = dr[7].ToString();
Obj.Add(k);
}
dr.Close();
cmd.Dispose();
con.Close();
return Obj;
}
public List<clsusrprp> find_rec(Int32 uc)
{
if (con.State == ConnectionState.Closed)
{
con.Open();
}
SqlCommand cmd = new SqlCommand("fndusr", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@uc", SqlDbType.Int).Value = uc;
SqlDataReader dr = cmd.ExecuteReader();
List<clsusrprp> obj = new List<clsusrprp>();
if (dr.HasRows)
{
dr.Read();
clsusrprp k = new clsusrprp();
k.p_usrcod = Convert.ToInt32(dr[0]);
k.p_usrnam = dr[1].ToString();
k.p_usrpwd = dr[2].ToString();
k.p_usrsts = Convert.ToChar(dr[3]);
k.p_usrcrtdate = Convert.ToDateTime(dr[4]);
k.p_usrfrstname = dr[5].ToString();
k.p_usrlstname = dr[6].ToString();
k.p_usrtyp = dr[7].ToString();
obj.Add(k);
}
dr.Close();
cmd.Dispose();
con.Close();
return obj;
}
public interface intpag
{
Int32 p_pagcod
{
get;
set;
}
Int32 p_pagmnucod
{
get;
set;
}
String p_pagtitle
{
get;
set;
}
String p_pagcon
{
get;
set;
}
String p_pagmettkey
{
get;
set;
}
string p_pagmetdsc
{
get;
set;
}
DateTime p_pagcrtdat
{
get;
set;
}
}
public class clspagprp : intpag
{
private Int32 pd, pmc;
private String pt, pc, pmk, pmd;
}
dr.Close();
cmd.Dispose();
con.Close();
return Obj;
}
public List<clspagprp> fnd_rec(Int32 pd)
{
if (con.State == ConnectionState.Closed)
{
con.Open();
}
SqlCommand cmd = new SqlCommand("findpag", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@pd", SqlDbType.Int).Value = pd;
SqlDataReader dr = cmd.ExecuteReader();
List<clspagprp> obj = new List<clspagprp>();
if (dr.HasRows)
{
dr.Read();
clspagprp k = new clspagprp();
k.p_pagcod = Convert.ToInt32(dr[0]);
k.p_pagmnucod = Convert.ToInt32(dr[1]);
k.p_pagtitle = dr[2].ToString();
k.p_pagcon = dr[3].ToString();
k.p_pagmettkey = dr[4].ToString();
k.p_pagmetdsc = dr[5].ToString();
k.p_pagcrtdat = DateTime.Now;
obj.Add(k);
}
dr.Close();
cmd.Dispose();
con.Close();
return obj;
}
}
public interface intmnu
{
Int32 p_mnucod
{
get;
set;
}
String p_mnunam
{
get;
set;
}
Int32 p_mnuparmnucode
{
get;
set;
}
Int32 p_mnudspord
{
get;
set;
}
String p_mnuusrtyp
get;
set;
}
}
public class clsmnuprp : intmnu
{
private Int32 mc, mpmc, mdp;
private String mn, mut;
public int p_mnucod
{
get
{
return mc;
}
set
{
mc = value;
}
}
public string p_mnunam
{
get
{
return mn;
}
set
{
mn = value;
}
}
public int p_mnuparmnucode
{
get
{
return mpmc;
}
set
{
mpmc = value;
}
}
public int p_mnudspord
{
get
{
return mdp;
}
set
{
mdp = value;
}
}
public string p_mnuusrtyp
{
get
{
return mut;
}
set
{
mut = value;
}
}
SqlDataReader dr = cmd.ExecuteReader();
List<clsmnuprp> obj = new List<clsmnuprp>();
if (dr.HasRows)
{
dr.Read();
clsmnuprp k = new clsmnuprp();
k.p_mnucod = Convert.ToInt32(dr[0]);
//k.p_mnucod = Convert.ToInt32(dr[0]);
k.p_mnunam = dr[1].ToString();
k.p_mnuparmnucode = Convert.ToInt32(dr[2]);
k.p_mnudspord = Convert.ToInt32(dr[3]);
k.p_mnuusrtyp = dr[4].ToString();
obj.Add(k);
}
dr.Close();
cmd.Dispose();
con.Close();
return obj;
}
}