Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
In
Computer Application
By
A. YOGALAKSHMI
16/UCSB/506
G. KEERTHANA
16/UCSB/552
November2018-March2019
StellaMarisCollege (Autonomous)
17, Cathedral Road,
Chennai-600086.
Stella Maris College (Autonomous)
17, CathedralRoad,
Chennai-600086.
Bachelor degree
In
ComputerApplication
BONAFIDECERTIFICATE
A. YOGALAKSHMI
G. KEERTHANA
On
EVENT MANAGEMENT
At
StellaMarisCollege
November2017-March2018
This project was done by them in the partial fulfillment of the
Requirements for the Bachelor degree in ComputerApplication
We are deeply indebted to God the Almighty for being the source of our strength, guide,
confidence and inspiration.
We thank Rev Dr.sr. Rosy Joseph principal Stella Maris College (Autonomous), Chennai-
for giving us the opportunity to do our project in this great institution.
We sincerely thank Mrs.Jeyapriya, M.C.A., and andM.Phil. Head, Department of Computer
Science, forsupporting and encouragingus.
We thank our project guide Ms. RoselinClara. M.C.A. for her continuous support,
guidance and encouragement throughout this project.
We also thank our friends, computer science department and respondents who contributed
to this successful project.
TOPIC PAGENO
1. INTRODUCTION…………………………………………………………1
2. PROJECTREQUIREMENTSANDSPECIFICATIONS
2.1 REQUIREMENT ANALYSIS – PROPOSED SYSTEM STUDY…...2
2.2 FEASIBILITY STUDY……………………………………………….2
2.3 HARDWARE AND SOFTWARE SPECIFICATIONS………………3
3. SYSTEMANALYSIS
3.1 SYSTEM STUDY……………………………………………………..4
1
2. PROJECT REQUIREMENT AND SPECIFICATIONS
2.1 REQUIREMENT ANALYSIS-PROPOSED SYSTEM UNDER STUDY.
EXISTING SYSTEM:
Registration done manually. It is time consuming and tedious process. Man power
should be high for the system to be efficient. Hence, this system is not suitable.
PROPOSED SYSTEM:
The Proposed online event management system will eliminate all the manual
interventions and it increases the speed of the entire process. Using this registration
done easily, quickly and there is no need of man power.
2.2 FEASIBILITY STUDY:
Stella Events is an event management system. By using this various user can
register and participant in different events.
TECHNICAL FEASIBILITY:
Stella Events is a web Application that avoids more manual hours that need to
spend in record keeping and generating reports. This Application keeps the data in
centralized way, which is available to all the event managers. Database keeps
records. It is Time Saving.
ECONOMIC FEASIBILITY:
As no Paper required so reduced cost. All students Aware of technologies so no
special skills required to use the system.
2
2.3 HARDWARE AND SOFTWARE SPECIFICATIONS
HARDWARE REQUIREMENTS
Processor Intel Pentium
RAM 256 Mb or more
Hard Disk 700 Mb or more
SOFTWARE REQUIREMENTS
3
3. SYSTEM ANALYSIS:
System analysis is a problem Solving Technique, which decomposes a system onto
its components pieces for the studying how well the components parts work and
interact to accomplish their purpose.
3.1. SYSTEM STUDY
The system of two modules. They are
1. User Module.
2. Admin Module
3.2 USER MODULE:
NSS/YRC Students are the User. First, they have to register for their events. After
registration, (sign up) user can login their accounts and they can register for their
events.
Other students also can register (sign up) for their events.
ADMIN MODULE:
Here Admin are the teachers they can update events and they can view details of
participants for the events and their details.
4
3.3 UML DIAGRAM
Activity Diagram
For Students/Users (Both NSS&other Students)
Registration Page:
If details
Enter the
☻ Register are Submit
Details correct
Required
R
LogIn
If
details
are
wrong
5
Login: If details are Edit
Detail
Wrong
s
If details
Enter are Register
☻ Enter User
Password correct events
Name
Logout
Admin Login Page:
If details
are wrong
If
Enter User Enter details Update
☻ are, Event
Logout
ID Password
correct details
7
Use Case Diagram:
NSS/YRC
Registration
Main View
☻ Home NSS/YR Event
C Login Page regis location
Other
Eventsreg
Logout
Other
Event Main Event
View
Login Page Page
Location
n
Logout
Admin Page:
Delete
Events
Update
Events
3.4.DATA DICTIONARY:
NSS/YRC Registration:
DESCRIPTION:
The Table contains All the Login details of NSS/YRC student.
Column Name Data Type Size Description
User ID Varchar 50 Student’s Id
Name Varchar 50 Student’s Name
9
Event Registered Table:
DESCRIPTION:
This table contains registered students details.
Column Name Data Type Size DESCRIPTION
Event Name Varchar 50 Registered event
name
User ID Varchar 50 Registered student
ID
Name Varchar 50 Registered Student
Name
Mobile No Varchar 50 Mobile no of
student.
PRIMARY KEY Null
10
STELLA EVENTS DATA DICTIONARY:
Registration Table:
DESCRIPTION:
This Table contains All the Login details of students.
Column Name Data Type Size DESCRIPTION
Student ID Varchar 50 Student ID
User Name Varchar 50 User name which
student creates.
Department Varchar 50 Department of
student.
Password Varchar 50 Student created
Password.
Name Varchar 50 Name of students.
PRIMARY KEY Student ID
11
4. SYSTEM DESIGN
4.1 Introduction
12
4.2 Screen design
Home Page:
13
NSS Login:
14
Event Location Page:
15
Stella Events Login Page:
16
SE Admin Login:
17
4.3 SE Report Pages:
18
NSS Event Update Page:
19
Home page:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="home.aspx.cs" Inherits="home" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
#b{
border:2px dashed red;
/*border-radius:25px;*/
padding:30px;
}
.auto-style3 {
position: absolute;
top: 442px;
left: 40px;
z-index: 1;
width: 34%;
height: 31%;
right: 616px;
}
.auto-style5 {
position: absolute;
top: 44px;
left: 336px;
z-index: 1;
width: 179px;
height: 132px;
color: #CC0099;
font-size: large;
font-family: Georgia, "Times New Roman", Times, serif;
}
.auto-style6 {
position: absolute;
top: 389px;
left: 16px;
z-index: 1;
color: #000066;
font-family: "Adobe Garamond Pro";
font-size: xx-large;
}
ul
{
margin:0px;
padding:0px;
list-style:none; 20
}
ul li
{
float:left;
width:200px;
height:40px;
background-color:black;
line-height:30px;
text-align:center;
font-size:20px;
}
ul li a{
text-decoration:none;
color:white;
display:block;
}
ul li a:hover
{
background-color:burlywood;
}
ul li ul li
{
display:none;
}
ul li:hover ul li
{
display:block;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
<div class="auto-style24" style="background-image:url('cup.png')">
<div class="auto-style64">
<ul>
<li class="auto-style67"><a href="home.aspx">HOME</a></li>
<li class="auto-style68"><a class="auto-style76">NSS/YRC</a>
<ul>
<li><a href="register.aspx">NSS REGISTERATION</a></li>
<li><a href="login.aspx">NSS LOGIN</a></li>
</ul> 21
</li>
<li class="auto-style69"><a class="auto-style75">STELLA EVENTS</a>
<ul>
<li><a href="seregister.aspx">SE REGISTERATION</a></li>
<li><a href="selogin.aspx">SE LOGIN</a></li>
</ul>
</li>
<li class="auto-style70"><a href="seadmin.aspx" class="auto-style74">ADMIN</a>
<ul>
<li><a href="seadmin.aspx">SE ADMIN</a></li>
<li><a href="adminlogin.aspx">NSS ADMIN</a></li>
</ul>
</li>
</form>
</body>
</html>
Home cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
.auto-style2 {
width: 1125px;
height: 46px;
position: absolute;
top: 632px;
left: 89px;
z-index: 1;
background-color: #99CCFF;
}
#y{
background-color:white;
width:45%;
height:53%;
border-radius:25px;
}
#z{
background-color:white;
width:40%;
height:38%;
}
#k{
background-color:white;
width:40%;
height:33%;
}
#e{
width:90%;
height:5%;
background-color:skyblue;
}
ul
{
margin:0px;
padding:0px;
list-style:none; 23
}
</style>
</head>
<body>
<form id="form1" runat="server">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox1" CssClass="auto-style46" ErrorMessage="Enter User
ID*"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
ControlToValidate="DropDownList1" CssClass="auto-style48" ErrorMessage="Select
Year*"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
ControlToValidate="TextBox5" CssClass="auto-style50" ErrorMessage="Enter
DOB*"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"
ControlToValidate="TextBox6" CssClass="auto-style51" ErrorMessage="Enter
Mob.No"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="TextBox1" CssClass="auto-style52" ErrorMessage="Invali User ID*"
ValidationExpression="[0-9]{2}(/)[A-Za-z]{4}(/)[0-9]{3}"></asp:RegularExpressionValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="TextBox4" CssClass="auto-style47" ErrorMessage="Enter
Name*"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server"
ControlToValidate="TextBox5" CssClass="auto-style54" ErrorMessage="Invalid DOB*"
ValidationExpression="[0-9]{2}(/)[0-9]{2}(/)[0-9]{4}"></asp:RegularExpressionValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server"
ControlToValidate="TextBox6" CssClass="auto-style55" ErrorMessage="Invalid Mob.No*"
ValidationExpression="(7|8|9)[0-9]{9}"></asp:RegularExpressionValidator>
<asp:TextBox ID="TextBox6" runat="server" CssClass="auto-style56"></asp:TextBox>
<asp:DropDownList ID="DropDownList1" runat="server" CssClass="auto-style57">
<asp:ListItem>Select</asp:ListItem>
<asp:ListItem>1st Year</asp:ListItem>
<asp:ListItem>2nd Year</asp:ListItem>
<asp:ListItem>3rd Year</asp:ListItem>
</asp:DropDownList>
</div>
<tr>
<td class="auto-style91">
<br />
<asp:Image ID="Image2" runat="server" CssClass="auto-style86"
ImageUrl="~/nyl.png" />
<br />
<br />
<br />
At Stella Maris, it is mandatory for students to enroll in NSS/NCC/Games/Youth Red
Cross activities</td>
</tr>
</table>
</form> 24
</body>
</html>
Cs 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;
public partial class register : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
try
{
SqlConnection con = new
SqlConnection(ConfigurationManager.ConnectionStrings["Event"].ConnectionString);
con.Open();
string ins = "insert into NSSRegistration values(@UserId,@Name,@Year,@DOB,@Mobile)";
SqlCommand cmd = new SqlCommand(ins, con);
SqlParameter p1 = new SqlParameter("@UserId", TextBox1.Text);
SqlParameter p2 = new SqlParameter("@Name", TextBox4.Text);
SqlParameter p3 = new SqlParameter("@Year", DropDownList1.Text);
SqlParameter p4 = new SqlParameter("@DOB", TextBox5.Text);
SqlParameter p5 = new SqlParameter("@Mobile", TextBox6.Text);
cmd.Parameters.Add(p1);
cmd.Parameters.Add(p2);
cmd.Parameters.Add(p3);
cmd.Parameters.Add(p4);
cmd.Parameters.Add(p5);
cmd.ExecuteNonQuery();
Response.Write("<script>alert('Sucess')</script>");
}
catch (Exception ex)
{
Label20.Text = ex.ToString();
// Response.Write("<script>alert('Error')</script>");
}
}
protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
{
Response.Redirect("login.aspx");
} 25
}
NSS LOGIN:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
.auto-style2 {
width: 1125px;
height: 46px;
position: absolute;
top: 597px;
left: 91px;
z-index: 1;
background-color: #99CCFF;
}
</head>
<body>
<form id="form1" runat="server">
Registration/Login"></asp:Label>
<asp:Label ID="Label13" runat="server" CssClass="auto-style31" Text="User ID"></asp:Label>
<asp:Label ID="Label16" runat="server" CssClass="auto-style35"
Text="Password"></asp:Label>
<asp:TextBox ID="TextBox1" runat="server" CssClass="auto-style39"></asp:TextBox>
<asp:TextBox ID="TextBox4" runat="server" CssClass="auto-style42"></asp:TextBox>
</em></strong>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox1" CssClass="auto-style46" ErrorMessage="Enter User
ID*"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
ControlToValidate="TextBox4" CssClass="auto-style50" ErrorMessage="Enter
DOB*"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="TextBox1" CssClass="auto-style52" ErrorMessage="Invali User ID*"
ValidationExpression="[0-9]{2}(/)[A-Za-z]{4}(/)[0-9]{3}"></asp:RegularExpressionValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server"
ControlToValidate="TextBox4" CssClass="auto-style54" ErrorMessage="Invalid DOB*"
ValidationExpression="[0-9]{2}(/)[0-9]{2}(/)[0-9]{4}"></asp:RegularExpressionValidator>
<asp:Label ID="Label20" runat="server" CssClass="auto-style71"
Text="Ex:16/ucsb/506"></asp:Label>
<asp:Label ID="Label21" runat="server" CssClass="auto-style72"
Text="Ex:23/12/1998"></asp:Label>
<asp:Label ID="Label22" runat="server"></asp:Label>
</div>
</form> 26
<p>
</p>
</body>
</html>
Cs 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;
}
if (un == u && pn == p)
{
Response.Redirect("inside.aspx");
}
Else 27
{
Response.Write("<script>alert('invalid Login')</script>");
}
}
catch (Exception ex)
{
Label22.Text = ex.ToString();
}
}
Event list
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="inside.aspx.cs" Inherits="inside" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
.auto-style2 {
width: 1171px;
height: 46px;
position: absolute;
top: 616px;
left: 75px;
z-index: 1;
background-color: #99CCFF;
}
#y{
background-color:peachpuff;
width:45%;
height:53%;
}
#z{
background-color:white;
width:40%;
height:38%;
}
#k{
background-color:white;
width:40%;
height:33%;
}
#e{
width:90%;
height:5%;
background-color:skyblue;
}
h1{
color:steelblue; 28
text-shadow:1px 1px 2px black,0 0 25px white,0 0 5px white;
}
.button{
position:relative;
display:inline-block;
padding:15px 25px;
background-color:skyblue;
background-image:linear-gradient(blue,skyblue);
</form>
</body>
</html>
Cs 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 inside : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Label13.Text = Session["UserId"].ToString();
FormView1.Visible = false;
try
{
SqlConnection con = new
SqlConnection(ConfigurationManager.ConnectionStrings["Event"].ConnectionString);
con.Open();
string ins = "select Hours from credit where UserId='" + Label13.Text + "'";
SqlCommand cmd = new SqlCommand(ins, con);
SqlDataReader rd = cmd.ExecuteReader();
if (rd.Read())
{
Label14.Text = rd["Hours"].ToString();
rd.Close();
con.Close();
}
}
catch (Exception ex)
{
Label12.Text = ex.ToString();
//Response.Write("<script>alert('Error')</script>");
}}
try
{
SqlConnection con = new
SqlConnection(ConfigurationManager.ConnectionStrings["Event"].ConnectionString);
con.Open();
string sel = "select Need from NSSEventUpdate where EventName=@EventName";
SqlCommand cmd = new SqlCommand(sel, con);
// cmd.CommandTimeout = 60;
SqlParameter p1 = new SqlParameter("@EventName", DropDownList1.SelectedValue);
cmd.Parameters.Add(p1);
SqlDataReader rd = cmd.ExecuteReader();
while (rd.Read())
{
Label23.Text = rd["Need"].ToString();
// pn = rd["Password"].ToString();
Session["Need"] = Label23.Text;
Response.Redirect("details.aspx");
}
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server"> 30
<title></title>
<style type="text/css">
ul
{
margin:0px;
padding:0px;
list-style:none;
}
#y{
background-color:peachpuff;
width:45%;
height:53%;
}
#z{
background-color:white;
width:40%;
height:38%;
}
#k{
background-color:white;
width:40%;
height:33%;
}
#e{
width:90%;
height:5%;
background-color:skyblue;
}
h1{
color:steelblue;
text-shadow:1px 1px 2px black,0 0 25px white,0 0 5px white;
}
.auto-style103 {
text-decoration: underline;
font-style: italic;
font-size: x-large;
}
.button{
position:relative;
display:inline-block;
padding:15px 25px;
background-color:skyblue;
background-image:linear-gradient(blue,skyblue);
</style> 31
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
<
</form>
</body>
</html>
CS 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;
int co;
protected void Page_Load(object sender, EventArgs e)
{
Label23.Text = Session["Need"].ToString();
Label20.Text = Session["Eventname"].ToString();
Label13.Text = Session["UserId"].ToString();
try
{
SqlConnection con= new
SqlConnection(ConfigurationManager.ConnectionStrings["Event"].ConnectionString);
con.Open();
string ins = "select Name,Mobile from NSSRegistration where UserId='"+Label13.Text+"'";
SqlCommand cmd = new SqlCommand(ins, con);
SqlDataReader rd = cmd.ExecuteReader();
if (rd.Read())
{
Label17.Text = rd["Name"].ToString();
TextBox1.Text = rd["Mobile"].ToString();
rd.Close();
con.Close();
}
}
catch (Exception ex)
{
//Response.Write("<script>alert('Error')</script>");
} 32
protected void ImageButton5_Click(object sender, ImageClickEventArgs e)
{
int count = int.Parse(Label23.Text);
try
{
con.Open();
string sel = "select COUNT(EventName),EventName,UserId from registered1 where
EventName='" + Label20.Text + "' group by EventName,UserId";
SqlCommand cmd = new SqlCommand(sel, con);
SqlDataReader rd = cmd.ExecuteReader();
while (rd.Read())
{
co = rd.GetInt32(0);
Label19.Text = co.ToString();
}
if (co == count)
{
Response.Write("<script>alert('Event is full')</script>");
}
}
catch (Exception ex)
{
Response.Write(ex);
}
if (co != count)
{
try
{
SqlConnection con = new
SqlConnection(ConfigurationManager.ConnectionStrings["Event"].ConnectionString);
con.Open();
string us = "";
string en = "";
string enn = Label20.Text;
string uss = Label13.Text;
string sel = "select * from registered1 where EventName='" + Label20.Text + "'";
SqlCommand cmd = new SqlCommand(sel, con);
SqlDataReader rd = cmd.ExecuteReader();
while (rd.Read())
{
us = rd["UserId"].ToString();
en = rd["EventName"].ToString();
}
if ((us == uss) && (en == enn)) 33
{
Response.Write("<script>alert('Already Registered')</script>");
}
else if((us!=uss)&&(en==enn))
{
rd.Close();
string ins = "insert into registered1 values(@EventName,@UserId,@MobileNo)";
SqlCommand cmd1 = new SqlCommand(ins, con);
SqlParameter p1 = new SqlParameter("@EventName", Label20.Text);
SqlParameter p2 = new SqlParameter("@UserId", Label13.Text);
SqlParameter p3 = new SqlParameter("@MobileNo", TextBox1.Text);
cmd1.Parameters.Add(p1);
cmd1.Parameters.Add(p2);
cmd1.Parameters.Add(p3);
cmd1.ExecuteNonQuery();
Response.Write("<script>alert('Success')</script>");
con.Close();
}
}
catch (Exception ex)
{
Response.Write(ex);
}
}
}
Map Page:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="maplo.aspx.cs" Inherits="maplo" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
#y{
background-color:peachpuff;
width:45%;
height:53%;
}
#z{
background-color:white;
width:40%;
height:38%;
}
#k{ 34
background-color:white;
width:40%;
height:33%;
}
#e{
width:90%;
height:5%;
background-color:skyblue;
}
.
h1{
color:steelblue;
text-shadow:1px 1px 2px black,0 0 25px white,0 0 5px white;
}
.auto-style115 {
overflow: hidden;
background: none;
height: 324px;
width: 517px;
position: absolute;
top: 155px;
left: 338px;
z-index: 1;
.auto-style116 {
position: absolute;
top: 53px;
left: 41px; 35
z-index: 1;
height: 309px;
width: 449px;
.auto-style117 {
text-align: right;
height: 204px;
width: 321px;
}
</form>
.auto-style118 {
position: absolute;
top: 0px;
left: 600px;
</style></div>
</body>
</html>
stella events login:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="otherlogin.aspx.cs"
Inherits="otherlogin" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
.o{
background-color:lightblue;
width:100%;
height:50px;
}
36
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
CS 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;
public partial class otherlogin : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
if (un == u && pn == p)
{
Response.Redirect("eventdetail.aspx");
}
else
{
Response.Write("<script>alert('invalid Login')</script>");
}
}
catch(Exception ex)
{
Response.Write(ex.ToString());
}
}
}
Event list Page:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="eventdetail.aspx.cs"
Inherits="eventdetail" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
</style>
</head>
<body>
try
{
SqlConnection con = new
SqlConnection(ConfigurationManager.ConnectionStrings["Studentreg"].ConnectionString);
con.Open();
string ins = "select UserId,Department from seregister where UserName='" +Label22.Text + "'";
SqlCommand cmd = new SqlCommand(ins, con);
cmd.CommandTimeout = 980;
// SqlParameter sp = new SqlParameter("@EventName", "confirm");
SqlDataReader rd = cmd.ExecuteReader();
if (rd.Read())
{
Label19.Text = rd["UserId"].ToString(); 39
Label20.Text = rd["Department"].ToString();
rd.Close();
con.Close();
}
Response.Write(ex.ToString());
}
rd.Close();
con.Close();
}
} 40
protected void Button2_Click(object sender, EventArgs e)
{
try
{
SqlConnection con = new
SqlConnection(ConfigurationManager.ConnectionStrings["Studentreg"].ConnectionString);
con.Open();
string ins = "select Eventname,Details,Rules,Address,Contact,Amount from events where
Eventname='" + Image3.AlternateText + "'";
SqlCommand cmd = new SqlCommand(ins, con);
cmd.CommandTimeout = 980;
// SqlParameter sp = new SqlParameter("@EventName", "confirm");
SqlDataReader rd = cmd.ExecuteReader();
if (rd.Read())
{
Label7.Text = rd["Eventname"].ToString();
Label2.Text = rd["Details"].ToString();
Label3.Text = rd["Rules"].ToString();
Label4.Text = rd["Address"].ToString();
Label5.Text = rd["Contact"].ToString();
Label21.Text = rd["Amount"].ToString();
rd.Close();
con.Close();
}
}
try
{
SqlConnection con = new
SqlConnection(ConfigurationManager.ConnectionStrings["Studentreg"].ConnectionString);
con.Open();
string sel = "select * from SEreport where StudentId='" + Label19.Text + "'";
SqlCommand cmd = new SqlCommand(sel, con);
cmd.CommandTimeout = 1100;
SqlDataReader rd = cmd.ExecuteReader();
while (rd.Read())
{
id2= rd["EventName"].ToString();
en = rd["StudentId"].ToString();
}
else if (Label21.Text == "")
{
Response.Redirect("sestudetail.aspx");
}
}
}
catch(Exception ex)
{
Response.Write(ex);
}
rd.Close();
con.Close();
}
}
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
</style>
</head>
<body>
<form id="form1" runat="server">
}
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
try
{
SqlConnection con = new
SqlConnection(ConfigurationManager.ConnectionStrings["Studentreg"].ConnectionString);
con.Open();
cmd1.Parameters.Add(p1);
cmd1.Parameters.Add(p2); 44
cmd1.Parameters.Add(p3);
cmd1.Parameters.Add(p4);
cmd1.Parameters.Add(p5);
cmd1.ExecuteNonQuery();
Response.Write("<script>alert('Success')</script>");
con.Close();
}
catch (Exception ex)
{
Label10.Text = ex.ToString();
}
}}
45
6. TESTING:
After generating the code, we started on with program testing.the testing process
generally focuses on the logic of thesoftware ensuring that all the statement have
been tested,and on the functional externals,that is we conducted tests to uncovered
errors and ensure that defined input will procedure actual results that agree with the
required results.
TEST CASE:
Pre-Condition: None
Step User Action Expected Actual Result Status(Pass/Fail)
Result
Post-Condition: None
48
7. SYSTEM IMPLEMENTATION
The project has two users,
1. 1. User module/Student
2. Administrator/faculty.
Th faculty can login into their account using their faculty id and password. The
student has the privilege to register herself for the events which does required
login.After the faculty login, the faculty can retrieve the number of students who
have registered for events and they also can update new events and credits.The
students can register for any number of events.They can also view their credit
hours.
49
8. FUTURE ENHANCEMENT:
Every work using any technology has a room for improvement. The project has a
very vast scope in future.This project can be updated in near future as and when
required as it very flexible in term of expansion. The project can be hosted on the
internet with our college website.Here we can register for events that are going to
happen in our college.We can make online payments for registration.This website
can be developed as an application to be used by the faculty and students that can
be used at anytime.
50
9. CONCULSION
The project “Stella Events” is a platform where students can register for their
events.The main purpose of the project is to reach out the students what is
happening in the college.NSS/YRC students can register for their credit
programs.They can view the exact location of the events.It saves time.They can
also view their credit hours instantly. Admin logs into their account, they can
update, delete the events and they can also view the report.It is simple, easy to use.
The main goal of the project is to make the work of the faculty and students
simpler. The faculty can perform the activities with minimum use of paper and
pen.
51
10. BIBLIOGRAPHY
WEBSITE REFERENCES
www.w3schools.com
www.tutorialpoint.com
www.stackoverflow.com
www.techopedia.com
52