Sei sulla pagina 1di 56

EVENT MANAGEMENT

Submitted in the partial fulfillment of the

Requirement for the Bachelor degree

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

(Affiliated to University of Madras)

BONAFIDECERTIFICATE

This is to certify that this is a bonafide record of the project done by

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

Head of Department Internal Guide External Examiner


ACKNOWLEDGEMENT

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

3.2 USER MODULE………………………………………………………4


3.3 UMLDIAGRAMS…………………………………………………..... 5
3.4 DATADICTIONARY……………………………………………….. 9
4. SYSTEMDESIGN
4.1 INTRODUCTION……………………………………………………..12
4.2 SCREEN DESIGN…………………………………………………….13
4.3 REPORT DESIGN…………………………………………………….18
5. CODING……………………………………………………………………20
6. TESTING………………………………………………………………… 46
7. SYSTEMIMPLEMENTATION…………………………………………..49
8. FUTUREENHANCEMENTS…………………………………………… 50
9. CONCLUSION……………………………………………………………..51
10. BIBLIOGRAPHY…………………………………………………………52
1.1 INTRODUCTION
Event Management is a useful application for students. This application is used for
Registering Various Events, which is conducted by our college. It manages all the
information about events. The purpose of the project is to build an application
program, which reduce manual works for managing events. It tells about the details
and Number of participants can participate for an events. We can see upcoming
events. We can also view the exact location of the events, which is conducted in
other places using Google Map.Using this application; we can make payments for
events.NSS/YRC students can also register for their credit programs through
online. They can see their exact venue.

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

Operating System Windows


Front End ASP.NET
Back End SQL server Management

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

Login Event Logout


☻ Page Update

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

Year Varchar 50 Current year

DOB Varchar 50 Student DOB


Mobile No Varchar 50 Student Mobile No
PRIMARY KEY User ID

Event Updating Table:


DESCRIPTION:
This table contain detailed information about Events.
Column Name Data Type Size Description
Event Name Varchar 50 Name of Event
Detail Varchar 50 Detail of events
Venue Varchar 50 Venue details

Contact Varchar 50 In charge person


contact detail
PRIMARY KEY Event 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

Credit Updating Table:


DESCRIPTION:
This table contains Credit (hours) details for NSS/YRC student.
Column Name Data Type Size DESCRIPTION

User ID Varchar 50 Student Id

Hours Varchar 50 Hours completed


by student.
PRIMARY KEY User ID

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

Event Updating Table:


DESCRIPTION:
This table contains detail of all events.
Column Name Data Type Size DESCRIPTION
Event Varchar 50 Event Name
Detail Varchar 50 Details about the
events.
Venue Varchar 50 Venue detail.
Contact Varchar 50 Contact person.
PRIMARY KEY Event

11
4. SYSTEM DESIGN
4.1 Introduction

System design is the process of defining the architecture, components, modules,


interface, and data for for a system to satisfy specified requirement.The design of
our system consists of the following:

Screen design-screenshots of webpages.


Report design-screenshots of the report

12
4.2 Screen design
Home Page:

NSS Signup Page:

13
NSS Login:

Event Register Page:

14
Event Location Page:

Stella events Signup Page:

15
Stella Events Login Page:

Event List Page:

16
SE Admin Login:

Event Update Page:

17
4.3 SE Report Pages:

NSS Admin Login Page:

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>

<img alt="logo" class="auto-style23" src="oo.jpg" /></div>


<strong><em>
<marquee id="my" direction="right" runat="server" class="auto-style6">Stella
Events</marquee></em></strong>

</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;

public partial class home : System.Web.UI.Page


{
protected void Page_Load(object sender, EventArgs e)
{

protected void ImageButton1_Click(object sender, ImageClickEventArgs e)


{
Response.Redirect("register.aspx");
}

protected void ImageButton2_Click(object sender, ImageClickEventArgs e)


{
Response.Redirect("login.aspx");
}

protected void ImageButton4_Click(object sender, ImageClickEventArgs e)


{
Response.Redirect("seregister.aspx");
}
22
protected void ImageButton3_Click(object sender, ImageClickEventArgs e)
{
Response.Redirect("selogin.aspx");
}
}
NSS Signup:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="register.aspx.cs" Inherits="register"
%>

<!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>
&nbsp;</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;

public partial class login : System.Web.UI.Page


{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
Session["UserId"] = TextBox1.Text;
string u = TextBox1.Text;
string p = TextBox4.Text;
string un = "";
string pn = "";
try
{
SqlConnection con = new
SqlConnection(ConfigurationManager.ConnectionStrings["Event"].ConnectionString);
con.Open();
string sel = "select * from NSSRegistration where UserId=@UserId";
SqlCommand cmd = new SqlCommand(sel, con);
// cmd.CommandTimeout = 60;
SqlParameter p1 = new SqlParameter("@UserId", TextBox1.Text);
cmd.Parameters.Add(p1);
SqlDataReader rd = cmd.ExecuteReader();
while (rd.Read())
{
un = rd["UserId"].ToString();
pn = rd["DOB"].ToString();

}
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>");
}}

protected void ImageButton1_Click(object sender, ImageClickEventArgs e)


{
Session["Eventname"] = DropDownList1.Text;

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());
}
}

protected void Button1_Click(object sender, EventArgs e)


{
FormView1.Visible = true;

protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)


{
}
Event Register page:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="details.aspx.cs" Inherits="details" %>

<!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;

public partial class details : System.Web.UI.Page


{

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
{

SqlConnection con = new


SqlConnection(ConfigurationManager.ConnectionStrings["Event"].ConnectionString);

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;
}

<div class="auto-style117"><div class="auto-style115"><iframe id="gmap_canvas"


src="https://maps.google.com/maps?q=chennai%20merina%20light%20house&t=&z=13&ie=UTF8&iwl
oc=&output=embed" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" class="auto-
style116"></iframe><a href="https://www.embedgooglemap.net"></a></div><style>.mapouter{text-
align:right;height:500px;width:600px;}.gmap_canvas
{overflow:hidden;background:none!important;height:500px;width:600px;}

.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)
{

protected void TextBox3_TextChanged(object sender, EventArgs e)


{

protected void ImageButton1_Click(object sender, ImageClickEventArgs e)


{
Session["Username"] = TextBox2.Text;
string u = TextBox2.Text;
string p = TextBox3.Text;
string un = "";
string pn = "";
try
{
SqlConnection con = new
SqlConnection(ConfigurationManager.ConnectionStrings["Studentreg"].ConnectionString);
con.Open();
string sel = "select * from seregister where UserName=@UserName";
SqlCommand cmd = new SqlCommand(sel, con);
cmd.CommandTimeout = 990;
SqlParameter p1 = new SqlParameter("@UserName", TextBox2.Text);
cmd.Parameters.Add(p1);
SqlDataReader rd = cmd.ExecuteReader(); 37
while (rd.Read())
{
un = rd["UserName"].ToString();
pn = rd["Password"].ToString();

}
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>

<asp:Label ID="Label3" runat="server" CssClass="auto-style19"></asp:Label>


<asp:Label ID="Label4" runat="server" CssClass="auto-style20"></asp:Label>
<asp:Label ID="Label5" runat="server" CssClass="auto-style21"></asp:Label>
<asp:Image ID="Image2" runat="server" ImageUrl="~/music.jpg" Width="185px"
AlternateText="Singing" Height="162px" />
</div>
<asp:Button ID="Button2" runat="server" BackColor="#9999FF" CssClass="auto-style7"
OnClick="Button2_Click" Text="View Details" />
<asp:Label ID="Label8" runat="server" CssClass="auto-style24" Text="Details:"></asp:Label>
<asp:Label ID="Label10" runat="server" CssClass="auto-style27" Text="Address:"></asp:Label>
<asp:Label ID="Label11" runat="server" CssClass="auto-style26" Text="Rules:"></asp:Label>
38
<asp:Image ID="Image3" runat="server" AlternateText="Tamil Speach" ImageUrl="~/speech.jpg"
Width="182px" Height="159px" />
</div>
<div class="auto-style6">
<p>
&nbsp;</p>
<asp:Label ID="Label16" runat="server" CssClass="auto-style39" Text="Contact:"></asp:Label>
<asp:Label ID="Label17" runat="server" CssClass="auto-style40" Text="Welcome,"></asp:Label>
<asp:Label ID="Label19" runat="server" CssClass="auto-style41"></asp:Label>
<asp:Label ID="Label20" runat="server" CssClass="auto-style42"></asp:Label>
<asp:Label ID="Label21" runat="server" CssClass="auto-style45"></asp:Label>
<asp:Label ID="Label22" runat="server" CssClass="auto-style46"></asp:Label>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$
ConnectionStrings:Studentreg %>" SelectCommand="SELECT [UserId], [Department], [UserName],
[Password] FROM [seregister]"></asp:SqlDataSource>
</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.Data.SqlClient;
using System.Data;
using System.Configuration;
public partial class eventdetail : System.Web.UI.Page
{

protected void Page_Load(object sender, EventArgs e)


{
ImageButton1.Visible = true;
// ImageButton2.Visible = false;
Session["amount"] = Label21.Text;
Label22.Text = Session["username"].ToString();

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();
}

catch (Exception ex)


{

Response.Write(ex.ToString());
}

protected void Button1_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='" + Image2.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();
}

catch (Exception ex)


{
Label5.Text = ex.ToString();
//Response.Write("<script>alert('Error')</script>");
}

} 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();
}
}

catch (Exception ex)


{
Label5.Text = ex.ToString();
//Response.Write("<script>alert('Error')</script>");
}

protected void SqlDataSource1_Selecting(object sender, SqlDataSourceSelectingEventArgs e)


{

protected void Button4_Click(object sender, EventArgs e)


{

protected void ImageButton1_Click(object sender, ImageClickEventArgs e)


{
Session["event"] = Label7.Text;
Session["UserId"] = Label19.Text;
Session["department"] = Label20.Text;
Session["username"] = Label22.Text; 41
string enn = Label19.Text;
string en = "";
string id1 = Label7.Text;
string id2 = "";

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();

if ((enn == en) && (id2 == id1))


{
Response.Write("<script>alert('Already Registered')</script>");

}
else if (Label21.Text == "")
{
Response.Redirect("sestudetail.aspx");
}

else if (Label21.Text != "")


{
Response.Redirect("fee.aspx");

}
}

catch(Exception ex)
{
Response.Write(ex);
}

protected void Button3_Click(object sender, EventArgs e)


{
Try 42
{
SqlConnection con = new
SqlConnection(ConfigurationManager.ConnectionStrings["Studentreg"].ConnectionString);
con.Open();
string ins = "select Eventname,Details,Rules,Address,Contact,Amount from events where
Eventname='" + Image4.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();
}
}

catch (Exception ex)


{
Label5.Text = ex.ToString();
//Response.Write("<script>alert('Error')</script>");
}
}
}
Registration Page:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="sestudetail.aspx.cs"
Inherits="sestudetail" %>

<!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">

<asp:Label ID="Label16" runat="server" CssClass="auto-style39" Text="Student Id:"></asp:Label>


<asp:Label ID="Label17" runat="server" CssClass="auto-style40" Text="Welcome,"></asp:Label>
43
<asp:Label ID="Label20" runat="server" CssClass="auto-style42"></asp:Label>
<asp:Label ID="Label21" runat="server" CssClass="auto-style45">Mobile NO:</asp:Label>
<asp:Label ID="Label22" runat="server" CssClass="auto-style46"></asp:Label>
<asp:TextBox ID="TextBox1" runat="server" CssClass="auto-style55"></asp:TextBox>
<asp:Label ID="Label23" runat="server" CssClass="auto-style57"></asp:Label>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox1" CssClass="auto-style58" ErrorMessage="enter
mobile"></asp:RequiredFieldValidator>
</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 sestudetail : System.Web.UI.Page


{
protected void Page_Load(object sender, EventArgs e)
{
Label10.Text = Session["event"].ToString();
Label4.Text = Session["UserId"].ToString();
Label5.Text = Session["department"].ToString();
Label22.Text = Session["username"].ToString();

}
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{

try
{
SqlConnection con = new
SqlConnection(ConfigurationManager.ConnectionStrings["Studentreg"].ConnectionString);
con.Open();

string ins = "insert into SEreport


values(@StudentId,@username,@EventName,@Department,@MobileNo)";
SqlCommand cmd1 = new SqlCommand(ins, con);
SqlParameter p1 = new SqlParameter("@StudentId", Label4.Text);
SqlParameter p2 = new SqlParameter("@MobileNo", TextBox1.Text);
SqlParameter p3 = new SqlParameter("@EventName", Label10.Text);
SqlParameter p4 = new SqlParameter("@Department", Label5.Text);
SqlParameter p5 = new SqlParameter("@username", Label22.Text);

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:

Screen Name: Home Page

Test Case id: 1

Test Name: Home

Purpose: Ensure that users reach login Page.

Pre-Condition: None
Step User Action Expected Actual Result Status(Pass/Fail)
Result

1 Launch the The Home The Home Pass


program Screen appears screen appears

2 Click button Login Login window Pass


Window displays
displays
3 Close
Application

Post-Condition: None

Valid test Data: N/A

Test case id: 2

Test Name: Login 46


Purpose: to check if user exist or not

Pre-Condition: users need to have an account.

Step User Action Expected Actual Result Status(Pass/Fail)


results
1 Type the valid
userid and
password
2 Click the login Main Design Main Design Pass
button page appears page appears
with users with users
name name
3 Successfully
logged in
4 If not,user Navigate to Navigate to the Pass
clicks the registration registration
signup page page
Post-condition: None

Valid Test Data: userid and password

Screen Name: NSS Registration Page

Test Case id: 3

Test name: Registration (signup)

Purpose: Ensure that the user successfully creates an account.

User Action Expected Result Actual Results Status(Pass/Fail)


Step
1 Type in the valid
student
id,username,password
2 Click register buton Display Display Pass
message”registered message”registered
successfully” successfully”
3 If user alredy have an Display Display Pass
account message”already message”already
registered” registered”

Post-Condition: User should login to proceed.

Valid Test Data: Studentid, password, year

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

 Eloquent JavaScript: A modern introduction to programming by Marjin


haverbeke.
 HTML & CSS:Degisn and Build Web Sites Book by jon Duckett
 Learning Visual Basic .Net by jesse Liberty.

WEBSITE REFERENCES
 www.w3schools.com
 www.tutorialpoint.com
 www.stackoverflow.com
 www.techopedia.com

52

Potrebbero piacerti anche