online hostel management system

39
 ONLINE HOSTEL MANAGEMENT SYSTEM MINI PROJECT REPORT  Submitted by RESHMI RADHAKRISHNAN RINSHA P. A ROOPASREE R  In partial fulfil lment of the r equirements for th e  Degree of B.TECH DEGREE In COMPUTER SCIENCE & ENGINEERING SCHOOL OF ENGINEERING COCHIN UNIVERSITY OF SCIENCE AND TECHNOLOGY COCHIN-682022 APRIL 2014

Upload: yatharth-ranjan

Post on 04-Feb-2018

262 views

Category:

Documents


0 download

TRANSCRIPT

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 1/39

ONLINE HOSTEL

MANAGEMENT SYSTEM

MINI PROJECT REPORT

 Submitted by

RESHMI RADHAKRISHNAN

RINSHA P.A

ROOPASREE R 

 In partial fulfillment of the requirements for the

 Degree of 

B.TECH DEGREE

In

COMPUTER SCIENCE & ENGINEERING

SCHOOL OF ENGINEERING

COCHIN UNIVERSITY OF SCIENCE AND TECHNOLOGY

COCHIN-682022APRIL 2014

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 2/39

DIVISION OF COMPUTER ENGINEERING

SCHOOL OF ENGINEERING

COCHIN UNIVERSITY OF SCIENCE AND TECHNOLOGY

COCHIN-682022

CERTIFICATE

Certifed that this is a bonafde record o the project work entitled

“ONLINE HOSTEL MN!EMENT S"STEM# done b$ the ollowin% st&dents

'ESHMI '(H)'ISHNN*+,+,--.,/'INSH 01*+,+,--.2/

'OO0S'EE '*+,+,--33/

O the 4Ith se5ester6 Co5p&ter Science andEn%ineerin% in the $ear ,-+7 in partial &lfll5ent o the re8&ire5ents to the award o (e%ree 9achelor o Technolo%$ in Co5p&ter Science and En%ineerin% o 

Cochin :ni;ersit$ o Science and Technolo%$1

Mr10ra5od 0a;ithranMrs10reeth

a S

Head o the (epart5ent 0roject !&ide

0lace<Thrikkakara

(ate<2+=-2=+7

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 3/39

ACKNOWLEDGEMENT

Here we gladly prese! !"#s pr$%e! rep$r! $ ONLINE

HOSTEL MANAGEMENT SYSTEM! as par! $' !"e (!"

 se)es!er *+TECH # C$)p,!er 

S#ee ad Eg#eer#g+ A! !"#s !#)e $' s,-)#!!#g !"#s rep$r! we ,se !"#s $pp$r!,#!y !$

)e!#$ !"$se pe$ple w"$ w#!" ,s al$g !"e w$r.+ /e !a.e !"#s $as#$ !$ !"a. G$d

al)#g"!y '$r -less#g ,s w#!" "#s grae ad !a.#g $,r edea$,r !$ a s,ess',l

,l)#a!#$+ /e e!ed $,r s#ere ad "ear!'el! !"a.s !$ $,r es!ee)ed  guide,

 Mrs.Preetha.S '$r pr$#d#g ,s w#!" !"e r#g"! g,#dae ad ad#e a! !"e r,#al %,!,res

ad '$r s"$w#g ,s !"e r#g"! way+ /e e!ed $,r s#ere !"a.s !$ $,r respe!ed  Head Of 

the Division Mr. Pramod Pavithran '$r all$w#g ,s !$ ,se !"e 'a#l#!#es aa#la-le+ /e

w$,ld l#.e !$ !"a. !"e $!"er 'a,l!y )e)-ers als$ a! !"#s $as#$+ Las! -,! $! !"e leas!3

we w$,ld l#.e !$ !"a. 'r#eds '$r !"e s,pp$r! ad e$,rage)e! !"ey "ae g#e ,s

d,r#g !"e $,rse $' $,r w$r.+

S,-)#!!ed -y

RESHMI RADHAKRISHNAN

RINSHA P.A

ROOPASREE R 

ABSTRACT

ONLINE HOSTEL MANAGEMENT S5STEM6 #s s$'!ware deel$ped '$r  )aag#g

ar#$,s a!##!#es # !"e "$s!el+ 7$r !"e pas! 'ew years !"e ,)-er $' ed,a!#$al

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 4/39

#s!#!,!#$s #s #reas#g rap#dly+ T"ere-y !"e ,)-er $' "$s!els #s als$ #reas#g '$r !"e

a$))$da!#$ $' !"e s!,de!s s!,dy#g # !"#s #s!#!,!#$+ Ad "ee !"ere #s a l$! $' s!ra#

$ !"e pers$ w"$ are r,#g !"e "$s!el ad s$'!ware8s are $! ,s,ally ,sed # !"#s

$!e!+ T"#s par!#,lar pr$%e! deals w#!" !"e pr$-le)s $ )aag#g a "$s!el ad a$#ds

!"e pr$-le)s w"#" $,r w"e arr#ed )a,ally+ Ide!#'#a!#$ $' !"e draw-a.s $' !"e

e#s!#g sys!e) leads !$ !"e des#g#g $' $)p,!er#9ed sys!e) !"a! w#ll -e $)pa!#-le !$

!"e e#s!#g sys!e) w#!" !"e sys!e) w"#" #s )$re ,ser 'r#edly ad )$re GUI $r#e!ed+

/e a #)pr$e !"e e''##ey $' !"e sys!e) !",s $er$)e !"e draw-a.s $' !"e e#s!#g

sys!e)+

:#;

LIST OF FIGURES

<+1 =7= '$r "$s!el )aage)e! sys!e) 1>

<+2 =7= '$r s!,de! )$d,le 1>

<+< =7= '$r reg#s!ra!#$ p,rp$se 1?

<+4 =7= '$r se )$d,le 1?

<+@ =7= '$r ad)# )$d,le 1

<+( =7= a&a!#$ p,rp$se 20

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 5/39

[ii]

LIST OF TABLES

<+1 =a!a-ase !a-le '$r s!,de! appl#a!#$ 22

<+2 =a!a-ase !a-le '$r )ess 'ee al,la!#$ 2<

<+< =a!a-ase !a-le '$r 'ee pay)e! s!a!,s 2<

<+4 =a!a-ase !a-le '$r s!,de! aa!#$ reg#s!er 24

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 6/39

LIST OF ABBREVIATIONS

1+ =7= B =a!a 7l$w =#agra)

2+ GUI BGrap"#&al User I!er'a&e

[iii]

TABLE OF CONTENTS

ABSTRACT "

LIST OF TABLES   ""

LIST OF FIGURES """

LIST OF SYMBOLS   """

#. INTRODUCTION   0$

1+1 PROECT ODERDIE/ 0>

1+2 PROECT O*ECTIDES 0?

2. SYSTEM ANALYSIS 0

2+1 EISTING S5STEM 0

2+1PROPOSE= S5STEM 10

%. FEASIBILITY STUDY   ##

<+1 TECHNICAL 7EASI*ILIT5 11

<+2 ECONOMIC 7EASI*ILIT5 11

<+< OPERATIONAL 7EASI*ILIT5   12

&. RE'UIREMENT ANALYSIS AND SPECIFICATION #%

4+1 HAR=/ARE CON7IGURATION 1<

4+2 SO7T/ARE CON7IGURATION 14

(. SYSTEM DESIGN #&

@+1APPLICATION ODERDIE/ 1@

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 7/39

@+1 =ATA7LO/ =IAGRAM 1@

@+2 =ATA*ASE =ESIGN FTA*LE STRUCTURE 20

6. SYSTEM IMPLEMENTATION STRUCTURE 2%

(+1 S5STEM IMPLEMENTATION 2<

(+2 S5STEM TESTING 24

$. CONCLUSION 26

RE7ERENCES 2>

APPENDI) 28

# SOURCE CODE 28

2 SAMPLE SCREEN SHOT &&

CHP!"# $

 I%!#OD&C!IO% 

PROJECT OVERVIEW

T"e $l#e "$s!el )aage)e! sys!e) #s we- -ased s$'!ware !$ pr$#de $llege

s!,de!s a$))$da!#$ !$ !"e ,#ers#!y "$s!el )$re e''##e!ly+ T"#s pr$%e!

als$ .eeps de!a#ls $' !"e "$s!ellers ad appl#ed s!,de!s+ I! #s "eaded -y /arde+

He w#ll -e !"e ad)##s!ra!$r+ 7$r a$))$da!e a large ,)-er $' s!,de!s #!$

"$s!el+

T"#s d$,)e! #s #!eded !$ )##)#9e ",)a w$r.s ad )a.e "$s!el all$a!#$

#s a eas#er %$- '$r ,sa! s!,de!s ad "$s!el a,!"$r#!#es -y pr$#d#g $l#eappl#a!#$ '$r "$s!el a,!$)a!#ally sele! !"e s!,de!s 'r$) !"e wa#!#g l#s! ad

)ess al,la!#$ $)pla#! reg#s!ra!#$ $!#e -$ard e!+ e!+ S!,de!s w#ll ge!

appr$al $!#'#a!#$ # !"e#r )a#ls+ H$s!ellers a #ew $!#e -$ard "$s!el 'ee

)ess )e, -y l$g# #!$ !"e $l#e sys!e)+

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 8/39

PROJECT OBJECTIVES

1• Ma#!a# !"e s!,de!s as "$s!ellers ad wa#!#g l#s! s!,de!s separa!ely

2• Pr$ess all$!)e! l#s!+

3• Ad)# a sed !"e appr$al $!#'#a!#$ !$ eery appr$ed s!,de! #a

e)a#l +

4• A,!$)a!#ally #ser! s!,de!8s de!a#ls !$ !"e "$s!eller8s re$rd w"e !"e

all$!)e! #s $'#r)ed -y !"e ad)# ad dele!ed w"e aa!#$ #s$'$r)ed $r a'!er !"e $,rse ed da!e+

5• S!,de!s a reg#s!er !"e#r $)pla#!s+

6• Ad)# a ed#! $!#e -$ard ad ea" s!,de! a #ew #!+

7• H$s!el sere!ary a al,la!e "$s!el 'ee #l,d#g )ess 'ee ad a ed#!

)ess )e,

8• H$s!ellers a "e. !"e s!a!,s $' eery )$!"8s "$s!el 'ee

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 9/39

CHP!"# '

 S(S!"M %)(SIS 

E)ISTING SYSTEM

T"e e#s!#g sys!e) #s )a,al -ased ad eed l$! $' e''$r!s ad

$s,)e e$,g" !#)e+ I !"e e#s!#g sys!e) we a apply '$r !"e "$s!els $l#e

 -,! !"e all$!)e! pr$esses are d$e )a,ally+ I! )ay lead !$ $rr,p!#$s # !"e

all$a!#$ pr$ess as well as "$s!el 'ee al,la!#$+ T"e e#s!#g sys!e) d$es $!

deals w#!" )ess al,la!#$ ad $)pla#! reg#s!ra!#$+

=ISA=DANTAGES

1• M$re ",)a p$wer

2• M$re s!reg!" ad s!ra# $' )a,al la-$,r eeded

3• Repe!#!#$ $' sa)e pr$ed,re+

4• L$w se,r#!y+

5• =a!a red,day+

6• =#''#,l!y !$ "adle+

7• =#''#,l!y !$ ,pda!e da!a+

Re$rd .eep#g #s d#''#,l!+

8• *a.,p da!a a -e eas#ly geera!ed+

PROPOSED SYSYTEM

T"e pr$p$sed sys!e) #s "a#g )ay ada!ages $er !"e e#s!#g sys!e)+ I!

re,#re less $er"ead ad ery e''##e!+ T"e pr$p$sed sys!e) deals w#!" !"e

)ess al,la!#$ ad all$!)e! pr$ess e''##e!ly+

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 10/39

CHP!"# *

+"SII)I!( S!&D( 

TECHNICAL FEASIBILITY

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 11/39

T"e !e"#al 'eas#-#l#!y # !"e pr$p$sed sys!e) deals w#!" !"e !e"$l$gy

,sed # !"e sys!e)+ I! deals w#!" !"e "ardware ad s$'!ware ,sed # !"e sys!e)

w"e!"er !"ey are $' la!es! !e"$l$gy $r $!+ I! "appes !"a! a'!er a sys!e) #s

 prepared a ew !e"$l$gy ar#ses ad !"e ,ser wa!s !"e sys!e) -ased $ !"a!

!e"$l$gy+ T"#s sys!e) ,se w#d$ws pla!'$r) +e! as 'r$! ed !e"$l$gy ad

sl serer as -a.ed !e"$l$gy+ T",s ONLINE HOSTEL MANAGEMENT

S5STEM #s !e"#ally 'eas#-le+

ECONOMICAL FEASIBILITY

E$$)# aalys#s #s !"e )$s! 're,e!ly ,sed )e!"$d '$r 

eal,a!#g !"e e''e!#eess $' a ew sys!e)+ M$re $))$ly .$w as

$s!J-ee'#! aalys#s+ +e! ,s#g #s,al CK ad sl da!da-ase eas#ly aa#la-le #

#!ere!

OPERATIONAL FEASIBILITY

T"e pr$%e! "as -ee deel$ped # s," a way !"a! #! -e$)es ery easy

ee '$r a pers$ w#!" l#!!le $)p,!er .$wledge !$ $pera!e #!+ T"#s s$'!ware #s

ery ,ser 'r#edly ad d$es $! re,#re ay !e"#al pers$ !$ $pera!e +T",s !"e

 pr$%e! #s ee $pera!#$ally 'eas#-le+

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 12/39

RE'UIREMENT ANALYSIS AND SPECIFICATION

7,!#$s ad 'ea!,res del#ered !$ !"e ed ,sers

T"e ed ,sers $' !"e pr$p$sed sys!e) are

A*+"n",/ +*134

I ad)##s!ra!$r )$d,le ad)##s!ra!$r )aages !"e )as!er da!a8s l#.e serer de!a#ls ad

s!,de! de!a#ls+ Aep! !"e appl#a!#$ $' s!,de!s #ew !"e appl#a!#$ '$r)s re%e! !"e

'a.e appl#a!#$s #ew !"e $)pla#!s $' !"e s!,de!s # !"e "$s!el aep! !"e aa!#g

'$r) ad dele!e 'r$) !"e da!a-ase ed#! !"e $!#e -$ards ad #ew $)pla#!s+

S1*3n M*134

I s!,de! )$d,le !"ey a S,-)#! appl#a!#$ '$r) "age passw$rd a "e. s!a!,s

#ew $!#e -$ard #ew )$!"ly "$s!el 'ee ad s,-)#! !"e aa!#g '$r)+

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 13/39

S353/ M*13

I sere!ary )$d,le !"e sere!ary a al,la!e !"e )ess -#ll ad ed#! !"e )ess )e, #ew

!"e $!#e -$ard ad als$ "age !"e passw$rd+

HARDWARE CONFIGURATION

T"e se!#$ $' "ardware $'#g,ra!#$ #s a #)p$r!a! !as. rela!ed !$ !"e

s$'!ware deel$p)e! #s,''##e! rad$) aess )e)$ry )ay a''e! adersely $ !"e

speed ad e''##ey $' !"e e!#re sys!e)+ T"e pr$ess s"$,ld -e p$wer',l !$ "adle !"e

e!#re $pera!#$s+ T"e "ard d#s. s"$,ld "ae s,''##e! apa#!y !$ s!$re !"e '#le ad

appl#a!#$+

Pr$ess$r Pe!#,) ID ad a-$e

Pr$ess$r speed 1+4 GH9 Owards

Sys!e) )e)$ry 12? M- )##),) 2@( M- re$))eded

Ca"e s#9e @12 *

RAM @12 M*FM##),)

 Ne!w$r. ard Ay ard a pr$#de a 100)-ps speed

 Ne!w$r. $e!#$ UTP $r C$a#le a-le $e!#$

Pr#!er I.%e!JLaser C$l$r pr#!er pr$#des a! leas! 1000 =p#

Hard d#s. ?0G-

M$#!$r SDGA C$l$r 1@6

M$,se 104 .eys US ey Ser#al US* $r PSJ2

M$de) @(+( -ps

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 14/39

SOFTWARE CONFIGURATION

A )a%$r ele)e! # -,#ld#g a sys!e) #s !"e se!#$ $' $)pa!#-le s$'!ware s#e !"e

s$'!ware # !"e )ar.e! #s eper#e#g # ge$)e!r# pr$gress#$+ Sele!ed s$'!ware s"$,ld

 -e aep!a-le -y !"e '#r) ad $e ,ser as well as #! s"$,ld -e 'eas#-le '$r !"e sys!e)+

T"#s d$,)e! g#es a de!a#led desr#p!#$ $' !"e s$'!ware re,#re)e! spe#'#a!#$+ T"e

s!,dy $' re,#re)e! spe#'#a!#$ #s '$,sed spe#ally $ !"e ',!#$#g $' !"e sys!e)+ I!

all$w !"e deel$per $r aalys! !$ ,ders!ad !"e sys!e) ',!#$ !$ -e arr#ed $,! !"e

 per'$r)ae leel !$ -e $-!a#ed ad $rresp$d#g #!er'aes !$ -e es!a-l#s"ed+

7r$! ed !$$l ASP+e! w#!" CK as sr#p!#g lag,age

*a.ed M#r$s$'! SL Serer 200?

Opera!#g sys!e) /#d$ws 200>J200?

Cl#e! S#de HTML P"$!$s"$p

CHP!"# -

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 15/39

 S(S!"M D"SI% 

T"e sys!e) des#g #s d##ded # !$ !"ree p$r!#$s+ T"e Ad)##s!ra!$r se!#$ "$s!el

sere!ary se!#$ ad s!,de! se!#$

+

# A*+"n",/

1. T"e Ad)##s!ra!$r a all$! d#''ere! s!,de!s !$ !"e d#''ere! "$s!els+

2. He a aa!e !"e s!,de!s '$r !"e "$s!els+

3. He a $!r$l !"e s!a!,s $' !"e 'ee pay)e!+

4. He a ed#! !"e de!a#ls $' !"e s!,de!s+ He a "age !"e#r r$$)s ed#! ad dele!e !"e s!,de!

re$rds+

@+He a ed#! !"e ews -$ard

(+He a "e. !"e $)pla#!s

2+ T73 H,3 S353/ a

1. Ma.e !"e Mess )e,

2. Ma.e !"e )ess -#ll & "$s!el -#ll

<+G#e $!#'#a!#$s # N$!#e *$ard

+ I #p,! da!a des#g we des#g !"e s$,re d$,)e! !"a!

ap!,re !"e da!a ad !"e sele! !"e )ed#a ,sed !$ e!er !"e) #!$ !"e $)p,!er+

T"ere are !w$ )a%$r appr$a"es '$r e!er#g da!a # !$ !"e $)p,!er+ T"ey are

1· Me,s+

2· =#al$g *$es+

DATAFLOW DIADRAMS

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 16/39

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 17/39

 NAME T5PE NAME DARCHAR 

GEN=ER DARCHAR  

=O* =ATE

A==RESS NCHAR  

PINCO=E INT

=ISTRICT DARCHAR 

LAN=LINE NUM*ER INT

MO*ILE NUM*ER  INT NAME &A==RESS O7  NCHAR 

PARENT OR GUAR=IAN

PARENT8S PHONE NUM*ER  INT

EMAIL I= NCHAR  

RELIGION DARCHAR  

CAST DARCHAR 

=ISTANCE IN ILOMETER  7LOAT

COMMUNAL RESERDATION CHAR  PH5SICALL5 CHAR  

HAN=ICAPPE=

7OREIGN STU=ENT CHAR  

COURSE O7 STU=5 CHAR 

 NATURE O7 STU=5  NCHAR 

=EPARTMENT  NCHAR =ATE O7 A=MISSION TO =ATE

COURSEEPECTE= =ATE O7 =ATE

COMPLETION O7 COURSE

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 18/39

=ATE 7ROM A=MISSION =ATE

REUIRES7ELLO/SHIPS AN5 CHAR  

RECIEDE=

7ELLO/SHIP =ETAILS DARCHAR 

PHOTO IMAGE

SIGN IMAGE

THUMP IMPRESSION IMAGE

USERNAME  NCHAR 

PASS/OR=  NCHAR 

CON7ORM PASS/OR= NCHAR  

Ta-le <+1 =a!a-ase !a-le '$r s!,de! appl#a!#$

MESS 7EE CALCULATION

 NAME T5PE

=EPARTMENT DARCHAR 

STU=ENTNAME DARCHAR 

Ta-leCOST PER =A5 7LOAT

 NO O7 =A5S INT <+2

RENT 7LOAT =a!a-as

HOSTEL7EE 7LOAT e !a-le

r )ess 'ee al,la!#$

PA5MENT STATUS

 NAME T5PE

=EPARTMENT DARCHAR 

STU=ENT NAME DARCHAR 

STATUS CHAR  

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 19/39

Daa!#$

 NAME T5PE

 NAME DARCHAR 

=EPARTMENT DARCHAR  5EAR DARCHAR  

CSSTU=5 DARCHAR  

=ATESU* CHAR  

=ATEREL CHAR  

REASON DARCHAR  

USERNAME DARCHAR  

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 20/39

CHP!"# /

 S(S!"M IMP)"M"%!!IO% %D !"S!I% 

SYSTEM IMPLEMENTATION

I)ple)e!a!#$ #s !"e s!age # !"e pr$%e! w"ere !"e !"e$re!#al des#g #s !,red #!$ a

w$r.#g sys!e) ad #s g##g $'#dee $ !"e ew sys!e) '$r !"e ,sers !"a! #! w#ll w$r. 

e''##e!ly ad e''e!#ely+ I! #$les are',l pla#g #es!#ga!#$ $' !"e ,rre!

sys!e) ad #!s $s!ra#!s $ #)ple)e!a!#$ des#g $' )e!"$ds !$ a"#ee !"e "age

$er a eal,a!#$ $' "age $er )e!"$ds+ Apar! 'r$) pla#g )a%$r !as. $' prepar#g

!"e #)ple)e!a!#$ are ed,a!#$ ad !ra##g $' ,sers+ T"e #)ple)e!a!#$ pr$ess

 -eg#s w#!" prepar#g a pla '$r !"e #)ple)e!a!#$ $' !"e sys!e)+ A$rd#g !$ !"#s pla

!"e a!##!#es are !$ -e arr#ed $,! d#s,ss#$s )ade regard#g !"e e,#p)e! ad

res$,res ad !"e add#!#$al e,#p)e! "as !$ -e a,#red !$ #)ple)e! !"e ew sys!e)+

I e!w$r. -a.,p sys!e) $ add#!#$al res$,res are eeded+ I)ple)e!a!#$ #s !"e '#al

ad !"e )$s! #)p$r!a! p"ase+ T"e )$s! r#!#al s!age # a"#e#g a s,ess',l ew

sys!e) #s g##g !"e ,sers $'#dee !"a! !"e ew sys!e) w#ll w$r. ad -e e''e!#e+ T"e

sys!e) a -e #)ple)e!ed $ly a'!er !"$r$,g" !es!#g #s d$e ad #' #! #s '$,d !$ -ew$r.#g a$rd#g !$ !"e spe#'#a!#$+ T"#s )e!"$d als$ $''ers !"e grea!es! se,r#!y s#e

!"e $ld sys!e) a !a.e $er #' !"e err$rs are '$,d $r #a-#l#!y !$ "adle er!a# !ype $' 

!rasa!#$s w"#le ,s#g !"e ew sys!e)+

CHP!"# 0 

 S(S!"M !"S!I% 

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 21/39

As !"e par! $' sys!e) !es!#g we ee,!e !"e pr$gra) w#!" !"e #!e! $' '#d#g err$rs ad )#ss#g

$pera!#$s ad als$ a $)ple!e er#'#a!#$ !$ de!er)#e w"e!"er !"e $-%e!#es are )e! ad !"e

,ser re,#re)e!s are sa!#s'#ed+ T"e ,l!#)a!e a#) #s ,al#!y ass,rae+

Tes!s are arr#ed $,! ad !"e res,l!s are $)pared w#!" !"e epe!ed d$,)e!+ I !"e ase $' 

err$e$,s res,l!s de-,gg#g #s d$e+ Us#g de!a#led !es!#g s!ra!eg#es a !es! pla #s arr#ed $,! $

ea" )$d,le+ T"e ar#$,s !es!s per'$r)ed are ,#! !es!#g #!egra!#$ !es!#g ad ,ser aep!ae

!es!#g+

Un" T3,"n

T"e s$'!ware ,#!s # !"e sys!e) #s are )$d,les ad r$,!#es !"a! are asse)-led ad

#!egra!ed !$ per'$r) a spe#'# ',!#$+ As a par! $' ,#! !es!#g we ee,!ed !"e pr$gra) '$r 

#d##d,al )$d,les #depede!ly+ T"#s ea-les !$ de!e! err$rs # $d#g ad l$g# !"a! are

$!a#ed w#!"# ea" $' !"e !"ree )$d,le+ T"#s !es!#g #l,des e!er#g da!a !"a! #s '#ll#g '$r)s

ad aser!a##g #' !"e al,e )a!"es !$ !"e !ype ad e!ered #!$ !"e da!a-ase+ T"e ar#$,s

$!r$ls are !es!ed !$ es,re !"a! ea" per'$r)s #!s a!#$ as re,#red+

In3/"n T3,"n

=a!a a -e l$s! ar$ss ay #!er'ae $e )$d,le a "ae a aderse e''e! $ a$!"er s,-

',!#$s w"e $)-#ed )ay $! pr$d,e !"e des#red )a%$r ',!#$s+ I!egra!#$ !es!#g #s a

sys!e)a!# !es!#g !$ d#s$er err$rs ass$#a!ed w#!"# !"e #!er'ae+ T"e $-%e!#e #s !$ !a.e ,#!

!es!ed )$d,les ad -,#ld a pr$gra) s!r,!,re+ All !"e )$d,les are $)-#ed ad !es!ed as a

w"$le+ Here !"e ad)# )$d,le se )$d,le ad s!,de! )$d,le $p!#$s are #!egra!ed ad !es!ed+

T"#s !es!#g pr$#des !"e ass,rae !"a! !"e appl#a!#$ #s well #!egra!ed ',!#$al ,#! w#!"

s)$$!" !ras#!#$ $' da!a+

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 22/39

U,3 A5539/n53 T3,"n

User aep!ae $' a sys!e) #s !"e .ey 'a!$r '$r !"e s,ess $' ay sys!e)+ T"e sys!e)

,der $s#dera!#$ #s !es!ed '$r ,ser aep!ae -y $s!a!ly .eep !"e re$rds $' appl#a!s ad

)a.#g "ages !$ !"e de!a#ls ad passw$rd w"eeer re,#red+

CONCLUSION

T$ $l,de !"e desr#p!#$ a-$,! !"e pr$%e! T"e pr$%e! deel$ped ,s#g ASP+e! w#!"

K ad SL SERDER #s -ased $ !"e re,#re)e! spe#'#a!#$ $' !"e ,ser ad !"e aalys#s $' !"e e#s!#g sys!e) w#!" 'le#-#l#!y '$r ',!,re e"ae)e!+

ONLINE HOSTEL MANAGEMENT S5STEM #s ery ,se',l '$r "$s!el all$!)e! ad

)ess 'ee al,la!#$ + T"#s "$s!el )aage)e! s$'!ware #s des#ged '$r pe$ple w"$ wa! !$

)aage ar#$,s a!##!#es # !"e "$s!el+ 7$r !"e pas! 'ew years !"e ,)-ers $' ed,a!#$al

#s!#!,!#$s are #reas#g rap#dly+ T"ere-y !"e ,)-ers $' "$s!els are als$ #reas#g '$r !"e

a$))$da!#$ $' !"e s!,de!s s!,dy#g # !"#s #s!#!,!#$+ Ad "ee !"ere #s a l$! $' s!ra# $

!"e pers$ w"$ are r,#g !"e "$s!el ad s$'!ware8s are $! ,s,ally ,sed # !"#s $!e!+ T"#s

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 23/39

 par!#,lar pr$%e! deals w#!" !"e pr$-le)s $ )aag#g a "$s!el ad a$#ds !"e pr$-le)s w"#"

$,r w"e arr#ed )a,ally+

Ide!#'#a!#$ $' !"e draw-a.s $' !"e e#s!#g sys!e) leads !$ !"e des#g#g $' 

$)p,!er#9ed sys!e) !"a! w#ll -e $)pa!#-le !$ !"e e#s!#g sys!e) w#!" !"e sys!e) w"#" #s

)$re ,ser 'r#edly ad )$re GUI $r#e!ed+

REFERENCE

[1] a)es R Gr$'' ad Pa,l N /e#-erg C$)ple!e re'eree SL6+

Se$d Ed#!#$

[2] Ages M$lar ad Ada) Gra#9 +Ne! w#!" D#s,al CK 20106+

[3] Css '#les 'r$) /< s"$$ls+

"!!pJJw< s"$$l+$)Jss'#le

[4] H$s!el '$r) 'r$) ,sa! "$s!el+

"!!pJJ,sa!+a+#J"$s!el'$r)

[5]Css '#les 'r$) /#.#ped#a !"e 'ree eyl$ped#a+

"!!pJJwww+e+w#.#ped#a+$rgJw#.#J/#relessse,r#!y+

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 24/39

APPENDI)

SOURCE CODE4

#.A*+"n +*13- /+3n 953,,

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.Data.Sql;using System.Data.SqlClient;

public partial class waren!allot " System.Web.UI.#age$

protecte %oi #age!Loa&ob'ect sener( )%ent*rgs e+$

try$

#anel,.-isible /alse;Label,.-isible /alse;

SqlConnection con  new SqlConnection&0Data SourceUS)12 #C33S4LS)1-)1,;Initial Catalog5ostelms;#ersist Security In/o6rue;UserIDsa;#assworcusat0 +;

con.7pen&+;88 string sel 0select

username(9ame(D)#*16:)96()*1(DIS6*9C)(C*S6(1)S)1-*6I79(CS!S6UD /rom

 6b!Detail0;

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 25/39

string sel  0select username(9ame(D)#*16:)96()*1(DIS6*9C)(C*S6(1)S)1-*6I79(CS!S6UD /rom 6b!Detail w5ere S6*6US<0=0#)9DI9G0=0<0;

SqlData*apter sqt  new SqlData*apter&sel( con+; Data6able t  new Data6able&+;sqt.>ill&t+;Gri-iew,.DataSource t;Gri-iew,.Data?in&+;i/ &t.1ows.Count @+$

Label,.6eAt 0Sorry 65ere is no stuent wit5 status to be*ppro%e0;Label,.-isible true;

BBcatc5 &)Aception eA+$

1esponse.Write&eA.:essage+;88 t5row;

BBprotecte %oi Gri-iew,!SelecteIneAC5ange&ob'ect sener( )%ent*rgs e+$

Bprotecte %oi Gri-iew,!1owComman&ob'ect sener( Gri-iewComman)%ent*rgs e+$

i/ &e.Comman9ame  0appro%e0+$

try$

SqlConnection con,  new SqlConnection&0DataSourceUS)12 #C33S4LS)1-)1,;Initial Catalog5ostelms;#ersist SecurityIn/o6rue;User IDsa;#assworcusat0+;

con,.7pen&+;SqlComman cm  new SqlComman&+; cm.Connection con,;

string  0*##17-)D0;string s e.Comman*rgument.6oString&+;cm.Comman6eAt 0upate 6b!Detail S)6 S6*6US<0 = =

0<W)1) username<0 = s = 0<0;cm.)Aecute9on4uery&+;con,.Close&+;string sl  0select ):*IL!ID /rom 6b!Detail w5ere username<0 = s

= 0<0;SqlData*apter sq  new SqlData*apter&sl( con,+; Data6able ts  new Data6able&+;sq.>ill&ts+;8*DD 9*:) S#*C) using System.9)6.:ail;

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 26/39

:ail:essage mail new :ail:essage&+;string el 06o *DD1)SS0;mail.6o.*&el+;mail.>rom new :ail*ress&0>17:*DD1)SS0+; mail.Sub'ect 0:*IL SU?E)C60;

string ?oy 0:)SS*G)C796)960; mail.?oy ?oy;

mail.Is?oytml true;

SmtpClient smtp new SmtpClient&+;smtp.ost 0smtp.gmail.com0;smtp.Creentials new System.9et.9etworFCreential&0>17:

*DD1)SS0( 0#*SSW71D0+;smtp.#ort H;smtp.)nableSsl true;smtp.Sen&mail+;8

Bcatc5 &)Aception A+$

1esponse.Write&A.:essage+;B

Belse i/ &e.Comman9ame0el0+$

try$

SqlConnection conJ  new SqlConnection&0DataSourceUS)12 #C33S4LS)1-)1,;Initial Catalog5ostelms;#ersist SecurityIn/o6rue;User IDsa;#assworcusat0+;

conJ.7pen&+;SqlComman cm,  new SqlComman&+; cm,.Connection conJ;

string s, e.Comman*rgument.6oString&+;

cm,.Comman6eAt 0D)L)6) >17: 6b!Detail W)1) username<0 = s, =0<0;

cm,.)Aecute9on4uery&+;conJ.Close&+;

Bcatc5 &)Aception el+$

1esponse.Write&el.:essage+;B

Belse i/ &e.Comman9ame0%iew0+$

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 27/39

SqlConnection conK  new SqlConnection&0Data SourceUS)12 #C33S4LS)1-)1,;Initial Catalog5ostelms;#ersist Security In/o6rue;UserIDsa;#assworcusat0 +;

conK.7pen&+;string sJ e.Comman*rgument.6oString&+;string sel,  0select /rom 6b!Detail w5ere username<0 = sJ = 0<0; SqlData*apter sqt,  new SqlData*apter&sel,( conK+;Data6able t,  new Data6able&+; sqt,.>ill&t,+;i/ &t,.1ows.Count@+

$ #anel,.-isibletrue;LabelJ.6eAt t,.1ows[@][@].6oString&+; LabelK.6eAt t,.1ows[@][,].6oString&+; LabelM.6eAt t,.1ows[@][J].6oString&+; Label.6eAt t,.1ows[@][K].6oString&+; LabelN.6eAt t,.1ows[@][M].6oString&+; Label.6eAt t,.1ows[@][].6oString&+; LabelH.6eAt t,.1ows[@][N].6oString&+; LabelO.6eAt t,.1ows[@][].6oString&+; Label,@.6eAt t,.1ows[@][H].6oString&+; Label,,.6eAt t,.1ows[@][O].6oString&+; Label,J.6eAt t,.1ows[@][,@].6oString&+; Label,K.6eAt t,.1ows[@][,,].6oString&+; Label,M.6eAt

t,.1ows[@][,J].6oString&+; Label,.6eAt t,.1ows[@][,K].6oString&+; Label,N.6eAt t,.1ows[@][,M].6oString&+; Label,.6eAt t,.1ows[@][,].6oString&+; Label,H.6eAt t,.1ows[@][,N].6oString&+; Label,O.6eAt t,.1ows[@][,].6oString&+; [email protected] t,.1ows[@][,H].6oString&+; LabelJ,.6eAt t,.1ows[@][,O].6oString&+; LabelJJ.6eAt t,.1ows[@][J@].6oString&+; LabelJK.6eAt t,.1ows[@][J,].6oString&+; LabelJM.6eAt t,.1ows[@][JJ].6oString&+; LabelJ.6eAt t,.1ows[@][JK].6oString&+; LabelJN.6eAt t,.1ows[@][JM].6oString&+; LabelJ.6eAt t,.1ows[@][J].6oString&+; LabelJH.6eAt

t,.1ows[@][JN].6oString&+; Image,.ImageUrl t,.1ows[@][J].6oString&+; ImageJ.ImageUrl t,.1ows[@][JH].6oString&+; ImageK.ImageUrl t,.1ows[@][JO].6oString&+; LabelJO.6eAt t,.1ows[@][K@].6oString&+; [email protected] t,.1ows[@][K,].6oString&+;

BB

Bprotecte %oi ?utton,!ClicF&ob'ect sener( )%ent*rgs e+$

#anel,.-isible /alse;B

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 28/39

B

J+*D:I9:7DUL) usingSystem;using System.Collections.Generic; using System.Linq;using System.Web; using System.Web.UI;

using System.Web.UI.WebControls; using System.Data;

using System.Data.Sql;using System.Data.SqlClient;

public partial class waren!room " System.Web.UI.#age$

SqlConnection con  new SqlConnection&0Data SourceUS)12#C33S4LS)1-)1,;Initial Catalog5ostelms;#ersist Security In/o6rue;User IDsa;#assworcusat0+;

protecte %oi #age!Loa&ob'ect sener( )%ent*rgs e+$

Bprotecte %oi ?utton,!ClicF&ob'ect sener( )%ent*rgs e+

$try$

88 SqlConnection con new SqlConnection&0Data SourceupsM@;InitialCatalog5ostelms;#ersist Security In/o6rue;User IDsa;#assworcusat0+;

SqlData*apter sqt  new SqlData*apter&0select /rom 6b!ostel0(con+;

Data6able t  new Data6able&+; sqt.>ill&t+;string t.1ows[@][@].6oString&+; intl;int e  Con%ert.6oInt,N&+; le;e e = Con%ert.6oInt,N&6eAt?oA,.6eAt.6oString&++;

con.7pen&+;SqlComman cm  new SqlComman&+; cm.Connection con;

cm.Comman6eAt 0upate 6b!ostel set rooms<0 = e =0<w5ere rooms<0 = l = 0<0;

88cm.Comman6eAt 0insert into 6b!ostel %alues&<0=6eAt?oA,.6eAt.6oString&+= 0<+0;

cm.)Aecute9on4uery&+;con.Close&+;

Bcatc5 &)Aception A+$

1esponse.Write&A.:essage+;

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 29/39

BB

B

K+ 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.Data.Sql;using System.Data.SqlClient;

public partial class waren!room " System.Web.UI.#age$

SqlConnection con  new SqlConnection&0Data SourceUS)12#C33S4LS)1-)1,;Initial Catalog5ostelms;#ersist Security In/o6rue;User IDsa;#assworcusat0+;

protecte %oi #age!Loa&ob'ect sener( )%ent*rgs e+$

Bprotecte %oi ?utton,!ClicF&ob'ect sener( )%ent*rgs e+$

try$

88 SqlConnection con new SqlConnection&0Data SourceupsM@;InitialCatalog5ostelms;#ersist Security In/o6rue;User IDsa;#assworcusat0+;

SqlData*apter sqt  new SqlData*apter&0select /rom 6b!ostel0(con+;

Data6able t  new Data6able&+; sqt.>ill&t+;string t.1ows[@][@].6oString&+; intl;

int e  Con%ert.6oInt,N&+; le;e e = Con%ert.6oInt,N&6eAt?oA,.6eAt.6oString&++;con.7pen&+;SqlComman cm  new SqlComman&+; cm.Connection con;

cm.Comman6eAt 0upate 6b!ostel set rooms<0 = e =0<w5ere rooms<0 = l = 0<0;

88cm.Comman6eAt 0insert into 6b!ostel %alues&<0=6eAt?oA,.6eAt.6oString&+= 0<+0;

cm.)Aecute9on4uery&+;con.Close&+;

B

catc5 &)Aception A+

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 30/39

$

1esponse.Write&A.:essage+;B

BB

M+ 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.Data.SqlClient;public partial class waren!%acate " System.Web.UI.#age$

protecte %oi #age!Loa&ob'ect sener( )%ent*rgs e+$

try

$ SqlConnection con  new SqlConnection&0Data SourceUS)12 #C33S4LS)1-)1,;Initial Catalog5ostelms;#ersist Security In/o6rue;UserIDsa;#assworcusat0 +;

con.7pen&+;string sel  0S)L)C6 

username(9*:)(D)#*16:)96()*1(CS!S6UD(D*6)SU?(D*6)1)L(1)*S79 >17: 6b!-accate0;

SqlData*apter sqt  new SqlData*apter&sel( con+; Data6able t  new Data6able&+;sqt.>ill&t+;Gri-iew,.DataSource t;Gri-iew,.Data?in&+;

B

catc5 &)Aception gr+$

1esponse.Write&gr.:essage+;B

BB

+ using System;

using System.Collections.Generic; 

using System.Linq;

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 31/39

using System.Web; using System.Web.UI;using System.Web.UI.WebControls; using System.Data;

using System.Data.SqlClient;

public partial class waren!%iew " System.Web.UI.#age$

88int @;protecte %oi #age!Loa&ob'ect sener( )%ent*rgs e+

$88 DropDownList,.Items.Clear&+;88DropDownList,.Items.Insert&@( new ListItem&0Select t5e course0( 00++;#anel,.-isible /alse;88DropDownListJ.)nable /alse;

Bprotecte %oi DropDownList,!SelecteIneAC5ange&ob'ect sener( )%ent*rgs e+

$DropDownListJ.Items.Clear&+;DropDownListK.Items.Clear&+;DropDownListM.Items.Clear&+;SqlConnection con  new SqlConnection&0Data SourceUS)12 

#C33S4LS)1-)1,;Initial Catalog5ostelms;#ersist Security In/o6rue;UserIDsa;#assworcusat0 +;

con.7pen&+;String getState  0Select 9*!C7U1S) /rom 6b!Detail w5ere CS!S6UD<0 =

DropDownList,.SelecteItem.6eAt.6oString&+ = 0<0;Data6able t  new Data6able&+;SqlData*apter a  new SqlData*apter&getState( con+; a.>ill&t+;DropDownListJ.DataSource t;DropDownListJ.Data6eAt>iel 09*!C7U1S)0;DropDownListJ.Data-alue>iel 09*!C7U1S)0;DropDownListJ.Data?in&+;DropDownListJ.Items.Insert&@(new ListItem&0S)L)C60(00++;8storing in/o to rp own list K8DropDownListK.Items.Clear&+; DropDownListM.Items.Clear&+;SqlConnection con,  new SqlConnection&0Data SourceUS)12 

#C33S4LS)1-)1,;Initial Catalog5ostelms;#ersist Security In/o6rue;UserIDsa;#assworcusat0 +;con,.7pen&+;String getState,  0Select D)#*16:)96 /rom 6b!Detail w5ere CS!S6UD<0 =

DropDownList,.SelecteItem.6eAt.6oString&+ = 0<0;Data6able t,  new Data6able&+;SqlData*apter a,  new SqlData*apter&getState,( con,+; a,.>ill&t,+;DropDownListK.DataSource t,;DropDownListK.Data6eAt>iel 0D)#*16:)960;DropDownListK.Data-alue>iel 0D)#*16:)960; DropDownListK.Data?in&+;

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 32/39

DropDownListK.Items.Insert&@( new ListItem&0S)L)C60( 00++;822222222222222222288storing in rpM8DropDownListM.Items.Clear&+;SqlConnection conJ  new SqlConnection&0Data SourceUS)12 

#C33S4LS)1-)1,;Initial Catalog5ostelms;#ersist Security In/o6rue;UserIDsa;#assworcusat0 +;

conJ.7pen&+;String getStateJ  0Select )*1 /rom 6b!Detail w5ere CS!S6UD<0 = 

DropDownList,.SelecteItem.6eAt.6oString&+ = 0<0;

Data6able tJ  new Data6able&+;SqlData*apter aJ  new SqlData*apter&getStateJ( conJ+; aJ.>ill&tJ+;DropDownListM.DataSource tJ;DropDownListM.Data6eAt>iel 0)*10;DropDownListM.Data-alue>iel 0)*10;DropDownListM.Data?in&+;DropDownListM.Items.Insert&@( new ListItem&0S)L)C60( 00++;822222288rp 8SqlConnection conK  new SqlConnection&0Data SourceUS)12 

#C33S4LS)1-)1,;Initial Catalog5ostelms;#ersist Security In/o6rue;UserIDsa;#assworcusat0 +;

conK.7pen&+;

String getStateK  0Select 9ame /rom 6b!Detail w5ere CS!S6UD<0 = DropDownList,.SelecteItem.6eAt.6oString&+ = 0<0;Data6able tK  new Data6able&+;SqlData*apter aK  new SqlData*apter&getStateK( conK+; aK.>ill&tK+;DropDownList.DataSource tK;DropDownList.Data6eAt>iel 09ame0;DropDownList.Data-alue>iel 09ame0; DropDownList.Data?in&+;DropDownList.Items.Insert&@( new ListItem&0S)L)C60( 00++; 88i/ &PIs#ost?acF+$

DropDownList,.Items.Insert&@( new ListItem&0* 9ew0( 00++;B

Bprotecte %oi DropDownListJ!SelecteIneAC5ange&ob'ect sener( )%ent*rgs e+

$88 DropDownListJ.Items.Clear&+;DropDownListK.Items.Clear&+;DropDownListM.Items.Clear&+;SqlConnection con,  new SqlConnection&0Data SourceUS)12 

#C33S4LS)1-)1,;Initial Catalog5ostelms;#ersist Security In/o6rue;UserIDsa;#assworcusat0 +;

con,.7pen&+;

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 33/39

String getState,  0Select D)#*16:)96 /rom 6b!Detail w5ere 9*!C7U1S)<0 = DropDownListJ.SelecteItem.6eAt.6oString&+ = 0<an CS!S6UD<0 =DropDownList,.SelecteItem.6eAt.6oString&+ = 0<0;

Data6able t,  new Data6able&+;SqlData*apter a,  new SqlData*apter&getState,( con,+; a,.>ill&t,+;DropDownListK.DataSource t,;DropDownListK.Data6eAt>iel 0D)#*16:)960;DropDownListK.Data-alue>iel 0D)#*16:)960; DropDownListK.Data?in&+;

DropDownListK.Items.Insert&@( new ListItem&0S)L)C60( 00++;8storing in rpM8DropDownListM.Items.Clear&+;SqlConnection conJ  new SqlConnection&0Data SourceUS)12 

#C33S4LS)1-)1,;Initial Catalog5ostelms;#ersist Security In/o6rue;UserIDsa;#assworcusat0 +;

conJ.7pen&+;String getStateJ  0Select )*1 /rom 6b!Detail w5ere 9*!C7U1S)<0 = 

DropDownListJ.SelecteItem.6eAt.6oString&+ = 0<an CS!S6UD<0 =DropDownList,.SelecteItem.6eAt.6oString&+ = 0<0;

Data6able tJ  new Data6able&+;SqlData*apter aJ  new SqlData*apter&getStateJ( conJ+; aJ.>ill&tJ+;DropDownListM.DataSource tJ;

DropDownListM.Data6eAt>iel 0)*10;DropDownListM.Data-alue>iel 0)*10;DropDownListM.Data?in&+;DropDownListM.Items.Insert&@( new ListItem&0S)L)C60( 00++;822222288rp 8SqlConnection conK  new SqlConnection&0Data SourceUS)12 

#C33S4LS)1-)1,;Initial Catalog5ostelms;#ersist Security In/o6rue;UserIDsa;#assworcusat0 +;

conK.7pen&+;String getStateK  0Select 9ame /rom 6b!Detail w5ere 9*!C7U1S)<0 =

DropDownListJ.SelecteItem.6eAt.6oString&+ = 0<an CS!S6UD<0 =DropDownList,.SelecteItem.6eAt.6oString&+ = 0<0;

Data6able tK  new Data6able&+;

SqlData*apter aK  new SqlData*apter&getStateK( conK+; aK.>ill&tK+;DropDownList.DataSource tK;DropDownList.Data6eAt>iel 09ame0;DropDownList.Data-alue>iel 09ame0; DropDownList.Data?in&+;DropDownList.Items.Insert&@( new ListItem&0S)L)C60( 00++; 88

Bprotecte %oi DropDownListK!SelecteIneAC5ange&ob'ect sener( )%ent*rgs e+

$DropDownListM.Items.Clear&+;

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 34/39

SqlConnection conJ  new SqlConnection&0Data SourceUS)12 #C33S4LS)1-)1,;Initial Catalog5ostelms;#ersist Security In/o6rue;UserIDsa;#assworcusat0 +;

conJ.7pen&+;String getStateJ  0Select )*1 /rom 6b!Detail w5ere D)#*16:)96<0 = 

DropDownListK.SelecteItem.6eAt.6oString&+ = 0<an 9*!C7U1S)<0 =DropDownListJ.SelecteItem.6eAt.6oString&+ = 0<an CS!S6UD<0 =DropDownList,.SelecteItem.6eAt.6oString&+ = 0<0;

Data6able tJ  new Data6able&+;SqlData*apter aJ  new SqlData*apter&getStateJ( conJ+; 

aJ.>ill&tJ+;DropDownListM.DataSource tJ;DropDownListM.Data6eAt>iel 0)*10;DropDownListM.Data-alue>iel 0)*10;DropDownListM.Data?in&+;DropDownListM.Items.Insert&@( new ListItem&0S)L)C60( 00++;8rp 8DropDownList.Items.Clear&+;SqlConnection conK  new SqlConnection&0Data SourceUS)12 

#C33S4LS)1-)1,;Initial Catalog5ostelms;#ersist Security In/o6rue;UserIDsa;#assworcusat0 +;

conK.7pen&+;String getStateK  0Select 9ame /rom 6b!Detail w5ere D)#*16:)96<0 =

DropDownListK.SelecteItem.6eAt.6oString&+ = 0<an 9*!C7U1S)<0 =

DropDownListJ.SelecteItem.6eAt.6oString&+ = 0<an CS!S6UD<0 =DropDownList,.SelecteItem.6eAt.6oString&+ = 0<0;Data6able tK  new Data6able&+;SqlData*apter aK  new SqlData*apter&getStateK( conK+; aK.>ill&tK+;DropDownList.DataSource tK;DropDownList.Data6eAt>iel 09ame0;DropDownList.Data-alue>iel 09ame0; DropDownList.Data?in&+;DropDownList.Items.Insert&@( new ListItem&0S)L)C60( 00++;822222222222228

Bprotecte %oi DropDownListM!SelecteIneAC5ange&ob'ect sener( )%ent*rgs e+

$

DropDownList.Items.Clear&+;SqlConnection conK  new SqlConnection&0Data SourceUS)12 #C33S4LS)1-)1,;Initial Catalog5ostelms;#ersist Security In/o6rue;UserIDsa;#assworcusat0 +;

conK.7pen&+;String getStateK  0Select 9ame /rom 6b!Detail w5ere D)#*16:)96<0 =

DropDownListK.SelecteItem.6eAt.6oString&+ = 0<an 9*!C7U1S)<0 =DropDownListJ.SelecteItem.6eAt.6oString&+ = 0<an CS!S6UD<0 =DropDownList,.SelecteItem.6eAt.6oString&+ = 0<*9D  )*1<0=DropDownListM.SelecteItem.6eAt.6oString&+=0<0;

Data6able tK  new Data6able&+;SqlData*apter aK  new SqlData*apter&getStateK( conK+; aK.>ill&tK+;

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 35/39

DropDownList.DataSource tK;DropDownList.Data6eAt>iel 09ame0;DropDownList.Data-alue>iel 09ame0; DropDownList.Data?in&+;DropDownList.Items.Insert&@( new ListItem&0S)L)C60( 00++;

Bprotecte %oi DropDownList!SelecteIneAC5ange&ob'ect sener( )%ent*rgs e+

$try$

#anel,.-isible true;SqlConnection conK  new SqlConnection&0Data SourceUS)12 #C33S4LS)1-)1,;Initial Catalog5ostelms;#ersist Security In/o6rue;UserIDsa;#assworcusat0 +;

conK.7pen&+;string sel,  0select /rom 6b!Detail w5ere D)#*16:)96<0 = 

DropDownListK.SelecteItem.6eAt.6oString&+ = 0<an 9*!C7U1S)<0 =DropDownListJ.SelecteItem.6eAt.6oString&+ = 0<an CS!S6UD<0 =DropDownList,.SelecteItem.6eAt.6oString&+ = 0<*9D )*1<0 =DropDownListM.SelecteItem.6eAt.6oString&+ = 0<0;

SqlData*apter sqt,  new SqlData*apter&sel,( conK+; Data6able t,  new Data6able&+;sqt,.>ill&t,+;i/ &t,.1ows.Count @+

$ #anel,.-isible true;LabelJ.6eAt t,.1ows[@][@].6oString&+;LabelK.6eAt t,.1ows[@][,].6oString&+;LabelM.6eAt t,.1ows[@][J].6oString&+;Label.6eAt t,.1ows[@][K].6oString&+;LabelN.6eAt t,.1ows[@][M].6oString&+;Label.6eAt t,.1ows[@][].6oString&+;LabelH.6eAt t,.1ows[@][N].6oString&+;LabelO.6eAt t,.1ows[@][].6oString&+;Label,@.6eAt t,.1ows[@][H].6oString&+;Label,,.6eAt t,.1ows[@][O].6oString&+;Label,J.6eAt t,.1ows[@][,@].6oString&+;Label,K.6eAt t,.1ows[@][,,].6oString&+;

Label,M.6eAt t,.1ows[@][,J].6oString&+;Label,.6eAt t,.1ows[@][,K].6oString&+;Label,N.6eAt t,.1ows[@][,M].6oString&+;Label,.6eAt t,.1ows[@][,].6oString&+;Label,H.6eAt t,.1ows[@][,N].6oString&+;Label,O.6eAt t,.1ows[@][,].6oString&+;[email protected] t,.1ows[@][,H].6oString&+;LabelJ,.6eAt t,.1ows[@][,O].6oString&+;LabelJJ.6eAt t,.1ows[@][J@].6oString&+;LabelJK.6eAt t,.1ows[@][J,].6oString&+;LabelJM.6eAt t,.1ows[@][JJ].6oString&+;LabelJ.6eAt t,.1ows[@][JK].6oString&+;LabelJN.6eAt t,.1ows[@][JM].6oString&+;

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 36/39

LabelJ.6eAt t,.1ows[@][J].6oString&+;LabelJH.6eAt t,.1ows[@][JN].6oString&+;Image,.ImageUrl t,.1ows[@][J].6oString&+;ImageJ.ImageUrl t,.1ows[@][JH].6oString&+;ImageK.ImageUrl t,.1ows[@][JO].6oString&+;LabelJO.6eAt t,.1ows[@][K@].6oString&+;[email protected] t,.1ows[@][K,].6oString&+;

BBcatc5 &)Aception D+

$

1esponse.Write&D.:essage+;B

Bprotecte %oi ?utton,!ClicF&ob'ect sener( )%ent*rgs e+$

#anel,.-isible /alse;DropDownListJ.Items.Clear&+;DropDownListK.Items.Clear&+;DropDownListM.Items.Clear&+;

B

S1*3n M*134using 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.Data.Sql;using System.Data.SqlClient;

public partial class stuent!c5pw " System.Web.UI.#age$

protecte %oi #age!Loa&ob'ect sener( )%ent*rgs e+$

i/ &Session[0login0]  null+$

Session[0login0] 05elo0;B

Bprotecte %oi ?utton,!ClicF&ob'ect sener( )%ent*rgs e+$

88Label,.6eAt Session[0login0].6oString&+;

try$

string st Session[0login0].6oString&+;

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 37/39

SqlConnection con  new SqlConnection&0Data SourceUS)12 #C33S4LS)1-)1,;Initial Catalog5ostelms;#ersist Security In/o6rue;UserIDsa;#assworcusat0 +;

SqlComman cm  new SqlComman&+; cm.Connection con;

cm.Comman6eAt 0upate 6b!Detail S)6 passwor<0= 6eAt?oAK.6eAt.6oString&+ = 0<W)1) username<0 = st = 0<0;

con.7pen&+;cm.)Aecute9on4uery&+;

con.Close&+;Bcatc5 & )Aception eA+$

1esponse.Write&eA.:essage+;B

BB

J+ using System;using System.Collections.Generic; using System.Linq;using System.Web; using System.Web.UI;using System.Web.UI.WebControls; using System.Data.Sql;using System.Data.SqlClient; 

using System.Data;

public partial class stuent!%acate " System.Web.UI.#age $protecte %oi #age!Loa&ob'ect sener( )%ent*rgs e+

$protecte %oi ?utton,!ClicF&ob'ect sener( )%ent*rgs e+$

string st Session[0login0].6oString&+;SqlConnection con  new SqlConnection&0DataSourceUS)12 #C33S4LS)1-)1,;User IDsa;#assworcusat0+;

con.7pen&+;string sel  0select 9ame(D)#*16:)96()*1(CS!S6UD /rom 6b!Detail

W)1) username<0=st=0<0;SqlData*apter sqt  new SqlData*apter&sel( con+; Data6able t  new Data6able&+;sqt.>ill&t+;i/ &t.1ows.Count @+$

SqlComman cm  new SqlComman&+; cm.Connection con;

cm.Comman6eAt 0insert into 6b!-accate %alues&<0=t.1ows[@][@].6oString&+=0<(<0=t.1ows[@][,]=0<(<0=t.1ows[@][J].6oStrin

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 38/39

g&+=0<(<0=t.1ows[@][K].6oString&+=0<(<0=6eAt?oA,.6eAt.6oString&+=0<(<0=6eAt?oAJ.6eAt.6oString&+=0<(<0=6eAt?oAK.6eAt.6oString&+=0<(<0=st=0<+0;

cm.)Aecute9on4uery&+;Bcon.Close&+;

BB

SAMPLE SCREEN FORMATS4

,.*D:I9 *LL76:)96

7/21/2019 Online Hostel Management System

http://slidepdf.com/reader/full/online-hostel-management-system 39/39