You are on page 1of 76

AIRLINE RESERVATION SYSTEM

INDEX 1.INTRODUCTION..1 1.1 Abstract1 1.2 Existing System2 1.3 Proposed System...2 2. REQUIREMENTS ........................3 2.1 Hardware Requirements.... 2.2 So!tware Requirements. 3. MODULE DESCRIPTION.24 4. DESIGN27 .1 "se case #iagram ..2$ .2 %&ass #iagram 3' .3 Sequence #iagram .31 . %o&&aboration #iagram32 .( E)R #iagram ..33 .* #ata dictionary3 5. CODING...37 6. TESTING..58 7. OUTPUT SCREENS.......................63 8. CONCLUSION78 9. I LIOGRAP!Y ..8"

INTRODUCTION

A STRACT
Air&ine Reser+ation System contains t,e detai&s about !&ig,t sc,edu&es and its !are tari!!spassenger reser+ations and tic.et records. An air&ine/s in+entory contains a&& !&ig,ts wit, t,eir a+ai&ab&e seats. 0,e in+entory o! an air&ine ser+ice is genera&&y di+ided into t,ree category o! c&asses 1e.g. 2irst- 3usiness or Economy c&ass4 and eac, category is ,a+ing seats up to 2* boo.ings- a&ong wit, prices and boo.ing conditions. 5n+entory data is imported and maintained t,roug, a Sc,edu&e #istribution System o+er standardi6ed inter!aces. 7ne o! t,e core !unctions o! t,e in+entory management o! air&ine reser+ations is t,e in+entory contro&. 5n+entory contro& steers ,ow many seats are a+ai&ab&e !or t,e di!!erent boo.ing c&asses- by opening and c&osing indi+idua& boo.ing c&asses !or sa&e. 5n combination wit, t,e !ares and boo.ing conditions stored in t,e 2are 8uote System t,e price !or eac, so&d seat is determined.

1. INTRODUCTION

1.1 E#$%&$'( S)%&*+ , 5n !ew countries i! a person wants to boo. a !&ig,t tic.et- ,e use to !o&&ow one o! t,ese t,ings9 :anua&&y goes to t,e Airport and boo. ,is tic.et. #own&oading t,e tic.et !orm as paper document- !i&&ing it manua&&y and submitting it at Airport. 2i&& t,e 0ic.et !orm on system and get t,e print out as paper documents to submit it at Airport. 3oo.ing t,e 0ic.et at some particu&ar registered tic.et counters in on&ine. E+en abo+e approac,es ma.e a tic.et boo.ing on&ine- it was not comp&ete&y done on on&ine. Passenger may not ,a+e muc, !reedom o+er t,is approac,. Hence t,e Passenger may or may not be satis!ied wit, t,is approac, as it inc&udes manua& inter+ention &i.e tra+e&&ing to Airport !or boo.ing ,is tic.et.

1.2 P-./.%*0 S)%&*+, 0,e Proposed system ensures t,e comp&ete !reedom !or users- w,ere user at ,is own system can &ogon to t,is website and can boo. ,is tic.et. 7ur proposed system a&&ows on&y registered users to boo. t,e tic.ets- +iew timings and cance& t,eir tic.ets. 5n t,is Proposa& t,e entire wor. is done on on&ine and tic.et wit, id is a&so pro+ided !or passengers as a print document. Here passengers can send t,eir queries and suggestions t,roug, a !eedbac. !orm.

RE8"5RE:E;0S

2. REQUIREMENTS
2.1 !1-0 21-* S/*3$4$31&$.' Processor RA: Hard dis. 9 9 9 5nte& Pentium3 (12:3 2<3

2.2 S.4&21-* R*56$-*+*'&%


2ront end 3ac. end 7perating System 9 9 9 .;et 2ramewor. 2.' S8= Ser+er 2''( >indows ?$@AP

M$3-.%.4& .NET 7-1+*2.-8, 0,e .;E0 2ramewor. is a new computing p&at!orm t,at simp&i!ies app&ication de+e&opment in t,e ,ig,&y distributed en+ironment o! t,e 5nternet.

7-1+*2.-8 $% 0*%$('*0 &. 4694$99 &:* 4.99.2$'( .;<*3&$=*%, 0o pro+ide a consistent obBect)oriented programming en+ironment w,et,er obBect code is stored and executed &oca&&y- executed &oca&&y but 5nternet)distributed- or executed remote&y. 0o pro+ide a code)execution en+ironment t,at minimi6es so!tware dep&oyment and +ersioning con!&icts. 0o pro+ide a code)execution en+ironment t,at guarantees sa!e execution o! codeinc&uding code created by an un.nown or semi)trusted t,ird party. 0o pro+ide a code)execution en+ironment t,at e&iminates t,e per!ormance prob&ems o! scripted or interpreted en+ironments. 0o ma.e t,e de+e&oper experience consistent across wide&y +arying types o! app&ications- suc, as >indows)based app&ications and >eb)based app&ications. 0o bui&d a&& communication on industry standards to ensure t,at code based on t,e .;E0 2ramewor. can integrate wit, any ot,er code.

T:* .NET 7-1+*2.-8 :1% &2. +1$' 3.+/.'*'&%, 0,e common &anguage runtime. 0,e .;E0 2ramewor. c&ass &ibrary.

T:* 3.++.' 91'(61(* -6'&$+* is t,e !oundation o! t,e .;E0 2ramewor.. Dou can t,in. o! t,e runtime as an agent t,at manages code at execution time- pro+iding core ser+ices suc, as memory management- t,read management- and remoting- w,i&e a&so en!orcing strict type sa!ety and ot,er !orms o! code accuracy t,at ensure security and robustness. 5n !act- t,e concept o! code management is a !undamenta& princip&e o! t,e runtime. %ode t,at targets t,e runtime is .nown as managed code- w,i&e code t,at does not target t,e runtime is .nown as unmanaged code. 0,e c&ass &ibrary- t,e ot,er main component o! t,e .;E0 2ramewor.- is a compre,ensi+e- obBect)oriented co&&ection o! reusab&e types t,at you can use to de+e&op app&ications ranging !rom traditiona& command)&ine or grap,ica& user inter!ace 1<"54 app&ications to app&ications based on t,e &atest inno+ations pro+ided by ASP.;E0- suc, as >eb 2orms and A:= >eb ser+ices. 0,e .;E0 2ramewor. can be ,osted by unmanaged components t,at &oad t,e common &anguage runtime into t,eir processes and initiate t,e execution o! managed code- t,ereby creating a so!tware en+ironment t,at can exp&oit bot, managed and unmanaged !eatures. 0,e .;E0 2ramewor. not on&y pro+ides se+era& runtime ,osts- but a&so supports t,e de+e&opment o! t,ird)party runtime ,osts. 2or examp&e- ASP.;E0 ,osts t,e runtime to pro+ide a sca&ab&e- ser+er)side en+ironment !or managed code. ASP.;E0 wor.s direct&y wit, t,e runtime to enab&e >eb 2orms app&ications and A:= >eb ser+ices- bot, o! w,ic, are discussed &ater in t,is topic. $

5nternet Exp&orer is an examp&e o! an unmanaged app&ication t,at ,osts t,e runtime 1in t,e !orm o! a :5:E type extension4. "sing 5nternet Exp&orer to ,ost t,e runtime enab&es you to embed managed components or >indows 2orms contro&s in H0:= documents. Hosting t,e runtime in t,is way ma.es managed mobi&e code 1simi&ar to :icroso!tE Acti+eAE contro&s4 possib&e- but wit, signi!icant impro+ements t,at on&y managed code can o!!er- suc, as semi)trusted execution and secure iso&ated !i&e storage. 0,e !o&&owing i&&ustration s,ows t,e re&ations,ip o! t,e common &anguage runtime and t,e c&ass &ibrary to your app&ications and to t,e o+era&& system. 0,e i&&ustration a&so s,ows ,ow managed code operates wit,in a &arger arc,itecture. 7*1&6-*% .4 &:* C.++.' L1'(61(* R6'&$+*, 0,e common &anguage runtime manages memory- t,read execution- code executioncode sa!ety +eri!ication- compi&ation- and ot,er system ser+ices. 0,ese !eatures are intrinsic to t,e managed code t,at runs on t,e common &anguage runtime. >it, regards to security- managed components are awarded +arying degrees o! trust- depending on a number o! !actors t,at inc&ude t,eir origin 1suc, as t,e 5nternet- enterprise networ.- or &oca& computer4. 0,is means t,at a managed component mig,t or mig,t not be ab&e to per!orm !i&e)access operations- registry)access operationsor ot,er sensiti+e !unctions- e+en i! it is being used in t,e same acti+e app&ication. 0,e runtime en!orces code access security. 2or examp&e- users can trust t,at an executab&e embedded in a >eb page can p&ay an animation on screen or sing a songbut cannot access t,eir persona& data- !i&e system- or networ.. 0,e security !eatures o! t,e runtime t,us enab&e &egitimate 5nternet) dep&oyed so!tware to be exceptiona&&y !eature ric,.

0,e runtime a&so en!orces code robustness by imp&ementing a strict type) and code)+eri!ication in!rastructure ca&&ed t,e common type system 1%0S4. 0,e %0S ensures t,at a&& managed code is se&!)describing. 0,e +arious :icroso!t and t,ird)party &anguage compi&ers <enerate managed code t,at con!orms to t,e %0S. 0,is means t,at managed code can consume ot,er managed types and instances- w,i&e strict&y en!orcing type !ide&ity and type sa!ety. 5n addition- t,e managed en+ironment o! t,e runtime e&iminates many common so!tware issues. 2or examp&e- t,e runtime automatica&&y ,and&es obBect &ayout and manages re!erences to obBects- re&easing t,em w,en t,ey are no &onger being used. 0,is automatic memory management reso&+es t,e two most common app&ication errorsmemory &ea.s and in+a&id memory re!erences. 0,e runtime a&so acce&erates de+e&oper producti+ity. 2or examp&e- programmers can write app&ications in t,eir de+e&opment &anguage o! c,oice- yet ta.e !u&& ad+antage o! t,e runtime- t,e c&ass &ibrary- and components written in ot,er &anguages by ot,er de+e&opers. Any compi&er +endor w,o c,ooses to target t,e runtime can do so. =anguage compi&ers t,at target t,e .;E0 2ramewor. ma.e t,e !eatures o! t,e .;E0 2ramewor. a+ai&ab&e to existing code written in t,at &anguagegreat&y easing t,e migration process !or existing app&ications. >,i&e t,e runtime is designed !or t,e so!tware o! t,e !uture- it a&so supports so!tware o! today and yesterday. 5nteroperabi&ity between managed and unmanaged code enab&es de+e&opers to continue to use necessary %7: components and #==s. 0,e runtime is designed to en,ance per!ormance. A&t,oug, t,e common &anguage runtime pro+ides many standard runtime ser+ices- managed code is ne+er interpreted. A !eature ca&&ed Bust)in)time 1F504 compi&ing enab&es a&& managed code to run in t,e nati+e mac,ine &anguage o! t,e system on w,ic, it is executing. :eanw,i&e- t,e memory

1'

manager remo+es t,e possibi&ities o! !ragmented memory and increases memory &oca&ity) o!)re!erence to !urt,er increase per!ormance. 2ina&&y- t,e runtime can be ,osted by ,ig,)per!ormance- ser+er)side app&icationssuc, as :icroso!tE S8= Ser+erG and 5nternet 5n!ormation Ser+ices 155S4. 0,is in!rastructure enab&es you to use managed code to write your business &ogic- w,i&e sti&& enBoying t,e superior per!ormance o! t,e industryHs best enterprise ser+ers t,at support runtime ,osting. .NET 7-1+*2.-8 C91%% L$;-1-), 0,e .;E0 2ramewor. c&ass &ibrary is a co&&ection o! reusab&e types t,at tig,t&y integrate wit, t,e common &anguage runtime. 0,e c&ass &ibrary is obBect oriented- pro+iding types !rom w,ic, your own managed code can deri+e !unctiona&ity. 0,is not on&y ma.es t,e .;E0 2ramewor. types easy to use- but a&so reduces t,e time associated wit, &earning new !eatures o! t,e .;E0 2ramewor.. 5n addition- t,ird)party components can integrate seam&ess&y wit, c&asses in t,e .;E0 2ramewor.. 2or examp&e- t,e .;E0 2ramewor. co&&ection c&asses imp&ement a set o! inter!aces t,at you can use to de+e&op your own co&&ection c&asses. Dour co&&ection c&asses wi&& b&end seam&ess&y wit, t,e c&asses in t,e .;E0 2ramewor.. As you wou&d expect !rom an obBect)oriented c&ass &ibrary- t,e .;E0 2ramewor. types enab&e you to accomp&is, a range o! common programming tas.s- inc&uding tas.s suc, as string management- data co&&ection- database connecti+ity- and !i&e access. 5n addition to t,ese common tas.s- t,e c&ass &ibrary inc&udes types t,at support a +ariety o! specia&i6ed de+e&opment scenarios. 2or examp&e- we can use t,e .;E0 2ramewor. to de+e&op t,e !o&&owing types o! app&ications and ser+ices9 %onso&e app&ications. Scripted or ,osted app&ications.

11

>indows <"5 app&ications 1>indows 2orms4. ASP.;E0 app&ications. A:= >eb ser+ices. >indows ser+ices.

2or examp&e- t,e >indows 2orms c&asses are a compre,ensi+e set o! reusab&e types t,at +ast&y simp&i!y >indows <"5 de+e&opment. 5! you write an ASP.;E0 >eb 2orm app&ication- you can use t,e >eb 2orms c&asses. C9$*'& A//9$31&$.' D*=*9./+*'&, %&ient app&ications are t,e c&osest to a traditiona& sty&e o! app&ication in >indows)based programming. 0,ese are t,e types o! app&ications t,at disp&ay windows or !orms on t,e des.top- enab&ing a user to per!orm a tas.. %&ient app&ications inc&ude app&ications suc, as word processors and spreads,eets- as we&& as custom business app&ications suc, as data)entry too&s- reporting too&s- and so on. %&ient app&ications usua&&y emp&oy windowsmenus- buttons- and ot,er <"5 e&ements- and t,ey &i.e&y access &oca& resources suc, as t,e !i&e system and perip,era&s suc, as printers. Anot,er .ind o! c&ient app&ication is t,e traditiona& Acti+eA contro& 1now rep&aced by t,e managed >indows 2orms contro&4 dep&oyed o+er t,e 5nternet as a >eb page. 0,is app&ication is muc, &i.e ot,er c&ient app&ications9 it is executed nati+e&y- ,as access to &oca& resources- and inc&udes grap,ica& e&ements. 5n t,e past- de+e&opers created suc, app&ications using %@%II in conBunction wit, t,e :icroso!t 2oundation %&asses 1:2%4 or wit, a rapid app&ication de+e&opment 1RA#4 en+ironment suc, as :icroso!tE Jisua& 3asicE. 0,e .;E0 2ramewor. incorporates aspects o! t,ese existing products into a sing&econsistent de+e&opment en+ironment t,at drastica&&y simp&i!ies t,e de+e&opment o! c&ient app&ications.

12

0,e >indows 2orms c&asses contained in t,e .;E0 2ramewor. are designed to be used !or <"5 de+e&opment. Dou can easi&y create command windows- buttons- menustoo&bars- and ot,er screen e&ements wit, t,e !&exibi&ity necessary to accommodate s,i!ting business needs. 2or examp&e- t,e .;E0 2ramewor. pro+ides simp&e properties to adBust +isua& attributes associated wit, !orms. 5n some cases t,e under&ying operating system does not support c,anging t,ese attributes direct&y- and in t,ese cases t,e .;E0 2ramewor. automatica&&y recreates t,e !orms. 0,is is one o! many ways in w,ic, t,e .;E0 2ramewor. integrates t,e de+e&oper inter!ace- ma.ing coding simp&er and more consistent. "n&i.e Acti+eA contro&s- >indows 2orms contro&s ,a+e semi)trusted access to a userHs computer. 0,is means t,at binary or nati+e&y executing code can access some o! t,e resources on t,e userHs system 1suc, as <"5 e&ements and &imited !i&e access4 wit,out being ab&e to access or compromise ot,er resources. 3ecause o! code access securitymany app&ications t,at once needed to be insta&&ed on a userHs system can now be sa!e&y dep&oyed t,roug, t,e >eb. Dour app&ications can imp&ement t,e !eatures o! a &oca& app&ication w,i&e being dep&oyed &i.e a >eb page.

13

I'&-.063&$.' &. C>.NET, %K 1pronounced as %)s,arp4 is a new &anguage !or windows app&ications- intended as an a&ternati+e to t,e main pre+ious &anguages- %II- J3. 5ts purpose is two !o&ds9 5t gi+es access to many o! t,e !aci&ities pre+ious&y a+ai&ab&e on&y in %II- w,i&e retaining some o! t,e simp&icity to &earn o! J3. 5t ,as been designed speci!ica&&y wit, t,e .;E0 2ramewor. in mind- and ,ence is +ery we&& structured !or writing code t,at wi&& be compi&ed !or t,e .;E0. %K is a simp&e- modern- obBect)oriented &anguage w,ic, aims to combine t,e ,ig, producti+ity o! J3 and raw power o! %II. %K is a new programming &anguage de+e&oped by :icroso!t. "sing %K we can de+e&op conso&e app&ications- web app&ications and windows app&ications .5n %K- :icroso!t ,as ta.en care o! %II prob&ems suc, as memory management- pointers- so !ort,.

A3&$=* S*-=*- P1(*% .NET ?ASP.NET@ ASP.;E0 is a programming !ramewor. bui&t on t,e common &anguage runtime t,at can be used on a ser+er to bui&d power!u& >eb app&ications. ASP.;E0 o!!ers se+era& important ad+antages o+er pre+ious >eb de+e&opment mode&s E':1'3*0 P*-4.-+1'3*, ASP.;E0 is compi&ed common &anguage runtime code running on t,e ser+er. "n&i.e its interpreted predecessors- ASP.;E0 can ta.e ad+antage o! ear&y binding- Bust)in)time compi&ation- nati+e optimi6ation- and cac,ing ser+ices rig,t out o! t,e box. 0,is amounts to dramatica&&y better per!ormance be!ore you e+er write a &ine o! code. A.-90BC91%% T..9 S6//.-&, A ric, too&box and designer in t,e Jisua& Studio integrated de+e&opment en+ironment comp&ement t,e ASP.;E0 !ramewor.. >DS5>D< editingdrag)and)drop ser+er contro&s- and automatic dep&oyment are Bust a !ew o! t,e !eatures t,is power!u& too& pro+ides. P.2*- 1'0 79*#$;$9$&), 3ecause ASP.;E0 is based on t,e common &anguage runtimet,e power and !&exibi&ity o! t,at entire p&at!orm is a+ai&ab&e to >eb app&ication de+e&opers. 0,e .;E0 2ramewor. c&ass &ibrary- :essaging- and #ata Access so&utions are a&& seam&ess&y accessib&e !rom t,e >eb. ASP.;E0 is a&so &anguage)independent- so you can c,oose t,e &anguage t,at best app&ies to your app&ication or partition your app&ication across many &anguages. 2urt,er- common &anguage runtime interoperabi&ity guarantees t,at your existing in+estment in %7:)based de+e&opment is preser+ed w,en migrating to ASP.;E0. S$+/9$3$&), ASP.;E0 ma.es it easy to per!orm common tas.s- !rom simp&e !orm submission and c&ient aut,entication to dep&oyment and site con!iguration. 2or examp&e1(

t,e ASP.;E0 page !ramewor. a&&ows you to bui&d user inter!aces t,at c&ean&y separate app&ication &ogic !rom presentation code and to ,and&e e+ents in a simp&e- Jisua& 3asic ) &i.e !orms processing mode&. M1'1(*1;$9$&), ASP.;E0 emp&oys a text)based- ,ierarc,ica& con!iguration systemw,ic, simp&i!ies app&ying settings to your ser+er en+ironment and >eb app&ications. 3ecause con!iguration in!ormation is stored as p&ain text- new settings may be app&ied wit,out t,e aid o! &oca& administration too&s. 0,is L6ero &oca& administrationL p,i&osop,y extends to dep&oying ASP.;E0 2ramewor. app&ications as we&&. An ASP.;E0 2ramewor. app&ication is dep&oyed to a ser+er simp&y by copying t,e necessary !i&es to t,e ser+er. ;o ser+er restart is required- e+en to dep&oy or rep&ace running compi&ed code. S3191;$9$&) 1'0 A=1$91;$9$&), ASP.;E0 ,as been designed wit, sca&abi&ity in mind- wit, !eatures speci!ica&&y tai&ored to impro+e per!ormance in c&ustered and mu&tiprocessor en+ironments. 2urt,er- processes are c&ose&y monitored and managed by t,e ASP.;E0 runtime- so t,at i! one misbe,a+es 1&ea.s- dead&oc.s4- a new process can be created in its p&ace- w,ic, ,e&ps .eep your app&ication constant&y a+ai&ab&e to ,and&e requests. C6%&.+$C1;$9$&) 1'0 E#&*'%$;$9$&), ASP.;E0 de&i+ers a we&&)!actored arc,itecture t,at a&&ows de+e&opers to Lp&ug)inL t,eir code at t,e appropriate &e+e&. 5n !act- it is possib&e to extend or rep&ace any subcomponent o! t,e ASP.;E0 runtime wit, your own custom) written component. 5mp&ementing custom aut,entication or state ser+ices ,as ne+er been easier S*36-$&), >it, bui&t in >indows aut,entication and per)app&ication con!iguration- you can be assured t,at your app&ications are secure. L1'(61(* S6//.-& 0,e :icroso!t .;E0 P&at!orm current&y o!!ers bui&t)in support !or many &anguages9 C>D V$%619 1%$3D E%3-$/& *&3.

1*

A:1& $% ASP.NET A*; 7.-+%F 0,e ASP.;E0 >eb 2orms page !ramewor. is a sca&ab&e common &anguage runtime) programming mode& t,at can be used on t,e ser+er to dynamica&&y generate >eb pages. 5ntended as a &ogica& e+o&ution o! ASP 1ASP.;E0 pro+ides syntax compatibi&ity wit, existing pages4- t,e ASP.;E0 >eb 2orms !ramewor. ,as been speci!ica&&y designed to address a number o! .ey de!iciencies in t,e pre+ious mode&. 5n particu&ar- it pro+ides9 0,e abi&ity !or de+e&opers to c&ean&y structure t,eir page &ogic in an order&y !as,ion 1not Lspag,etti codeL4. 0,e abi&ity !or de+e&opment too&s to pro+ide strong >DS5>D< design support !or pages 1existing ASP code is opaque to too&s4. 0,e abi&ity to create and use reusab&e "5 contro&s t,at can encapsu&ate common !unctiona&ity and t,us reduce t,e amount o! code t,at a page de+e&oper ,as to write. ASP.;E0 >eb 2orms pages are text !i&es wit, an. aspx !i&e name extension. 0,ey can be dep&oyed t,roug,out an 55S +irtua& root directory tree. >,en a browser c&ient requests. Aspx resources- t,e ASP.;E0 runtime parses and compi&es t,e target !i&e into a .;E0 2ramewor. c&ass. 0,is c&ass can t,en be used to dynamica&&y process incoming requests. 1;ote t,at t,e .aspx !i&e is compi&ed on&y t,e !irst time it is accessedM t,e compi&ed type instance is t,en reused across mu&tip&e requests4. An ASP.;E0 page can be created simp&y by ta.ing an existing H0:= !i&e and c,anging its !i&e name extension to .aspx 1no modi!ication o! code is required4. 2or examp&e- t,e !o&&owing samp&e demonstrates a simp&e H0:= page t,at co&&ects a userHs name and category pre!erence and t,en per!orms a !orm post bac. to t,e originating page w,en a button is c&ic.ed9 1C

ASP.;E0 pro+ides syntax compatibi&ity wit, existing ASP pages. 0,is inc&udes support !or NO OP code render b&oc.s t,at can be intermixed wit, H0:= content wit,in an .aspx !i&e. 0,ese code b&oc.s execute in a top)down manner at page render time. C.0*B *:$'0 A*; 7.-+% , ASP.;E0 supports two met,ods o! aut,oring dynamic pages. 0,e !irst is t,e met,od s,own in t,e preceding samp&es- w,ere t,e page code is p,ysica&&y dec&ared wit,in t,e originating .aspx !i&e. An a&ternati+e approac, is .nown as t,e code)be,ind met,od w,ere t,e page code can b e more c&ean&y separated !rom t,e H0:= content into an entire&y separate !i&e. I'&-.063&$.' &. ASP.NET S*-=*- C.'&-.9% 5n addition to 1or instead o!4 using GH HI code b&oc.s to program dynamic contentASP.;E0 page de+e&opers can use ASP.;E0 ser+er contro&s to program >eb Pages. Ser+er contro&s are dec&ared wit,in an .aspx !i&e using custom tags or intrinsic H0:= tags t,at contains a -6' 1&JK%*-=*-K attributes +a&ue. 5ntrinsic H0:= tags are ,and&ed by one o! t,e contro&s in t,e S)%&*+.A*;.UI.!&+9C.'&-.9% namespace. Any tag t,at doesnHt exp&icit&y map to one o! t,e contro&s is assigned t,e type o!9 S)%&*+.A*;.UI.!&+9 C.'&-.9%.!&+9G*'*-$3C.'&-.9. Ser+er contro&s automatica&&y maintain any c&ient)entered +a&ues between round trips to t,e ser+er. 0,is contro& state is not stored on t,e ser+er 1it is instead stored wit,in an G$'/6& &)/*JK:$00*'KI !orm !ie&d t,at is round)tripped between requests4. ;ote a&so t,at no c&ient)side script is required. 5n addition to supporting standard H0:= input contro&s- ASP.;E0 enab&es de+e&opers to uti&i6e ric,er custom contro&s on t,eir pages. 2or examp&e- t,e !o&&owing samp&e demonstrates ,ow t,e G1%/, 10-.&1&.-I contro& can be used to dynamica&&y disp&ay rotating ads on a page.

1$

ASP.;E0 >eb 2orms pro+ide an easy and power!u& way to bui&d dynamic >eb "5. ASP.;E0 >eb 2orms pages can target any browser c&ient 1t,ere are no script &ibrary or coo.ie requirements4. ASP.;E0 >eb 2orms pages pro+ide syntax compatibi&ity wit, existing ASP pages. ASP.;E0 ser+er contro&s pro+ide an easy way to encapsu&ate common !unctiona&ity. ASP.;E0 s,ips wit, ( bui&t)in ser+er contro&s. #e+e&opers can a&so use contro&s bui&t by t,ird parties. ASP.;E0 ser+er contro&s can automatica&&y proBect bot, up &e+e& and down)&e+e& H0:=.

1?

ADO.NET O=*-=$*2, A#7.;E0 is an e+o&ution o! t,e A#7 data access mode& t,at direct&y addresses user requirements !or de+e&oping sca&ab&e app&ications. 5t was designed speci!ica&&y !or t,e web wit, sca&abi&ity- state&essness- and A:= in mind. A#7.;E0 uses some A#7 obBects- suc, as t,e %onnection and %ommand obBects- and a&so introduces new obBects. Qey new A#7.;E0 obBects inc&ude t,e #ata Set- #ata Reader- and #ata Adapter. 0,e important distinction between t,is e+o&+ed stage o! A#7.;E0 and pre+ious data arc,itectures is t,at t,ere exists an obBect )) t,e #ataSet )) t,at is separate and distinct !rom any data stores. 3ecause o! t,at- t,e #ataSet !unctions as a standa&one entity. Dou can t,in. o! t,e #ataSet as an a&ways disconnected record set t,at .nows not,ing about t,e source or destination o! t,e data it contains. 5nside a #ataSet- muc, &i.e in a databaset,ere are tab&es- co&umns- re&ations,ips- constraints- +iews- and so !ort,. A #ataAdapter is t,e obBect t,at connects to t,e database to !i&& t,e #ataSet. 0,en- it connects bac. to t,e database to update t,e data t,ere- based on operations per!ormed w,i&e t,e #ataSet ,e&d t,e data. 5n t,e past- data processing ,as been primari&y connection)based. ;ow- in an e!!ort to ma.e mu&ti)tiered apps more e!!icient- data processing is turning to a message)based approac, t,at re+o&+es around c,un.s o! in!ormation. At t,e center o! t,is approac, is t,e #ataAdapter- w,ic, pro+ides a bridge to retrie+e and sa+e data between a #ataSet and its source data store. 5t accomp&is,es t,is by means o! requests to t,e appropriate S8= commands made against t,e data store. 0,e A:=)based #ataSet obBect pro+ides a consistent programming mode& t,at wor.s wit, a&& mode&s o! data storage9 !&at- re&ationa&- and ,ierarc,ica&. 5t does t,is by ,a+ing no 2'

H.now&edgeH o! t,e source o! its data- and by representing t,e data t,at it ,o&ds as co&&ections and data types. ;o matter w,at t,e source o! t,e data wit,in t,e #ataSet is- it is manipu&ated t,roug, t,e same set o! standard AP5s exposed t,roug, t,e #ataSet and its subordinate obBects. >,i&e t,e #ataSet ,as no .now&edge o! t,e source o! its data- t,e managed pro+ider ,as detai&ed and speci!ic in!ormation. 0,e ro&e o! t,e managed pro+ider is to connect- !i&&and persist t,e #ataSet to and !rom data stores. 0,e 7=E #3 and S8= Ser+er .;E0 #ata Pro+iders 1System.#ata.7&e#b and System.#ata.Sq&%&ient4 t,at are part o! t,e .;et 2ramewor. pro+ide !our basic obBects9 t,e %ommand- %onnection- #ata Reader and #ataAdapter. 5n t,e remaining sections o! t,is document- weH&& wa&. t,roug, eac, part o! t,e #ataSet and t,e 7=E #3@S8= Ser+er .;E0 #ata Pro+iders exp&aining w,at t,ey areand ,ow to program against t,em. 0,e !o&&owing sections wi&& introduce you to some obBects t,at ,a+e e+o&+ed- and some t,at are new. 0,ese obBects are9 C.''*3&$.'%. 2or connection to and managing transactions against database. C.++1'0%. 2or issuing S8= commands against a database. D1&1 R*10*-%. 2or reading a !orward)on&y stream o! data records !rom a S8= Ser+er data source. D1&1%*&%. 2or storing- remoting and programming against !&at data- A:= data and re&ationa& data. D1&1 A01/&*-%. 2or pus,ing data into a #ataSet- and reconci&ing data against a database. C.''*3&$.'% %onnections are used to Hta&. toH databases- and are represented by pro+ider)speci!ic c&asses suc, as S8=%onnection. %ommands tra+e& o+er connections and resu&t sets are returned in t,e !orm o! streams w,ic, can be read by a #ata Reader obBect- or pus,ed into a #ataSet obBect. C.++1'0% ,

21

%ommands contain t,e in!ormation t,at is submitted to a database- and are represented by pro+ider)speci!ic c&asses suc, as S8=%ommand. A command can be a stored procedure ca&&- an "P#A0E statement- or a statement t,at returns resu&ts. Dou can a&so use input and output parameters- and return +a&ues as part o! your command syntax. 0,e examp&e be&ow s,ows ,ow to issue an 5;SER0 statement against t,e ;ort,wind database. D1&1 R*10*-% , 0,e #ata Reader obBect is somew,at synonymous wit, a read)on&y@!orward)on&y cursor o+er data. 0,e #ata Reader AP5 supports !&at as we&& as ,ierarc,ica& data. A #ata Reader obBect is returned a!ter executing a command against a database.0,e !ormat o! t,e returned #ataReader obBect is di!!erent !rom a recordset. 2or examp&e- you mig,t use t,e #ataReader to s,ow t,e resu&ts o! a searc, &ist in a web page. D1&1 S*&% 1'0 D1&1 A01/&*-%, D1&1 S*&%, 0,e #ataSet obBect is simi&ar to t,e A#7 Record set obBect- but more power!u&- and wit, one ot,er important distinction9 t,e #ataSet is a&ways disconnected. 0,e #ataSet obBect represents a cac,e o! data- wit, database)&i.e structures suc, as tab&es- co&umnsre&ations,ips- and constraints. Howe+er- t,oug, a #ataSet can and does be,a+e muc, &i.e a database- it is important to remember t,at #ataSet obBects do not interact direct&y wit, databases- or ot,er source data. 0,is a&&ows t,e de+e&oper to wor. wit, a programming mode& t,at is a&ways consistent- regard&ess o! w,ere t,e source data resides. #ata coming !rom a database- an A:= !i&e- !rom code- or user input can a&& be p&aced into #ataSet obBects. 0,en- as c,anges are made to t,e #ataSet t,ey can be trac.ed and +eri!ied be!ore updating t,e source data. 0,e <et%,anges met,od o! t,e #ataSet obBect

22

actua&&y creates a second #atSet t,at contains on&y t,e c,anges to t,e data. 0,is #ataSet is t,en used by a #ataAdapter 1or ot,er obBects4 to update t,e origina& data source. 0,e #ataSet ,as many A:= c,aracteristics- inc&uding t,e abi&ity to produce and consume A:= data and A:= sc,emas. A:= sc,emas can be used to describe sc,emas interc,anged +ia >eb Ser+ices. 5n !act- a #ataSet wit, a sc,ema can actua&&y be compi&ed !or type sa!ety and statement comp&etion. D1&1 A01/&*-% ?OLED LSQL@ 0,e #ataAdapter obBect wor.s as a bridge between t,e #ataSet and t,e source data. "sing t,e pro+ider)speci!ic Sq&#ataAdapter 1a&ong wit, its associated Sq&command and Sq&%onnection4 can increase o+era&& per!ormance w,en wor.ing wit, a :icroso!t S8= Ser+er databases. 2or ot,er 7=E #3)supported databases- you wou&d use t,e 7&e#b#ataAdapter obBect and its associated 7&e#b%ommand and 7&e#b%onnection obBects. 0,e #ataAdapter obBect uses commands to update t,e data source a!ter c,anges ,a+e been made to t,e #ataSet. "sing t,e 2i&& met,od o! t,e #ataAdapter ca&&s t,e SE=E%0 commandM using t,e "pdate met,od ca&&s t,e 5;SER0- "P#A0E or #E=E0E command !or eac, c,anged row. Dou can exp&icit&y set t,ese commands in order to contro& t,e statements used at runtime to reso&+e c,anges- inc&uding t,e use o! stored procedures. 2or ad),oc scenarios- a %ommand 3ui&der obBect can generate t,ese at run) time based upon a se&ect statement.

23

SQL SERVER DATA ASE, A database management- or #3:S- gi+es t,e user access to t,eir data and ,e&ps t,em trans!orm t,e data into in!ormation. Suc, database management systems inc&ude d3aseparadox- 5:S- S8= Ser+er and S8= Ser+er. 0,ese systems a&&ow users to create- update and extract in!ormation !rom t,eir database. A database is a structured co&&ection o! data. #ata re!ers to t,e c,aracteristics o! peop&e- t,ings and e+ents. S8= Ser+er stores eac, data item in its own !ie&ds. 5n S8= Ser+er- t,e !ie&ds re&ating to a particu&ar person- t,ing or e+ent are bund&ed toget,er to !orm a sing&e comp&ete unit o! data- ca&&ed a record 1it can a&so be re!erred to as raw or an occurrence4. Eac, record is made up o! a number o! !ie&ds. ;o two !ie&ds in a record can ,a+e t,e same !ie&d name. #uring an S8= Ser+er #atabase design proBect- t,e ana&ysis o! your business c,ange o+er time- you de!ine any additiona& !ie&ds or c,ange t,e de!inition o! existing !ie&ds. SQL S*-=*- T1;9*% S8= Ser+er stores records re&ating to eac, ot,er in a tab&e. #i!!erent tab&es are created !or t,e +arious groups o! in!ormation. Re&ated tab&es are grouped toget,er to !orm a database. P-$+1-) M*) E+ery tab&e in S8= Ser+er ,as a !ie&d or a combination o! !ie&ds t,at unique&y identi!ies eac, record in t,e tab&e. 0,e "nique identi!ier is ca&&ed t,e Primary Qey- or simp&y t,e Qey. 0,e primary .ey pro+ides t,e means to distinguis, one record !rom a&& ot,er in a tab&e. 5t a&&ows t,e user and t,e database system to identi!y- &ocate and re!er to one particu&ar record in t,e database.

7.-*$(' M*) >,en a !ie&d is one tab&e matc,es t,e primary .ey o! anot,er !ie&d is re!erred to as a !oreign .ey. A !oreign .ey is a !ie&d or a group o! !ie&ds in one tab&e w,ose +a&ues matc, t,ose o! t,e primary .ey o! anot,er tab&e.needs identi!ies a&& t,e !ie&ds or attributes o! interest. 5! your business needs

2(

:7#"=E #ES%R5P057;

2*

3. MODULE DESCRIPTION

0,e &ist o! modu&es incorporated wit, RA5R=5;E RESERJA057; SDS0E:N are 1. Registration modu&e 2. Administrati+e modu&e 3. Passenger modu&e 1. R*($%&-1&$.' +.069* 5n registration modu&e !irst we as. passenger to gi+e ,is detai&s.A!ter registering wit, us t,e passenger can &ogon to ,is@,er own account and can +iew a&& !&ig,t detai&s suc, as 0imings- Prices-A+ai&abi&ity o! seats and can boo. t,e tic.et wit, unique tic.et id.7nce Passenger registered wit, us can boo. any number o! tic.ets. 2. A0+$'$%&-1&$=* +.069* Administrati+e modu&e is pro+ided !or t,e sa.e o! administrators to manage t,e site and update t,e content at regu&ar inter+a&s- 0,e maBor operations inc&uded in t,is modu&e are9 %reate and maintain air&ine sc,edu&e- !are and timings o! t,e 2&ig,t. Jiew t,e passenger &ist. Jiew t,e a+ai&ab&e seats in t,e !&ig,ts. %ance& t,e tic.ets. "pdating t,e !&ig,t sc,edu&e and timings and !are.

2C

3. P1%%*'(*- +.069* 0,is modu&e is meant !or passengers- w,ere a user &ogging into ,is@,er owns account wi&& +iew t,is pane&. 0,e maBor operations inc&uded in t,is modu&e were Jiew a&& air&ine sc,edu&es- timings- !are detai&s and seats a+ai&abi&ity. 3oo. !or t,e tic.ets. Jiew and cance&&ing o! t,e tic.et. Send !eedbac..

3e,ind t,ese modu&es- it a&so inc&udes additiona& >ebPages &i.e Password reco+ery conso&e- 0ips regarding Bourney- 0ra+e&ing news around wor&d and ,e&p regarding our site.

2$

DESIGN

2?

4. DESIGN
UML DIAGRAMS,

4.1 U%* 31%* 0$1(-1+

Login

Scheduling flights

View passenger list ADMIN

%ance& t,e tic.et

view feedback

Log out

3'

"egister

Login

View flight timings and availability

ook the ticket

Send cancel re!uest #S$" Send feedback

Log out

31

. C91%% D$1(-1+

32

4.3 S*56*'3* 0$1(-1+

33

4.4 C.991;.-1&$.' 0$1(-1+

4.5 EBR 0$1(-1+

05%QE0 377Q5;<

3oo.s

=7<5;

0ic.et id no Passengername

;o.passenger s
#estinationStatio non

=oginname e Passwor d ;ame

0ype :obi&e <ender

2&igt,;ame

SourceStation

=ocation #epend s #estinatio n Station 5# <i+e s

S%HE#"=5;< 0ime Seats 2&ig,tname Sourcestatio n

2EE#3A%Q

;ame Emai&

SubBect

4.5 D1&1 0$3&$.'1-) 3(

7EED ACM TA LE

ATTRI UTE NAME 5# ;ame Emai& SubBect :essage

DATATYPE 5nt Jarc,ar1('4 Jarc,ar1('4 Jarc,ar1('4

CONSTRAINTS Primary .ey ;ot nu&& ;ot nu&& ;ot nu&& 1

SAMPLE VALUES

su,as su,asra++aSya,oo.com Password Some text message ,ere

Jarc,ar1:AA4 ;u&&

SC!EDULING TA LE

A00R53"0E ;A:E 2&ig,tname 0ime Sourcestation #estinationstation Seats Price

#A0A0DPE Jarc,ar1('4 #atetime Jarc,ar1('4 Jarc,ar1('4 int int

%7;S0RA5;0S Primary .ey ;ot nu&& ;ot nu&& ;ot nu&& ;ot nu&& ;ot nu&&

SA:P=E JA="E Su,as 2C@'*@2'1' *9((9'' A: HD# ;E> #E=H5 12' 12''

TICMET OOMING TA LE

A00R53"0E ;A:E Passengername

#A0A0DPE %7;S0RA5;0S Jarc,ar1('4 2oreign .ey

SA:P=E JA="ES Su,as

3*

2&ig,tname Sourcestation

Jarc,ar1('4 Jarc,ar1('4

2oreign .ey ;ot nu&& ;ot nu&& Primary .ey ;ot nu&&

Qing!is,er HD# #E=H5 1' 3

#estinationstation Jarc,ar1('4 0ic.etno ;umbero! paasengers int 5nt

REGISTRATION TA LE

ATTRI UTE NAME "sername Password 2irst name <ender =ocation P,no

DATATYPE Jarc,ar212'4 Jarc,ar212'4 ;umber11'4 Jarc,ar212'4 ;umber 12'4 ;umber11'4

CONSTRAINTS Primary .ey c,ec. ;ot nu&& ;ot nu&& ;ot nu&& ;ot nu&&

SAMPLEVALUES Su,as Su,as123' Su,as Ra++a :a&e 5;#5A ?1CCC*1( C

3C

CODING

5. CODING
3$

R*($%&*-.1%/# using SystemM using System.#ataM using System.%on!igurationM using System.%o&&ectionsM using System.>ebM using System.>eb.SecurityM using System.>eb."5M using System.>eb."5.>eb%ontro&sM using System.>eb."5.>eb%ontro&s.>ebPartsM using System.>eb."5.Htm&%ontro&sM using System.#ata.Sq&%&ientM pub&ic partia& c&ass #e!au&t2 9 System.>eb."5.Page T int .U '-&U'M protected +oid PageV=oad1obBect sender- E+entArgs e4 T W protected +oid 0ext3ox1V0ext%,anged1obBect sender- E+entArgs e4 T W protected +oid 0ext3ox3V0ext%,anged1obBect sender- E+entArgs e4 T i! 10ext3ox(.0ext XU 0ext3ox3.0ext4 T =abe&11.Jisib&e U trueM =abe&11.0ext U Lpassword mismatc,edLM . U . I 1M W W protected +oid 0ext3ox V0ext%,anged1obBect sender- E+entArgs e4 T W protected +oid 3utton2V%&ic.1obBect sender- E+entArgs e4 T W protected +oid Radio3utton1V%,ec.ed%,anged1obBect sender- E+entArgs e4 T W

3?

protected +oid Radio3utton=ist1VSe&ected5ndex%,anged1obBect sender- E+entArgs e4 T W protected +oid %,ec.3ox1V%,ec.ed%,anged1obBect sender- E+entArgs e4 T & U & I 1M W String constring U %on!iguration:anager.%onnectionStringsYLconLZ.%onnectionString.0oString14M protected +oid 3utton1V%&ic.1obBect sender- E+entArgs e4 T Sq&%onnection con U new Sq&%onnection1constring4M Sq&%ommand cmd U new Sq&%ommand14M cmd.%ommand0ype U %ommand0ype.0extM cmd.%onnection U conM con.7pen14M =abe&?.0ext U LuserLM cmd.%ommand0ext U Lse&ect =oginname !rom =oginLM Sq&#ataAdapter da U new Sq&#ataAdapter14M da.Se&ect%ommand U cmdM #ataSet ds U new #ataSet14M da.2i&&1ds- LempL4M int c U 'M !or 1int i U 'M i N ds.0ab&esYLempLZ.Rows.%ountM iII4 T i! 1ds.0ab&esYLempLZ.RowsYiZYL=oginnameLZ.0oString14 UU 0ext3ox2.0ext4 T c U c I 1M W W i! 1. UU ' [[ &P'4 T & U 'M i! 1c UU '4 T i! 10ext3ox1.0ext XU LL [[ 0ext3ox2.0ext XU LL [[ 0ext3ox .0extXULL [[ 0ext3ox3.0ext XU LL4 T

'

cmd.%ommand0ext U Linsert into =ogin1=oginname-Password-;ame-<ender-=ocation-P,no-0ype4 +a&ues1HL I 0ext3ox2.0ext I LH-HL I 0ext3ox3.0ext I LH-HL I 0ext3ox1.0ext I LH-HL I Radio3utton=ist1.0ext I LH-HL I #rop#own=ist1.0ext I LH-HL I 0ext3ox .0ext I LH-HL I =abe&?.0ext I LH4LM int i U cmd.Execute;on8uery14M i! 1i UU 14 T

=abe&$.Jisib&e U !a&seM =abe&12.Jisib&e U trueM =abe&12.0ext U Lsuccess!u&&y registered-c&ic. on &ogin..your &ogin name is9 L I 0ext3ox2.0extM W e&se T =abe&$.Jisib&e U trueM =abe&$.0ext U Lsome t,ing went wrong try againLM W W e&se T =abe&$.Jisib&e U trueM =abe&$.0ext U Lsome !ie&ds are &e!t emptyLM W W e&se T =abe&$.Jisib&e U trueM =abe&$.0ext U L=ogin name a&ready existsLM W W e&se T =abe&$.Jisib&e U trueM =abe&$.0ext U Lyou need to accept our terms and conditionsLM W W

protected +oid 0ext3ox2V0ext%,anged11obBect sender- E+entArgs e4 T W protected +oid 0ext3ox(V0ext%,anged1obBect sender- E+entArgs e4 T W W

L.($'.1%/# using SystemM using System.#ataM using System.%on!igurationM using System.%o&&ectionsM using System.>ebM using System.>eb.SecurityM using System.>eb."5M using System.>eb."5.>eb%ontro&sM using System.>eb."5.>eb%ontro&s.>ebPartsM using System.>eb."5.Htm&%ontro&sM using System.#ata.Sq&%&ientM pub&ic partia& c&ass &ogin 9 System.>eb."5.Page T protected +oid PageV=oad1obBect sender- E+entArgs e4 T W protected +oid 3utton1V%&ic.1obBect sender- E+entArgs e4 T W protected +oid 3utton2V%&ic.1obBect sender- E+entArgs e4 T W protected +oid 0ext3ox2V0ext%,anged1obBect sender- E+entArgs e4

T W protected +oid 0ext3ox1V0ext%,anged1obBect sender- E+entArgs e4 T W String constring U %on!iguration:anager.%onnectionStringsYLconLZ.%onnectionString.0oString14M protected +oid 3utton2V%&ic.11obBect sender- E+entArgs e4 T Sq&%onnection con U new Sq&%onnection1constring4M Sq&%ommand cmd U new Sq&%ommand14M cmd.%ommand0ype U %ommand0ype.0extM cmd.%onnection U conM con.7pen14M cmd.%ommand0ext U Lse&ect =oginname-0ype !rom =ogin w,ere =oginnameUHL I 0ext3ox1.0ext I LHand PasswordUHL I 0ext3ox2.0ext I LHand 0ypeUHLI#rop#own=ist1.0extILHLM Sq&#ataAdapter da U new Sq&#ataAdapter14M da.Se&ect%ommand U cmdM #ataSet ds U new #ataSet14M da.2i&&1ds- LempL4M i! 1ds.0ab&esYLempLZ.Rows.%ount P '4 T SessionYL0ypeLZ U ds.0ab&esYLempLZ.RowsY'ZYL0ypeLZ.0oString14M SessionYL=oginnameLZ U ds.0ab&esYLempLZ.RowsY'ZYL=oginnameLZ.0oString14M Response.Redirect1LHome.aspxL4M W e&se T =abe& .Jisib&e U trueM =abe& .0ext U Lin+a&id username or passwordLM W con.%&ose14M W

M1%&*-/1(*.1%/# using SystemM using System.#ataM using System.%on!igurationM using System.%o&&ectionsM using System.>ebM 3

using System.>eb.SecurityM using System.>eb."5M using System.>eb."5.>eb%ontro&sM using System.>eb."5.>eb%ontro&s.>ebPartsM using System.>eb."5.Htm&%ontro&sM using System.#ata.Sq&%&ientM pub&ic partia& c&ass :asterPage 9 System.>eb."5.:asterPage T protected +oid PageV=oad1obBect sender- E+entArgs e4 T i! 1SessionYL0ypeLZ XU nu&&4 T i! 1SessionYL0ypeLZ.0oString14 UU LadminL4 T pn&cust.Jisib&e U !a&seM pn&og.Jisib&e U trueM pn&admin.Jisib&e U trueM W e&se T pn&cust.Jisib&e U trueM pn&og.Jisib&e U trueM pn&admin.Jisib&e U !a&seM W W e&se T pn&cust.Jisib&e U !a&seM pn&og.Jisib&e U trueM pn&admin.Jisib&e U !a&seM W W protected +oid :enu2V:enu5tem%&ic.1obBect sender- :enuE+entArgs e4 T W protected +oid =in.3utton2V%&ic.1obBect sender- E+entArgs e4 T SessionYL0ypeLZ U nu&&M Response.Redirect1L&ogin.aspxL4M

W protected +oid :enu1V:enu5tem%&ic.1obBect sender- :enuE+entArgs e4 T W protected +oid :enu3V:enu5tem%&ic.1obBect sender- :enuE+entArgs e4 T W protected +oid =in.button1V%&ic.1obBect sender- E+entArgs e4 T Session.Remo+eA&&14M Response.Redirect1LHome.aspxL4M W W

T$38*&;..8$'(.1%/# using SystemM using System.#ataM using System.%on!igurationM using System.%o&&ectionsM using System.>ebM using System.>eb.SecurityM using System.>eb."5M using System.>eb."5.>eb%ontro&sM using System.>eb."5.>eb%ontro&s.>ebPartsM using System.>eb."5.Htm&%ontro&sM using System.#ata.Sq&%&ientM pub&ic partia& c&ass #e!au&t2 9 System.>eb."5.Page T protected +oid PageV=oad1obBect sender- E+entArgs e4 T W String constring U %on!iguration:anager.%onnectionStringsYLconLZ.%onnectionString.0oString14M protected +oid 3utton1V%&ic.11obBect sender- E+entArgs e4 T Sq&%onnection con U new Sq&%onnection1constring4M Sq&%ommand cmd U new Sq&%ommand14M cmd.%ommand0ype U %ommand0ype.0extM cmd.%onnection U conM con.7pen14M

cmd.%ommand0ext U Linsert into 0ic.etboo.ing1Passengername-2&ig,tname-Sourcestation-#estinationstation-;umbero!pa ssengers4 +a&ues1HL I SessionYL=oginnameLZ I LH-HL I #rop#own=ist1.0ext I LH-HL I #rop#own=ist2.0ext I LH-HL I #rop#own=ist3.0ext I LH-HLI#rop#own=ist .0extILH4LM Sq&#ataAdapter da U new Sq&#ataAdapter14M da.5nsert%ommand U cmdM int i U cmd.Execute;on8uery14M cmd.%ommand0ext U Lupdate Sc,edu&ing set SeatsUSeats)HLI#rop#own=ist .0extILH w,ere 2&ig,t;ameUHL I #rop#own=ist1.0ext I LHLM int B U cmd.Execute;on8uery14M i! 1i UU 1 [[ B UU 14 T =abe&(.Jisib&e U trueM =abe&(.0ext U Lsuccess!u&&y boo.ed your tic.et-c&ic. on generate to .now tic.et numberLM W e&se T =abe&(.Jisib&e U trueM =abe&(.0ext U LSer+er bu6y try againLM W con.%&ose14M W protected +oid 3utton2V%&ic.1obBect sender- E+entArgs e4 T Sq&%onnection con U new Sq&%onnection1constring4M Sq&%ommand cmd U new Sq&%ommand14M cmd.%ommand0ype U %ommand0ype.0extM cmd.%onnection U conM con.7pen14M cmd.%ommand0ext U Lse&ect 0ic.etno !rom 0ic.etboo.ing w,ere Passenger;ameUHL I SessionYL=oginnameLZ I LHLM Sq&#ataAdapter da U new Sq&#ataAdapter14M da.Se&ect%ommand U cmdM #ataSet ds U new #ataSet14M da.2i&&1ds- LempL4M i! 1ds.0ab&esYLempLZ.Rows.%ountXU' 4 T int . U ds.0ab&esYLempLZ.Rows.%ountM

=abe&(.Jisib&e U trueM =abe&(.0ext U LD7"R 05%QE0 ;":3ER 5S 9 LIds.0ab&esYLempLZ.RowsY.)1Z YL0ic.etnoLZ.0oString14M W e&se T =abe&(.Jisib&e U trueM =abe&(.0ext U L0ry again to boo. !or tic.etLM W con.%&ose14M W W C1'3*9&$38*&.1%/# using SystemM using System.#ataM using System.%on!igurationM using System.%o&&ectionsM using System.>ebM using System.>eb.SecurityM using System.>eb."5M using System.>eb."5.>eb%ontro&sM using System.>eb."5.>eb%ontro&s.>ebPartsM using System.>eb."5.Htm&%ontro&sM using System.#ata.Sq&%&ientM pub&ic partia& c&ass #e!au&t2 9 System.>eb."5.Page T String constring U %on!iguration:anager.%onnectionStringsYLconLZ.%onnectionString.0oString14M protected +oid 3utton1V%&ic.1obBect sender- E+entArgs e4 T Sq&%onnection con U new Sq&%onnection1constring4M Sq&%ommand cmd U new Sq&%ommand14M cmd.%ommand0ype U %ommand0ype.0extM cmd.%onnection U conM con.7pen14M cmd.%ommand0ext U Lse&ect ;umbero!passengers !rom 0ic.etboo.ing w,ere 0ic.etnoUHL I 0ext3ox2.0ext I LHLM Sq&#ataAdapter da U new Sq&#ataAdapter14M da.Se&ect%ommand U cmdM #ataSet ds U new #ataSet14M

da.2i&&1ds- LempL4M int a U %on+ert.0o5nt1*1ds.0ab&esYLempLZ.RowsY'ZYL;umbero!passengersLZ4M

cmd.%ommand0ext U Lde&ete !rom 0ic.etboo.ing w,ere PassengernameUHL I SessionYL=oginnameLZ I LHand 2&ig,tnameUHL I #rop#own=ist1.0ext I LH and 0ic.etnoUHL I 0ext3ox2.0ext I LHLM int i U cmd.Execute;on8uery14M da.#e&ete%ommand U cmdM i! 1i UU 14 T cmd.%ommand0ext U Lupdate sc,edu&ing set SeatsUSeatsIHLIaILH w,ere 2&ig,tnameUHL I #rop#own=ist1.0ext I LHLM int B U cmd.Execute;on8uery14M i! 1B UU 14 T =abe& .Jisib&e U trueM =abe& .0ext U Lsuccess!u&&y cance&ed LM W e&se T =abe& .Jisib&e U trueM =abe& .0ext U Ldatabase not updatedLM W W e&se T =abe& .Jisib&e U trueM =abe& .0ext U LSer+er bu6y try againLM W con.%&ose14M W W

A00'*249$(:&.1%/# using SystemM using System.#ataM using System.%on!igurationM

using System.%o&&ectionsM using System.>ebM using System.>eb.SecurityM using System.>eb."5M using System.>eb."5.>eb%ontro&sM using System.>eb."5.>eb%ontro&s.>ebPartsM using System.>eb."5.Htm&%ontro&sM using System.#ata.Sq&%&ientM pub&ic partia& c&ass #e!au&t3 9 System.>eb."5.Page T string constring U %on!iguration:anager.%onnectionStringsYLconLZ.%onnectionString.0oString14M protected +oid 3utton1V%&ic.1obBect sender- E+entArgs e4 T Sq&%onnection con U new Sq&%onnection1constring4M Sq&%ommand cmd U new Sq&%ommand14M cmd.%ommand0ype U %ommand0ype.0extM cmd.%onnection U conM con.7pen14M cmd.%ommand0ext U Linsert into Sc,edu&ing12&ig,tname-0ime-Sourcestation-#estinationstation-Seats-Price4 +a&ues1HL I 0ext3ox1.0ext I LH-HL I 0ext3ox2.0ext I LH-HL I 0ext3ox3.0ext I LH-HL I 0ext3ox .0ext I LH-HL I 0ext3ox(.0ext I LH-HL I 0ext3ox*.0ext I LH4LM Sq&#ataAdapter da U new Sq&#ataAdapter14M da.5nsert%ommand U cmdM int i U cmd.Execute;on8uery14M i! 1i UU 14 T 0ext3ox2.0ext U LLM 0ext3ox3.0ext U LLM 0ext3ox1.0ext U LLM 0ext3ox .0ext U LLM 0ext3ox(.0ext U LLM 0ext3ox*.0ext U LLM =abe&C.Jisib&e U trueM =abe&C.0ext U Lsuccess!u&&y addedLM W e&se T =abe&C.Jisib&e U trueM =abe&C.0ext U Lnot addedLM W

con.%&ose14M W W

T$+$'(%.1%/# using SystemM using System.#ataM using System.%on!igurationM using System.%o&&ectionsM using System.>ebM using System.>eb.SecurityM using System.>eb."5M using System.>eb."5.>eb%ontro&sM using System.>eb."5.>eb%ontro&s.>ebPartsM using System.>eb."5.Htm&%ontro&sM pub&ic partia& c&ass #e!au&t3 9 System.>eb."5.Page T protected +oid PageV=oad1obBect sender- E+entArgs e4 T W protected +oid 3utton1V%&ic.1obBect sender- E+entArgs e4 T <ridJiew1.Jisib&e U trueM W protected +oid 3utton1V%&ic.11obBect sender- E+entArgs e4 T W W

S3:*069$'(.1%/#

('

using SystemM using System.#ataM using System.%on!igurationM using System.%o&&ectionsM using System.>ebM using System.>eb.SecurityM using System.>eb."5M using System.>eb."5.>eb%ontro&sM using System.>eb."5.>eb%ontro&s.>ebPartsM using System.>eb."5.Htm&%ontro&sM pub&ic partia& c&ass #e!au&t2 9 System.>eb."5.Page T protected +oid PageV=oad1obBect sender- E+entArgs e4 T W protected +oid <ridJiew1VSe&ected5ndex%,anged1obBect sender- E+entArgs e4 T W protected +oid 3utton1V%&ic.1obBect sender- E+entArgs e4 T Response.Redirect1LAddnew2&ig,t.aspxL4M W W

P1%%*'(*-9$%&.1%/#

(1

using SystemM using System.#ataM using System.%on!igurationM using System.%o&&ectionsM using System.>ebM using System.>eb.SecurityM using System.>eb."5M using System.>eb."5.>eb%ontro&sM using System.>eb."5.>eb%ontro&s.>ebPartsM using System.>eb."5.Htm&%ontro&sM pub&ic partia& c&ass #e!au&t3 9 System.>eb."5.Page T protected +oid PageV=oad1obBect sender- E+entArgs e4 T W protected +oid <ridJiew1VSe&ected5ndex%,anged1obBect sender- E+entArgs e4 T W W 7**0;138.1%/# using SystemM using System.#ataM using System.%on!igurationM using System.%o&&ectionsM using System.>ebM using System.>eb.SecurityM using System.>eb."5M using System.>eb."5.>eb%ontro&sM using System.>eb."5.>eb%ontro&s.>ebPartsM using System.>eb."5.Htm&%ontro&sM using System.#ata.Sq&%&ientM pub&ic partia& c&ass #e!au&t3 9 System.>eb."5.Page T protected +oid PageV=oad1obBect sender- E+entArgs e4 T W String constring U %on!iguration:anager.%onnectionStringsYLconLZ.%onnectionString.0oString14M protected +oid 3utton1V%&ic.11obBect sender- E+entArgs e4 T (2

Sq&%onnection con U new Sq&%onnection1constring4M Sq&%ommand cmd U new Sq&%ommand14M cmd.%ommand0ype U %ommand0ype.0extM cmd.%onnection U conM con.7pen14M cmd.%ommand0ext U Linsert into 2eedbac.1;ame-Emai&-SubBect-:essage4 +a&ues1HL I 0ext3ox1.0ext I LH-HL I 0ext3ox2.0ext I LH-HL I 0ext3ox3.0ext I LH-HL I 0ext3ox .0ext I LH4LM Sq&#ataAdapter da U new Sq&#ataAdapter14M da.5nsert%ommand U cmdM int i U cmd.Execute;on8uery14M i! 1i UU 14 T 0ext3ox1.0ext U LLM 0ext3ox2.0ext U LLM 0ext3ox3.0ext U LLM 0ext3ox .0ext U LLM =abe&(.Jisib&e U trueM =abe&(.0ext U L0,an.you 2or your +a&uab&e !eedbac.LM W e&se T =abe&(.Jisib&e U trueM =abe&(.0ext U LSome prob&em arri+ed-p&6 try a!ter some timeLM W con.%&ose14M W W

(3

0ES05;<

*. 0ES05;<

SYSTEM TESTING 0esting is a set o! acti+ities t,at can be p&anned in ad+ance and conducted systematica&&y. 0,e proposed system is tested in para&&e& wit, t,e so!tware t,at consists o! its own p,ases o! ana&ysis- imp&ementation- testing and maintenance. 2o&&owing are t,e tests conducted on t,e system. UNIT TESTING, #uring t,e imp&ementation o! t,e system eac, modu&e o! t,e system was tested separate&y to unco+er errors wit, in its boundaries. "ser inter!ace was used as a guide in t,e process. MODULE TESTING A modu&e is composed o! +arious programs re&ated to t,at modu&e. :odu&e testing is done to c,ec. t,e modu&e !unctiona&ity and interaction between units wit,in a modu&e. 5t c,ec.s t,e !unctiona&ity o! eac, program wit, re&ation to ot,er programs wit,in t,e same modu&e. 5t t,en tests t,e o+era&& !unctiona&ity o! eac, modu&e. INTEGRATION TESTING 5ntegration testing is a systematic tec,nique !or constructing t,e program structure w,i&e conducting tests to unco+er errors associated wit, inter!acing. 0,e obBecti+e is to ta.e unit)tested modu&e and bui&d a program structures t,at ,as been dictated by design.

ACCEPTANCE TESTING

((

0,e so!tware ,as been tested wit, t,e rea&istic data gi+en by t,e c&ient and produced !ruit!u& resu&ts. 0,e c&ient satis!ying a&& t,e requirements speci!ied by t,em ,as a&so de+e&oped t,e so!tware wit,in t,e time &imitation speci!ied. A demonstration ,as been gi+en to t,e c&ient and t,e end)user gi+ing a&& t,e operationa& !eatures. IMPLEMENTATION P!ASE 0,e imp&ementation is t,e !ina& and important p,ase. 5t in+o&+es user trainingsystem testing and success!u& running o! t,e de+e&oped system. 0,e users test t,e de+e&oped system w,en c,anges are made according to t,e needs. 0,e testing p,ase in+o&+es t,e testing o! t,e de+e&oped system using +arious .inds o! data. An e&aborate testing o! data is prepared and system is tested using t,e tests data. 5mp&ementation is t,e stage w,ere t,eoretica& design turned into a wor.ing system. 5mp&ementation is p&aned care!u&&y to propose system to a+oid unanticipated prob&ems. :any preparations in+o&+ed be!ore and during t,e imp&ementation o! proposed system. 0,e system needed to be p&ugged in to t,e organi6ation/s networ. t,en it cou&d be accessed !rom anyw,ere- a!ter a user &ogins into t,e porta&. 0,e tas.s t,at ,ad to be done to imp&ement t,e system were to create t,e database tab&es in t,e organi6ation database domain. 0,en t,e administrator was granted ,is ro&e so t,at t,e system cou&d be accessed. 0,e next p,ase in t,e imp&ementation was to educate t,e system. A demonstration o! a&& t,e !unctions t,at can be carried out by t,e system was gi+en to examination department person- w,o wi&& ma.e extensi+e use o! t,e system.

TEST CASES,

(*

S.;o
1.

0est case name 0est procedure


Registration !orm

Pre condition

Expected 7utput resu&t


:essage registered success!u& &y-=oginn ame a&ready existspassword not matc,ed #isp&ay &ogin success!u& &y-in+a&id username or password !&ig,t detai&s "pdated Success

;ameH7:E =oginname-Pass word-%on!irm password- Sex=ocation- P,no

2.

=ogin !orm

Enter =oginnamePassword- 0ype

H7:E

Success

3.

Sc,edu&ing !orm

Passenger &ist !orm

(. *.

2eedbac. +iew !orm 0imings !orm

Jiew 2&ig,tname0ime-Sourcestst ion-#estinations tstion-SeatsPrice. Jiew Passengername2&ig,tname-Sou rcestation-#esti nationstation-; umbero!passeng ers-0ic.etno. Jiew5#-;ameEmai&-SubBect:essage. Sourcestation-# estinationstation ;umbero!passe ngers2&ig,tnameSourceststion#estinationstati on. 2&ig,tname0ic.etno. Passengername2&ig,tname-Sou rcestation-#esti nation-0ic.no;oo!passengers (C ;ame- Emai&SubBect-

Admin ,ome page

Success

Admin ,ome page

Passenger detai&s "pdated

Success

Admin ,ome page "ser ,ome page "ser ,ome page

2eedbac. #isp&ayed

Success

C.

0ic.etboo.ing !orm

2&ig,t Success nametime disp&ayed Success!u& Success &y boo.ed0ic.etid wi&& be disp&ayed. Success!u& Success &y cance&ed-s er+er bu6y =ist o! Success tic.ets o! t,at user 0,an.you !or your Success

$.

%ance& tic.et !orm 3oo.ed 0ic.ets !orm

"ser ,omepage "ser ,ome page "ser ,ome

?.

1'.

2eedbac. !orm

TEST CASES SCREENS

($

(?

D*%3-$/&$.', 0,e abo+e is error message appears w,en user tries to gi+e in+a&id username or password.

*'

7"0P"0 S%REE;S

*1

7. OUTPUT SCREENS

LOGIN 7ORM

D*%3-$/&$.', 0,is is &ogin !orm !or user and admin.

*2

REGISTRATION 7ORM

D*%3-$/&$.', 0,is is registration !orm !or registering wit, site- registered users wi&& be pro+ided wit, unique username and password.

*3

7LIG!T SC!EDULES

D*%3-$/&$.', "pdating- de&eting o! !&ig,t can be done t,roug, t,is !orm by admin.

PASSENGERS LIST

D*%3-$/&$.', 0,is is &ist o! passengers tra+e&&ing t,roug, di!!erent !&ig,ts can be managed by admin t,roug, t,is !orm.

*(

7EED ACM VIEA

D*%3-$/&$.', 0,is !orm s,ows !eedbac. !rom passengers to admin.

**

TIMINGS O7 7LIG!TS

D*%3-$/&$.', 0,is !orm gi+es timings o! !&ig,ts based on source and destination stations pic.ed by user. Price and seats a+ai&abi&ity can a&so be +iewed.

*C

TICMET OOMING

D*%3-$/&$.', 0,is !orm is used to boo. t,e tic.et and it generates t,e tic.et id !or user.

*$

TICMET CANCELLATION

D*%3-$/&$.', 0,is is a !orm t,roug, w,ic, passenger can cance& ,is tic.et.

*?

LIST O7 TICMETS OOMED Y USER

D*%3-$/&$.', 0,is !orm disp&ays &ist o! tic.ets boo.ed by passenger.

C'

7EED ACM 7ORM

D*%3-$/&$.', 0,is !orm is used to post t,e !eedbac. !rom user to admin.

C1

CONCLUSION

C2

8.CONCLUSION
<etting accurate in!ormation about w,at +isas or permits you need is an important part o! preparing !or a trip or stay abroad. 0o ,e&p you wit, t,is tas. we ,a+e pro+ided in!ormation about embassies and consu&ates abroad- and we ,a+e a&so inc&uded companies t,at pro+ide +isa and passport ser+ices. >e o!!er documentation processing- app&ication [ !i&ing ser+ices !or t,ose interested in app&ying !or a +isa.A strong researc, team ensures t,at cases are e+a&uated and processed as per t,e &atest updated ru&es and regu&ations.

C3

3535=7<RAPHD

1'. 3535=7<RAPHD
R*4*-*'3*%,
S720>ARE E;<5;EER5;< S8= 27R PR72ESS57;A=S ASP.;E0 wit, %K :S#; 2''2 ) B B

3y Roger/s.Pressman 3yFain 3y >rox Pub&ications

B 3y :icroso!t

A*;%$&*%, 1. www.support.microso!t.com

2. www.asp.net 3. www.w3sc,oo&s.com . www.!reetutes.com

C(

You might also like