We are glad to have this opportunity to convey our gratitude to the GLOBAL INSTITUTE OF TECHNOLOGY, Jaipur that is helping us to present our project in 7th Semester of B. Tech. We wish to place on record of deep sense of gratitude to head of the GIT for her immense help in presenting our project. Our sincere thanks to the H.O.D. Mr. A.K. SHARMA for his guidance during the 7th Semester of B.Tech. Our sincere Regards and Heartiest thanks to our project guide Mr. A.B. SINGH, for his indispensable contribution, inexhaustible patience to deal with our endless queries and deduction throughout the project without which it would not possible for us to complete in the stipulate time. We are greatly indebted to our Parents and all near and dear ones who are the greatest inspiration of our life. They took a lot of interest in our work and provided us with constant Love, Support and Encouragement.



We are now living in the Computer age. Now the computer is controlling all the important works in our routine life. Man has invented many electronic devices but out of these computers has made the greatest impact on society. Computers are so versatile because they are indispensable to present day engineers, scientists, businessman and students. They have strengthened man’s capability in numerical, computations information processing etc. and there by increasing the effectiveness of the organization. A hostel is a budget-oriented, shared-room ("dormitory") accommodation that accepts individual travelers (typically backpackers) or groups for short-term stays, and that provides common areas and communal facilities. Hostel management by manual way is tedious process, since it involves work load and time consumption. In this system, we can easily manage the hostel details, room details, student records, mess expenditure, mess bill calculation, easy way of room allocation and hostel attendance. The main feature of this project is easy to allocate for the student and also easy to calculate mess bill.



This is to certify that the project titled

“HOSTEL MANAGEMENT SYSTEM” is a bonafied work carried out by following Information Technology students: 1. RAHUL SAXENA 2 MEENA SHARMA 3. RAHUL SETH na

Under our guidance towards the partial fulfillment of the Requirements for the degree of the Bachelor of Technology by RTU, kota during the academic year of 2010-2011

Mr. Dilip Gupta (Guide)

1. 2.

Synopsis SRS

3. 4. 5. 6. 7.

Technology overview Project description Snapshots of webpages Snapshots of database table Source code of project Scope of project Contribution

8. 9.

10. Conclusion



For the past few years the number of educational institutions are increasing rapidly. thus overcome the drawbacks of the existing system. 5 .SYNOPSIS ABSTRACT: As the name specifies “HOSTEL MANAGEMENT SYSTEM” is a software developed for managing various activities in the hostel. We can improve the efficiency of the system. And hence there is a lot of strain on the person who are running the hostel and software’s are not usually used in this context. • • • • • • • • • Less human error Strength and strainof manual labour can be reduced High security Data redundancy can be avoided to some extent Data consistency Easy to handle Easy data updating Easy record keeping Backup data can be easily generated. This particular project deals with the problems on managing a hostel and avoids the problem which occur when carried manually. Thereby the number of hostels are also increasing for the accommodations of the students studying in the institution. Identification of the drawbacksof the existing system leads to the designing of computerized system that will be compatible to the existing system with the system which is more user friendly and more GUI oriented.

REQUIREMENT SPECIFICATION Software Requirement :- Operating System Web Browser Language (Front End) Database (Back End) Other Softwares : : : Windows 2000/XP/2003/Vista/7 Internet Explorer 6.NET SQL Server 2005 Visual Studio and . Mozilla Firefox or above : : ASP.0.Net Framework Hardware Required:- Processor Hard Disk RAM : : : Pentium Processor or above 5 GB 512 MB Local Area Network Communication Media 6 .

which consist of one boy’s hostel and two girl’s hostel. Thus there are a lot of repetitions which can be easily avoided. And hence there is a lot of strain on the person who are running the hostels and software’s are not usually used in this context. This particular project deals with the problems on managing a hostel and avoids the problem which occur when carried manually. Identification of the drawbacksof the existing system leads to the designing of computerized system that will be compatible to the existing system with the system which is more user friendly and more GUI oriented. The Registration form verification to the different data processing are done manually. User panel: User login: Home: • • • This consist of the different pop-up menus showing the details of the different hostels. It allows the different users to access the registration forms. thus overcome the drawbacks of the existing system. All these hostels are managed manually by the hostel office. We can improve the efficiency of the system. 7 . He can view the student administration division of the different hostels.SRS Introduction: Problem definition: We have got three hostels in our college.

Vacate the students for the hostel. Control the status of the fee payment. Edit the details of the students and modify the student records. So it is required for the administrator to remove their records from the database tables. This selection includes the option for the room vacation and the deletion of the particular record from the database. Admin panel: Administrator login: Home: the administrator can: • • • • Allot different student to the different hostel and room. and a copy of the filled page can be taken in the printed form. This is later submitted to the Hostel authorities which can be verified by them before allotting them to respective hostels or rooms. SYSTEM DESIGN 8 . He checks the attested application forms of the students obtained from the internet and verify it with the student database.Registration form: This section provides an online form to the students which can be filled by them. Vacating the rooms: As the student’s courses is over they will vacate their rooms. Allotment of the hostel: Their will be pre-defined crieterias for the admission to the hostels. If the student are found eligible then they are allotted to the hostel.

Erroneous entries can be controlled by input design.He can vacate the students for the hostels.Menus 2.Input Design: The system design is divided in to two portions. edit and delete the student records. The Administrator can allot different students to the different hostels.He can edit the details of the students. logical and free from errors as possible.He can change their rooms. There are two major approaches for entering data in to the computer. A process of converting user originated inputs to a computer-based format. It consists of developing specifications and proceduresfor entering data into a system and must be in simple format. The Administrator section and the User (student’s) section. In input data design.He can control the status of the fee payement. The goal of input data design is to make data entry as easy. 2.Dialog boxes MENUS 9 . Administrator: 1. 4. 3. They are: 1. Input design is an importantpart of development process since inaccurate input data are the most common cause of errors in data processing. we design the we design the source document that capture the data and then select the media used to enter them into the computer.

Instead of remembering what to enter.A menu is a selection list that simplifies computer data access or entry. which appear in response to certain conditions that occur when a program is run. It has a source and a destination. One reader can easily get the idea about the project through Data Flow Diagram. PROCESS DESIGN Process design plays an important role in project development. A menu limits a user choice of response but reduce the chances for error in data entry. The data flow is represented using arrows. The DFD is drawn using various symbols. It allows the display of bitmaps and pictures. the user chooses from a list of options. text boxes. Data Flow Diagram is the logical representation of the data flow of the project. The process is represented using circles and source and destination are represented using squares. System Flow Chart is a graphical representation of the system showing the overall flow controlling processing at the job level. specifies what activities must be done to convert from a physical to logical model. process design is necessary. Using these controls we can make a ‘dialog’ with the program. It can have various controls like buttons. Data flow diagram: 10 . list boxes and combo boxes. Data Flow Diagram and System Flow chart are the tools used for process design. DIALOG BOX Dialog boxes are windows and these windows are mainly popup. In order to understand the working procedure.

Context level DFD: Student module: 11 .

Registration process: Admin module: 12 .

Allotment process: Vacating process: 13 .

debugging is done. to locate errors. independently of one another. In the case of erroneous results. This enables. This testing includes entering data and ascertaining if the value matches to the type and size supported by java. The ultimate aim is quality assurance. Unit Testing The software units in a system are modules and routines that are assembled and integrated to perform a specific function. Unit testing focuses first on modules. which is aimed at ensuring that the system works accurately and efficiently before live operation commences. The various controls are tested to ensure that each performs its action as required. 14 . Testing is the process of executing the program with the intent of finding errors and missing operations and also a complete verification to determine whether the objectives are met and the user requirements are satisfied.Tests are carried out and the results are compared with the expected document. to detect errors in coding and logic that are contained within each module.SYSTEM TESTING System testing is the stage of implementation. Using detailed testing strategies a test plan is carried out on each module.

All the modules are combined and tested as a whole. one module can have an adverse effect on another. Here the Server module and Client module options are integrated and tested.This testing provides the assurance that the application is well integrated functional unit with smooth transition of data. User Acceptance Testing User acceptance of a system is the key factor for the success of any system. may not produce the desired major functions. 15 . The system under consideration is tested for user acceptance by constantly keeping in touch with the system users at time of developing and making changes whenever required. The objective is to take unit tested modules and build a program structure. Integration testing is a systematic testing to discover errors associated within the interface.Integration Testing Data can be lost across any interface. sub functions when combined.

NET (the technology for creating database applications) and Windows Forms (the technology for creating desktop user interfaces). The Common Language Runtime (CLR): This is the engine that executes all . memory management.NET programs and provides automatic services for these applications. such as security checking.TECHNOLOGY OVERVIEW .NET FRAMEWORK The . JScript . C#. and optimization. These features are sometimes organized into technology sets. 16 . such as ADO. J# (a Java clone).NET Framework is really a cluster of several technologies.NET (a server-side version of JavaScript). The .NET Framework class library: The class library collects thousands of pieces of prebuilt functionality that we can “snap in” to our applications. and C++.NET languages: These include Visual Basic. These include the following: The .

NET.NET languages.NET languages and many fundamental pieces of the classes.NET languages. Side-by-side execution: The CLR also has the ability to load more than one version of a component at a time. like all .NET class library used to design web pages. the runtime logic is contained in a DLL file named msvbvm60. .dll to gain common functionality. Many modern languages use runtimes. ASP. In VB 6. and the correct version will be loaded and used for each application.NET class library. On the other hand.dll. many applications link to a file named mscrt40. it also provides a whole set of related services such as code verification.NET Framework. or they may have the additional responsibility of executing the code (as with Java). which includes . In other words. The Visual Studio setup DVD includes the complete . Not only does the CLR execute code. compile to IL.ASP. Visual Studio: This optional development tool contains a rich set of productivity and debugging features. the CLR makes no distinction between different languages. like secure authentication and data storage.NET also refers to the whole topic of . and object management The implications of the CLR are wide-ranging: Deep language integration: VB and C#. These runtimes may provide libraries used by the language. In C++. 17 .NET also includes a set of web-specific services. For example. and supports almost any feature from the . optimization. The Common Language Runtime The CLR is the engine that supports all the .NET: This is the engine that hosts the web applications we create with . the term ASP. so we won’t need to download it separately. but the CLR is Microsoft’s most ambitious runtime to date.NET web applications. we can update a component many times. ASP. Runtimes are nothing new. In other words. Sometimes the division between these components isn’t clear.NET is sometimes used in a narrow sense to refer to the portion of the .

Questionable cross-platform support: No one is entirely sure whether . Base Class Library NET Framework provides a rich set of class libraries. other programmers may have an easier time determining how wer code works. For example. meaning that if we distribute a compiled application or component.NET language can use the .NET class library is more ambitious and comprehensive than just about any other programming framework. which means that if something is never 18 . the CLR prevents many memory mistakes that are possible with lower-level languages such as C++. However. JIT allows “parts” of our application to execute when they are needed.NET languages compile down to. the . Just-In-Time Compilation (JIT) The MSIL is the language that all of the . This helps encourage consistency among different . Code transparency: IL is much easier to disassemble. After they are in this intermediate language. a process called Just-In-Time (JIT) compilation occurs when resources are used from our application at runtime. These include base classes.NET class library’s features by interacting with the right objects. If we’ve had any exposure to Java. The . like networking and input-output classes. .NET will ever be adopted for use on other operating systems and platforms.Fewer errors: Whole categories of errors are impossible with the CLR. we may already be familiar with the idea of a class library. Any .NET class library is a giant repository of classes that provide prefabricated functionality for everything from reading an XML file to sending an e-mail message. a data class library for data access and classes for use by programming tools.NET languages and removes the need to install numerous components on our computer or web server.

ASP. • OOPs Support 19 . Features of . without going through the compilation process again. the CLR can cache code that is used more than once and reuse it for subsequent calls. This means that as a developer we need not go into low level details of many operations such as file IO. The JIT process enables a secure environment by making certain assumptions: • Type references are compatible with the type being referenced.NET a wonderful platform for developing modern applications. • Easy development of web applications ASP. It contains hundreds of classes that provide variety of functionality ready to use in our applications. network communication and so on. By using the JIT.needed. it will never compile down to the native code.NET provides an event driven programming model (similar to Visual Basic 6 that simplify development of webpages (now called as web forms) with complex user interface. ASP. • Rich Functionality out of the box .NET server controls provide advanced user interface elements (like calendar and grids) that save lot of coding from programmer’s side.NET platform for developing dynamic and data driven web applications. let us see what makes .NET.NET is a technology available on . • Operations are invoked on an object only if they are within the execution parameters for that object.NET framework provides a rich set of functionality out of the box.NET Now that we know some basics of . • Identities within the application are accurate.

Memory leaks were major reason in failure of applications. Currently four languages are available right out of the box namely – Visual Basic. .NET.NET and Managed C++ (a dialect of Visual C++). The beauty of multi language support lies in the fact that even though the syntax of each language is different. There are many vendors that are working on developing language compilers for other languages (20+ language compilers are already available). . we need not throw them but just mould them to suit . . 20 .NET environment.NET Compact Framework and Mobile Internet Toolkit are step ahead in this direction. . This means that if we have skills in C++.NET provides a fully object oriented environment. mobiles and handheld PCs.NET now support many of the OOPS features that were lacking traditionally. Jscript. • Multi-Device Support Modern lift style is increasingly embracing mobile and wireless devices such as PDAs. It supports multiple languages. For example.NET is – “Object is mother of all. C++. The garbage collector takes care of freeing unused objects at appropriate intervals. the basic capabilities of each language remain at par with one another. The philosophy of . • Multi-Language Support Generally enterprises have varying skill sets.NET takes this worry away from developer by handling memory on its own. . This naturally increases cost of training and learning curve.” Languages like Visual Basic.The advantages of Object Oriented programming are well known. • Automatic memory management While developing applications developers had to develop an eye on system resources like memory. a company might have people with skills in Visual Basic. Even primitive types like integer and characters can be treated as objects – something not available even in OOPS languages like C++. . C# (pronounced as C-sharp). and Java etc. .NET provides something attractive in this area. It is an experience that whenever a new language or environment is invented existing skills are outdated.NET provides promising platform for programming such devices.

NET tries to harness power of XML in every possible way. The good news is – we can still use COM components and ActiveX controls under .• Compatibility with COM and COM+ Before the introduction of .NET provides XML web services that are based on standards like HTTP. XML and SOAP. Our COM+ knowledge still remains as a valuable asset. • Strong XML support Now days it is hard to find a programmer who is unaware of XML. COM was the de-facto standard for componentized software development. .NET still relies on COM+ for features like transaction management and object pooling.NET ends this DLL hell by allowing applications to use their own copy of dependent DLLs. .NET.NET components do not require any kind of registration in system registry. This allows we to use our existing investment in . Also.NET applications. . . Companies have invested lot of money and efforts in developing COM components and controls. XML has gained such a strong industry support that almost all the vendors have released some kind of upgrades or patches to their existing software to make it “XML compatible”. Currently. • No more DLL Hell If we have worked with COM components. In addition to providing support for manipulating and transforming XML documents.NET. In fact it provides enhanced declarative support for configuring COM+ application right from our source code. The main reason behind this was the philosophy of COM – “one version of component across machine”. . • Ease of deployment and configuration 21 . we probably are aware of “DLL hell”. COM components require registration in the system registry. . Also. DLL conflicts are a common fact in COM world.NET is the only platform that has built with XML right into the core framework.

NET – shines over traditional languages. much of the deployment is simplified. most of the configuration is done via configuration files. we can do the heavy-duty coding with Visual Studio.Deploying windows applications especially that used COM components were always been a tedious task. it’s extensible and can even work in tandem with other straight HTML editors such as Microsoft Expression Web or Adobe Dreamweaver. code access security and role based authentication make overall application more robust and secure. Since . simply FTPing new configuration file makes necessary changes. This makes XCOPY deployment viable. there is no need to sit in front of actual machine and configure the application Manually. Other choices were available. Second. Microsoft has taken great efforts to make .NET does not require any registration as such. developers created web pages with simple text editors such as Notepad. but use another web design tool to make everything look pretty. INTRO TO VISUAL STUDIO In the ancient days of web programming. Since. but each suffered from its own quirks and limitations. Visual Studio changes all that. This is more important for web applications.NET platform safe and secure for enterprise applications. First. Configuration is another area where .NET – especially ASP. Visual Studio includes 22 . The configuration is done via special files having special XML vocabulary. In other words. Features such as type safety. Security Windows platform was always criticized for poor security mechanisms. The standard was a gloves-off approach of raw HTML with blocks of code inserted wherever necessary.

and Delphi. but there is no doubt that it was influenced by Microsoft’s other popular language. The main features of the CLR include: 23 . For example.NET programs all rely upon. however. Visual Basic. it gives we the ability to drag and drop web pages into existence and troubleshoot misbehaving code. Visual Studio even includes a built-in test web server. All applications written in C# require the CLR (in other words. One of the biggest advantages of C# is that its syntax (in other words. C# is based on the C++ Information on the . the Microsoft . Visual Basic. It is. simpler than C++ and Java.NET software development platform.NET framework) to run. which means that programmers from a variety of backgrounds can start programming with minimal learning. Being object-oriented.indispensable time-saving features. Java.NET Framework. C# and CLR C# was designed to take advantage of the Common Language Runtime that . just as Visual Basic applications needed the appropriate runtime library to run. along with download information. C# is composed of a ollection of individual programming units called classes that can interact with each other. INTRODUCTION TO C# C# is an object-oriented programming language developed by Microsoft to become a key part of their . notably C++. the structure of the code) is similar to that of a number of other popular programming languages.NET website without worrying about web server settings. which allows we to create and test a complete can be found at the Microsoft website: http://msdn.

Managed code outputted by Visual Studio applications and is run by the . ❑ Memory management.NET Framework includes an integrated security model that grants permission to resources based on evidence found in assemblies.NET. Diversions Into .NET All the . The .NET Infrastructure such as the .NET class libraries also support functions such as file I/O. ❑ Easy/automatic application installation.NET Building Block Services such as Passport ❑ . XML (Extensible Markup Language) and SOAP (Simple Object Access Protocol). ❑ Excellent levels of security during execution.NET Framework automatically frees up memory when objects are no longer required.NET programming languages have the . database operations.❑ Managed code. The CLR offers programmers an easy yet effective way to manage memory.NET platform has four cornerstone components: ❑ .NET Compact Framework which runs on devices such as mobile phones and PDAs ❑ .NET Framework Common Language Runtime and .NET Framework class libraries integrated into them. This can be carried out using Global Assembly Cache.NET user experience through XML integration (forms and so on) ❑ . The .NET Framework. This means better performance with less code.NET Just a quick diversion into . The Microsoft . The .NET Framework Class Libraries and development applications such as Microsoft Visual Studio. 24 . ❑ Automatic garbage collection.

a VB Integer is the same as a C# int). Variables can store numbers.The important thing to remember about .NET development is that this means leveraging the .NET programming or . Variables and Data Types As with all programming languages.NET class library. Different languages may provide slightly different names (for example. We can also declare a variable by using the type name from the . followed by the name we want to use. we give it a name. and times. Microsoft needed to iron out many of the inconsistencies that existed between VBScript. To declare a local variable. The solution was to create a set of basic data types. we keep track of data in C# using variables.NET language. Because languages share the same core data types. To create this common data type system. but the CLR makes no distinction—in fact. It’s also a requirement when the data type 25 . we can easily use objects written in one . dates. int errorCode. we start the line with the data type. A final semicolon ends the statement: // Declare an integer variable named errorCode. When we declare a variable.NET Framework. and other languages. Table 3-1 lists the most important core data types.NET language uses the same variable data types. VB 6. No data type conversions are required. string myName. Every . This design allows for deep language integration. they are just two different names for the same base data type.NET class library. C++. // Declare a string variable named myName. and they can even point to fullfledged objects. which includes the runtime environment and the class libraries. This approach produces identical variables. which are provided in the . and we specify the type of data it will store.NET language in an application written in another . text.

tree views. and bread crumb trails. These controls can be divided into eight groups: Standard Controls—The standard controls enable you to render standard form elements such as buttons. you can use these controls to submit new records to a database table or display a list of database records.doesn’t have an alias built into the language. This code snippet uses fully qualified type names that indicate that the Int32 type and the String type are found in the System namespace (along with all the most fundamental types). and labels. Navigation Controls—The navigation controls enable you to display standard navigation elements such as menus. input fields. System.Int32 errorCode. Validation Controls—The validation controls enable you to validate form data before you submit the data to the server. For example. For example. file upload buttons. and multi-step wizards.NET Framework contains over 70 controls. Data Controls—The data controls enable you to work with data such as database data. you can use a RequiredFieldValidator control to check whether a user entered a value for a required input field. we can rewrite the earlier example that used C# data type names with this code snippet that uses the class library names: System. ASP. 26 .String myName. Rich Controls—The rich controls enable you to render things such as calendars. rotating banner advertisements. For example.NET Controls The ASP.

Command. The second group of classes exists in several different flavors. It’s important to understand that you can use any data provider in almost the same way.NET data provider. a data provider object will provide custom functionality that’s available only with certain data sources. The difference is that the DataSet is customized for relational data. once you extract the data. such as SQL Server’s ability to perform XML queries. and DataReader).Login Controls—The login controls enable you to display login. which means it understands concepts such as rows. The data container classes are completely generic. thus guaranteeing the best possible performance. you’ll need to use the Oracle provider classes instead. implement the same interfaces. DataRow. the SQL Server data provider is designed to work with SQL Server 7 or later. Internally. HTML Controls—The HTML controls enable you to convert any HTML tag into a server-side control. Think of the DataSet as playing the same role as a collection or an array—it’s a package for data.NET relies on the functionality in a small set of core classes. DataTable. You can divide these classes into two groups: those that are used to contain and manage data (such as DataSet. 27 . the basic members used for retrieving and modifying data are identical. Each set of data interaction classes is called an ADO. it uses SQL Server’s TDS (tabular data stream) protocol for communicating. If you’re using Oracle. The provider classes derive from the same base classes. Data providers are customized so that each one uses the best-performing way of interacting with its data source.NET ADO. it’s stored using the same data container: the specialized DataSet class. No matter what data source you use. and expose the same set of methods and properties. For example. columns. In some cases. and table relationships natively. and DataRelation) and those that are used to connect to a specific data source (such as Connection. ADO. However. change password. with almost the same code. and registration forms.

MySQL. Access. Introduction to SQL Server 28 . When choosing a provider. you can use the OLE DB provider. you can fall back on the ODBC provider. which follow the same conventions and can be used in the same way as those that are included with the . Oracle. The OLE DB technology has been around for many years as part of ADO. as long as you have an OLE DB driver for your data source.0 or later) • OLE DB provider: Provides access to any data source that has an OLE DB driver • Oracle provider: Provides optimized access to an Oracle database (version 8i or later) • ODBC provider: Provides access to any data source that has an ODBC (Open Database Connectivity) driver In addition. In the rare situation that you can’t find a full provider or an OLE DB driver. third-party developers and database vendors have released their own ADO.NET includes the following four providers: • SQL Server provider: Provides optimized access to a SQL Server database (version 7. which works in conjunction with an ODBC driver. and many more). you should first try to find one that’s customized for your data source. If you can’t find a suitable provider. so most data sources provide an OLE DB driver (including SQL Server.NET providers..NET Framework.

which is later reconciled with the actual data source. These data access Web controls present the data in a consistent manner irrespective of the actual source. To do so. Establish a connection with the SQL Server. Other computers. you need to perform the following steps in the specified sequence: 1. You can access data stored on a SQL server through Web Forms. can access the data stored on the server through a network. while creating a Web application. However. Write the actual command to access or manipulate data.Server-side data access is critical to all real-world applications. This result set is called the data set and is disconnected from the actual source. 3. before you can access or manipulate data from a SQL server. Therefore. called clients. you can create Web applications that have data access controls. Microsoft SQL Server is a Relational Database Management System (RDBMS) that issued to store and organize related data— the collection of related data is called a database. such as Microsoft SQL Server. This section introduces you to the SQL server data access through Web Forms. you do not need to worry about the format of the data. The client/server architecture prevents data in consistency. The application accesses and updates data in the data set. Create a result set of the data from the data source with which the application can work. 29 . Microsoft SQL Server is based on the client/server architecture. 2. in which data is stored on a centralized computer called a server.

System. into your Web Forms page.Data. Data Row: Represents a row of data in a data table.NET architecture. Data and System. ADO.To achieve this functionality.NET architecture allows for efficient data management and manipulation from multiple data sources. Data Table: Represents a table of data in a data set.SqlClient" %> The two namespaces are described as follows: System. you need to create an object of the Sql Data Adapter class to populate the data set and update the data source.NET provides tools to request and update data in a data set. Data: A collection of classes that are based on the ADO.SqlClient. The ADO. Data" %> <%@ Import Namespace="System. After creating a Sql Connection object. you first need to import two namespaces. The syntax is given as follows: <%@ Import Namespace="System. Data Column: Represents a column of data in a data table. Sql Connection: Represents a connection with a SQL server data source. The first step to access data from a SQL server database is to create an object of this class. 30 .Data. System.SqlClient: A collection of classes that are used to access SQL server data sources.Data. and reconcile data in the actual data source. Sql Data Adapter: Represents a set of data commands and a database connection that are used to access or manipulate data. Some of the classes included in this namespace are described as follows: Data Set: Represents the data set cached in memory with which applications work.

used to transfer data between a database server and a client.mdf. SQL Server also makes server statistics available as virtual tables and views (called Dynamic Management Views or DMVs). binary (for unstructured blobs of data). It also allows user-defined composite types (UDTs) to be defined and used. indexes and constraints. including primary types such as Integer. Varchar (variable length character strings). along with a transaction log. called Tabular Data Stream (TDS). in addition to tables. Log files are identified with the . Text (for textual data) among others. are used to store optional metadata. and can span multiple OS-level files with a maximum file size of 220 TB. Float. A SQL Server database can contain a maximum of 231 objects. Data storage: The main unit of data storage is a database. All operations that can be invoked on SQL Server are communicated to it via a Microsoft-defined format.ldf extension. A database can also contain other objects including views. Decimal.ndf extension. which is a collection of tables with typed columns. Architecture: Protocol layer Protocol layer implements the external interface to SQL Server. identified with an . stored procedures. SQL Server supports different data types. TDS is an application layer protocol. Char (including character strings). 31 . The data in the database are stored in primary data files with an extension .Sql Command: Represents the SQL command to perform data operations in a SQL server data source. Secondary data files.

Any 8 KB page can be buffered in-memory. Either reading from or writing to any page copies it to the buffer cache. it needs to control concurrent access to shared data. As such. SQL Server controls concurrent access by using locks. to ensure data integrity . The buffer cache is managed by the Buffer Manager. SQL Server provides two modes of concurrency control: pessimistic concurrency and optimistic concurrency. but never leaves the database in an intermediate state. simultaneously all the operations performed will be written to a log.Buffer management SQL Server buffers pages in RAM to minimize disc I/O. or clients attempt to read data that is in the process of being changed by another client. a sequence of actions can be grouped together. Logging and Transaction SQL Server ensures that any change to the data is ACID-compliant. and the set of all pages currently buffered is called the buffer cache. i. 32 .when multiple clients update the same data. Each log entry is identified by an increasing Log Sequence Number (LSN) which ensure that no event overwrites another. SQL Server implements transactions using a write-ahead log. along with the transaction ID which the operation was a part of. Concurrency and locking SQL Server allows multiple clients to use the same database concurrently.e. Using transactions. with the guarantee that either all actions will succeed or none will. Any changes made to any page will update the in-memory cache of the page. it uses transactions to ensure that any operation either totally completes or is undone if fails. When pessimistic concurrency control is being used.. The amount of memory available to SQL Server decides how many pages will be cached in memory.

Data retrieval:The main mode of retrieving data from an SQL Server database is querying for it.on entire tables. For other user can access the data as long as the lock is held. but not acquire an exclusive lock. The query is expressed using a variant of SQL called T-SQL. The latter would have to wait for all shared locks to be released. mini computers and main frames. Shared locks are used when some data is being read . In such case. or even on a per-row basis on tables. pages. There might be multiple ways to process the same query.Locks can be either shared or exclusive. Exclusive lock grants the user exclusive access to the data . Visual Basic is widely available. structured programming language. SQL Server chooses the plan that is supposed to yield the results in the shortest possible time. high level.multiple users can read from data locked with a shared lock. for a query that contains a join statement and a select statement. but result in different execution plans. 33 . commercial interpreter are available for most personal computer. Locks can be applied on different levels of granularity . ⇒Visual Basic includes certain low level features that are normally available only in assembly or machine language. The query declaratively specifies what is to be retrieved. which figures out the sequence of steps that will be necessary to retrieve the requested data. a dialect Microsoft SQL Server shares with Sybase SQL Server due to its legacy. Features of Visual Basic: ⇒ Visual Basic is a flexible. executing join on both the tables and then executing select on the results would give the same result as selecting from each table and then executing the join. It is processed by the query processor. The sequence of actions necessary to execute a query is called a query plan. This is called query optimization and is performed by the query processor itself.

⇒As a result design tasks that used to require many hours of detailed programming efforts can how be completed in minutes. Creating the Visual Basic portion of the application (the serene and menus that the users will interact with) Adding the Visual Basic programming language code to tie the Visual Basic elements together and to automate the program. Programs written in visual basic are easily ported from one computer to another. text boxes and scroll bars. Compiling the tested application and distribute the compiled application to the end users. The Programming Process: These standards steps are to be followed while creating Visual Basic Programs: Deciding what your application is do by crating an overall design. Visual basic includes a special helpers system called a debugger that the programmer can use to help locate bugs that appear during testing.Visual Basic is largely machined independent. Your programs interface may include the familiar controls that window users already know how to operate-such as command buttons. 34 . ⇒With just a few mouse actions. option list. The debugger is an interactive monitoring system that you turn on and off inside Visual Basic that helps you locate statements that may contain bugs. Testing the application to locate and remove any bugs. ⇒In Visual Basic you can quickly design the visual elements of any new programming project. you can add any combination of these controls to a program.

Project A project is a collection of files that make up your application. A single Application might consist of several files and the projects is the collection of those files. Each document window is called a child window. In effect. 35 . Program Maintainance is a term used for the updating of a program after the program after the program is put into interface with topic summaries in the left window an details for a selected topic in the right pane. the programmer has to maintain the program he /she has created.Programming Maintenance Apart from the bugs. this interface lets your work with several sets of data in multiple window within the program. Single Document Interface (SDI) It limits the application take on a window Explorer. This updating may be a result of the users request or a change in the way the program needs to operate. Multiple Documents Interface (MDI) It allows the application to contain multiple documents windows.

library. It is automatically generated by the server.It saves time as it allows number of people to access the website at a time and saves a lot of time.buses. login and get the information they needed with his specified requirements. The interaction of the user with the project is so easy that user can easily find the details about the hostel rooms he required and administer them using fully secured features. Reports screen contains text boxes and drop down lists. modify and delete the database available and their particular information . and can see the results of his search. Scope: This Web Application provides facility to manage rooms. Validations are provided in each field to avoid inconsistent or invalid entry in the databases.students. so that reports can be produced. Some forms consists Hyper Links. In this project the user can perform Hostel Management. Usability: The links are provided for each form. Administrator has a privilege to create. User can register. which provides further details.administrator.students.PROJECT DESCRIPTION Objective: The main objective of the project is to provide better graphical environment for user. Security: 36 .faculty. The user is facilitated to view and make entries in the forms.

As the database is made in SQL Server. Availability: System will be available around the clock and user can assess and get the services as per his requirements. Access to any application resource will depend upon user’s designation. There are two types of users namely Administrator and Students. porting the database to another database server would require some development effort. No user would be able to access any part of the application without logging on to the system. It would be portable to other operating system provided .Application will allow only valid users to access the system.NET Framework is available for the OS. 37 .NET. Portability: The application is developed in ASP. Security is based upon the individual user ID and Password.

last backup should be restored. In these modules following operations are performed: Operations: Client Side Interactive operations using options provided in the application. Example Data Entry generation and viewing of reports. For access a master forms Administrator must be login with unique Id and Password. In case of data base crash. User Characteristics: The end user of the software can be divided into two categories Administrator: Access to master forms for the purpose of data entry and generation of reports. Server Side Database backup should be taken every day.PROJECT MODULE DESCRIPTION The “Hostel Management System” project is divided into two modules. 38 .

For using this website student must be login with unique Id and Password which provide by the administrator. After registration. student can choose thefacililities he desires. After login Administrator can perform following operation: • • • • • • Approve User Reject User Upload details Delete details Update student information and hostel information Generate Invoice Student: Access to his corresponding records and other information about hostel only. 39 . A general knowledge of basic computer skills is required to use the website. Users of Website can be of any age. Rooms are divided into different sections. If student has no unique Id and Password than firstly customer registered in site by registration form. student read term & condition of Company & gives details about his requirements. After choose the Category. Each section has separate Categories & Facilities.If Administrator has not unique Id and Password than firstly Administrator registered.

After finishing all the requirements for allocation of rooms. user will be allocated a room. password. There should be a finish button that should be seen only in the last page. the last page should have no next. there has to be a previous button that will send the user to the page of the previous page. Other information can be saved like the address. Snapshots 40 . a forward button that should send the user to the next page. The first page should have no previous. The server will save a small MS SQL database that has each user’s name.After Opening the home page. The link selection by the user will include simple mouse clicks on buttons to select product. the four options should be followed then. In the button of the page. the student can see the information clearly. Email Id.

Homepage: Top of Form /w EPDw ULLTEw /w EWAgLhs/LTB Login page: 41 .

Admin page: 42 .

Faculty information page: 43 .

tech 44 .reBottom of Form Registration page: Course B.

45 .

Course MBA: Course MCA 46 .

Database tables Hostel page:

Admission table:



Enquiry table:

Registration table:


Fee table:

Password table:


UI. using System.UI.UI.Web. using System.WebControls.UI.Web.UI.Web.WebParts. using System. using System.Web.Configuration.Security. using System.HtmlControls.Web. using System.WebControls. public partial class MasterPage : System.Web. EventArgs e) { 51 . using System.Source code Master page: using System. using System.Collections.Web.MasterPage { protected void Page_Load(object sender. using System.Data.

Security. using System.UI.Page { protected void Page_Load(object sender.Web.} protected void Menu1_MenuItemClick(object sender. using System. using System.WebControls.Web. public partial class HOME : System.Data.Web. using System.Configuration.UI.UI. MenuEventArgs e) { } } Home page: using System.Web. using System. using System.HtmlControls.Web. EventArgs e) { } } 52 .Collections. using System.WebParts.Web.UI. using System.WebControls. using System.Web.UI.

using System. protected void Page_Load(object sender.Configuration.Data. using System. using System.Login page: using System.Web.UI.Text + "' and password = '" + TextBox2.Page { SqlConnection cn. cmd=new SqlCommand( " select * from password where username ='" + TextBox1.SqlClient.WebControls. EventArgs e) { cn = new SqlConnection(ConfigurationManager.Web.UI. using System.Connection = cn.Text + "'". using System.Open().Web.AppSettings["cn"]. } protected void Button1_Click(object sender. using System.HtmlControls. using System. public partial class LOGIN : System.ExecuteReader().WebParts.Web.ToString()). using SqlDataReader dr. cn.Security. dr = cmd.UI.Web. 53 . using System.Collections.UI. EventArgs e) { //cn.UI.WebControls. //cmd.Web.Open().Web. SqlCommand cmd. using System.Data.

Write(" please enter correct username and password "). } // Response. using System.Data. str = "<script language='javascript'>".Redirect("administration.WebControls.Security.HtmlControls. str).Web. using System.Read() == true) { Session["user"] = dr["username"]. using System.Web. 54 . str += "</script>".if (dr. true). //Response.Web.aspx". using System.WebParts. Response.UI.Web.Web. using System.SqlClient.UI.aspx").Collections.UI.Web.Data.Configuration. using System.WebControls. using System. using System. str += "alert('Please Enter Correct UserName And Password')". RegisterClientScriptBlock("s1".Redirect("administration. using System. } } Registration page: using System. } else { string str. using System.UI.

EventArgs e) { //cn.Integrated Security=True".Page { SqlConnection cn = new SqlConnection(). } } 55 . cmd. //cn.DataAdapter = da.Initial Catalog=cms.ToString()).SelectCommand = cmd. "raeg"). cmd. DataSet ds = new DataSet(). da. SqlCommandBuilder build = new SqlCommandBuilder(). SqlDataAdapter da = new SqlDataAdapter().Close(). //SqlDataReader dr.Web. da. if (!IsPostBack) { studentdata().Open().AppSettings["cn"]. da. build.ConnectionString = "Data Source=. SqlCommand cmd = new SqlCommand(). protected void Page_Load(object sender.InsertCommand = build..GetInsertCommand().Fill(ds.Connection = cn. cn = new SqlConnection(ConfigurationManager.public partial class Default3 : System.UI.CommandText = "select * from registration". cn.

Fill(ds.DataSource = ds. //GridView1. //cmd. cmd.Close(). cn.Text +"%' " .Text + "%' ". cmd.Value=Convert. da. cn.VarChar.CommandText = "select * from registration where first_name like '%"+ TextBox1.Text).ToString(TextBox1. //cmd.*/ //} public void studentdata() { //cn./* public void studentdata1() { cn. 50).Parameters.DataSource=ds.StoredProcedure.StoredProcedure. GridView1.Tables["raeg"].Close(). da.// where first_name like '%" + TextBox1. "raeg").Open().Connection = cn.CommandType = CommandType.Add("@sname". // cmd. cmd. da.Connection = cn.DataBind(). //cmd.Open(). "raeg"). da.SelectCommand=cmd.Parameters["@sname"]. //GridView1.DataBind().Value=Convert.VarChar. 50). // cmd.Add("@sname".Parameters["@sname"].CommandText = "select * from registration ".Parameters.ToString(TextBox1.CommandType = CommandType.Tables["raeg"]. SqlDbType.SelectCommand = cmd. GridView1. cmd. 56 .Text).Fill(ds. SqlDbType. //cmd.

dr[3] = TextBox4.Text. string str. dr[4] = TextBox5.Tables["raeg"].SelectedItem. if (RadioButton1.Text + ". dr = ds. EventArgs e) { DataRow dr. dr[1] = TextBox2.str1." + DropDownList3. dr[5] = str.SelectedItem. } else { 57 .str4.Text + "" + DropDownList1.Text.Text.str3.Text.Text.Checked == true) { str1 = RadioButton1. str = DropDownList2. dr[2] = TextBox3.SelectedItem.NewRow().Text. dr[0] = TextBox1.Text.} protected void Button1_Click(object sender.

Text. dr[14] = TextBox11.SelectedItem. str4 = DropDownList5.Text.Rows. dr[11] = str3.Update(ds.Close(). dr[16] = TextBox13.Text.Text.Text. dr[10] = TextBox8.Text = "". //cn. cn.Text. . dr[15] = TextBox12. dr[17] = TextBox14. dr[9] = TextBox7.Text.Text. } dr[6] = str1. dr[19] = TextBox15. da.Open(). dr[8] = TextBox6.Tables["raeg"]. TextBox1.Text. str3 = DropDownList4.Add(dr). dr[7] = cat().Text.Text.str1 = RadioButton2. dr[18] = str4. dr[20] = TextBox16.Text = "".Text. 58 . TextBox2. dr[13] = TextBox10. ds.SelectedItem.Text.Text. dr[12] = TextBox9. "raeg").

Text = "".Text = "".Text = "". RadioButton5. DropDownList2.Text = "".Text = "".Text = "".SelectedItem.Checked = false. RadioButton2.Checked = false.Checked = false. TextBox6.Text = "".Text = "". TextBox10. TextBox9. RadioButton1. TextBox12.Checked = false. TextBox7.SelectedItem.TextBox3. TextBox15.Text = "".Text = "". RadioButton3. DropDownList1.Text = "". RadioButton4. TextBox5. TextBox16.Text = "". DropDownList5. TextBox13. TextBox11. TextBox14. TextBox8.Text = "".Text = "".Text = "".Text = "". RadioButton6. } 59 .SelectedItem. TextBox4. DropDownList4.Text = "".Text = "".SelectedItem.Checked = false.Checked = false.Text = "".SelectedItem. DropDownList3.

EventArgs e) { studentdata(). } protected void Button2_Click(object sender.aspx"). } 60 . } return str2. } else if (RadioButton5. } else { str2 = RadioButton6. } else if(RadioButton4.Text.Text.public string cat() { string str2.Text.Checked == true) { str2 = RadioButton3. if (RadioButton3.Checked == true ) { str2 = RadioButton4.Text. // Response.Checked == true) { str2 = RadioButton5.Redirect("studentinfo.

UI.Collections. EventArgs e) { Response. using System.aspx").Web.Web. using System. using System.UI.UI.Page { protected void Page_Load(object sender.Web. using System.HtmlControls.Web.Security.WebParts.Web. } } Administration using System.Redirect("ADMINISTRATION. } protected void LinkButton2_Click(object sender.Data.Web.ASPX").UI.WebControls.Redirect("fee. EventArgs e) { Response. using System. BulletedListEventArgs e) { 61 . using System.Configuration.WebControls. using System. using System.protected void LinkButton1_Click(object sender.Web. public partial class administration : System. using System.UI. EventArgs e) { } protected void BulletedList1_Click(object sender.

aspx").Redirect("registration.Redirect("library. EventArgs e) { Response. } protected void LinkButton5_Click(object sender. } protected void LinkButton4_Click(object sender.aspx").aspx"). } protected void LinkButton7_Click(object sender. EventArgs e) { Response. EventArgs e) { Response.aspx").} protected void LinkButton1_Click(object sender.Redirect("bus. EventArgs e) { Response.aspx"). EventArgs e) { Response. EventArgs e) { Response. } protected void LinkButton2_Click(object sender. EventArgs e) { Response.Redirect("hostel.aspx"). } protected void LinkButton6_Click(object sender. } } 62 .aspx").Redirect("home.Redirect("change_pass.Redirect("faculty. } protected void LinkButton3_Click(object sender.

Web.WebParts. using System.Admin master page: using System.MasterPage { protected void Page_Load(object sender.Collections. using System. using System.UI.Data. using System. using System.UI.Web. using System.Web. using System.Collections. EventArgs e) { } } Bus registration: using System. using System. using System.UI.Web.Configuration. using System.Web.WebControls.Configuration.Web.Web. using System. using System. public partial class adminmaster : System.Data. using System.WebControls. 63 .Web.HtmlControls.Web. using System.UI.UI.UI.WebControls.Security.UI. using System.Web.Security.Web. using System.

cmd. } protected void Button1_Click(object sender. EventArgs e) { DataRow dr.UI. build.Web. protected void Page_Load(object sender.WebParts.Tables["bus"]. SqlDataAdapter da = new SqlDataAdapter().Connection = cn. //SqlDataReader dr.CommandText = "select*from bus".Fill(ds.NewRow(). da. cn. cn = new SqlConnection(ConfigurationManager. cmd.UI.Web.WebControls.Integrated Security=True". DataSet ds = new DataSet().ToString()).ConnectionString = "Data Source=. da. SqlCommandBuilder build = new SqlCommandBuilder().HtmlControls. "bus").using System.Page { SqlConnection cn = new SqlConnection(). 64 .InsertCommand = build.UI.Open(). public partial class BUS : System. SqlCommand cmd = new SqlCommand().AppSettings["cn"]. da.Close().Web. dr = ds.DataAdapter = da. EventArgs e) { //cn. using System.Data.SqlClient.Initial Catalog=cms.GetInsertCommand().SelectCommand = cmd. using System.. cn.

TextBox5.Security.Text = "".Close().Text = "".Rows. using System.Web. using System.Text = "".Update(ds. da.Text = "". TextBox6. TextBox1. "bus").UI. } } Password change: using System. dr[2] = TextBox3.Text = "".dr[0] = TextBox1. dr[5] = TextBox6.Text = "". using System. cn.Text. using System. TextBox4. using System.Collections. dr[4] = TextBox5.Text.Text.Web. dr[3] = TextBox4.Text. using System.Text.WebControls.Tables["bus"].Web. using System.Configuration.Add(dr).Web. 65 .Open(). ds.Text. dr[1] = TextBox2.UI. TextBox2. cn. TextBox3.Data.

UI.SelectCommand = cmd. build.HtmlControls. cmd. da. DataSet ds = new DataSet(). SqlDataAdapter da = new SqlDataAdapter().UI.WebControls.Data.Open(). //cmd. cn.CommandText = "update password set password='" + TextBox3. using System.GetUpdateCommand().Open(). cmd.Initial Catalog=cms.Close().Text + "' and password='" + TextBox2. SqlCommandBuilder build = new SqlCommandBuilder(). 66 cn.Web.using System.Connection = cn.GetInsertCommand().UI.ToString()).Web. EventArgs e) { //cn.Connection = cn.Web. public partial class change_pass : System. using System.AppSettings["cn"]. da.WebParts.ConnectionString = "Data Source=. cmd. SqlCommand cmd = new SqlCommand().DataAdapter = da.Text + "'". // // // // // // // // } protected void Button1_Click(object sender. da.Text + "' where username='" + TextBox1.Fill(ds.Integrated Security=True". EventArgs e) { cn.InsertCommand = build. da.SqlClient..UpdateCommand = build.CommandText = "select*from password".Page { SqlConnection cn = new SqlConnection(). "pass"). cn = new SqlConnection(ConfigurationManager. protected void Page_Load(object sender. .

Web.WebParts.ConnectionString = "Data Source=.Security. EventArgs e) { //cn.Integrated Security=True". using System.cmd. using System.Web. } } Enquiry : using System.ToString()).UI. using System.Page { SqlConnection cn .WebControls. using System. public partial class enquiry : System.Data. DataSet ds = new DataSet(). cn.UI.AppSettings["cn"]. using System.Close().WebControls.Redirect("administration. 67 .UI.Web.. Response. using System. protected void Page_Load(object sender.SqlClient.UI.UI. SqlCommand cmd = new SqlCommand().aspx"). cn = new SqlConnection(ConfigurationManager. using System.ExecuteNonQuery().Initial Catalog=cms.Web.Web. SqlCommandBuilder build = new SqlCommandBuilder(). using System. using System.Web.Data.Collections.HtmlControls. SqlDataAdapter da = new SqlDataAdapter(). using System.Configuration.Web.

using System. cmd. 68 . dr[1] = TextBox1. TextBox2. dr = ds. "enquiry"). da. using System. da.Update(ds.Text = "".NewRow().GetInsertCommand().Text = "". ds. } protected void Button1_Click(object sender.Tables["enquiry"] cn. da.Configuration.SelectCommand = cmd.DataAdapter = da. } } Faculty: using System.Add(dr). cn. cmd. EventArgs e) { DataRow dr.Tables["enquiry"].InsertCommand = build.Open().Close(). TextBox1. dr[0] = TextBox2.Fill(ds. build.Text.CommandText = "select * from enquiry".Data. cn. "enquiry").Open(). da.Connection = cn.Text.

AppSettings["cn"]. using System.Security. SqlCommand cmd = new SqlCommand().UI.Integrated Security=True". using System.Web.UI.Close().Connection = cn. cn. cn = new SqlConnection(ConfigurationManager.Data.UI. cmd.Web. using System.Open().ToInt32(Request.SelectCommand = cmd.Web.WebParts.using System.HtmlControls. protected void Page_Load(object sender.Web.SqlClient. EventArgs e) { if (!IsPostBack) { if (Request. //cn. 69 . cn. using System.CommandText = "select * from faculty where fid=" + Convert. "faculty").WebControls.Initial Catalog=cms. using System.Fill(ds. DataSet ds = new DataSet(). da.WebControls.QueryString["fid"]).Web.ToString()). cmd.Page { SqlConnection cn = new SqlConnection(). using System.UI. da. SqlCommandBuilder build = new SqlCommandBuilder().Web. public partial class faculty : System.UI.ConnectionString = "Data Source=.QueryString["fid"] != null) { DataRow dr.Web.. SqlDataAdapter da = new SqlDataAdapter().

TextBox5.SelectCommand = cmd. da.Count > 0) { TextBox1.Row[0]["post"]. da.Tables["faculty"].Connection = cn.NewRow()..Row[0]["qualification"].DataAdapter = da.Fill(ds. build. "faculty").Tables["faculty"].Initial Catalog=cms. dr = ds.Text = ds. EventArgs e) { DataRow dr.InsertCommand = build.Row[0]["name"].Integrated Security=True".ConnectionString = "Data Source=.Row[0]["exp. } protected void Button1_Click(object sender.Row[0]["department"]. dr[3] = TextBox4. dr[0] = TextBox1.Text. TextBox3.Open().Tables["faculty"].GetInsertCommand(). dr[2] = TextBox3.Close().Rows.Tostring()."].Tables["faculty"].Tables["faculty"]. cn. TextBox6.ToString()). cn.Text = ds.Text.Tables["faculty"]. TextBox4. dr[1] = TextBox2.Text.Tostring(). cn = new SqlConnection(ConfigurationManager.Tostring().Tostring(). }*/ } } //cn. TextBox2. cmd.Tostring().Tables["faculty"].Text = ds.AppSettings["cn"].Row[0]["fid"]./*if (ds. 70 .Text = ds.Text = ds. cmd.Tables["faculty"]. da.Tostring().Text.CommandText = " select * from faculty".Text = ds.

TextBox2.Text = "".Rows.Web.Web. } protected void TextBox3_TextChanged(object sender. dr[5] = TextBox6. ds. using System.Web.aspx"). TextBox3. TextBox1. using System.Text = "". EventArgs e) { Response.Open().Text = "". TextBox6. using System.Collections.Configuration.Data. using System.Text = "".Text = "". using System.Close().Update(ds. EventArgs e) { } protected void Button2_Click(object sender. TextBox5.Redirect("facultyinfo.Security.Text. 71 . cn. using System. } } Faculty information: using System. da.Text. TextBox4. "faculty"). cn.Add(dr).Text = "".dr[4] = TextBox5.UI.Tables["faculty"].

WebControls.UI. using System.using System. using System.Security.WebParts.Web.Web. } } Fee management: using System.UI.UI. using System.Configuration.Web. using System. 72 .UI.Redirect("faculty.CommandArgument).Web. GridViewCommandEventArgs e) { Response.Web. using System.Web. EventArgs e) { } protected void GridView1_RowCommand(object sender. using System. using System. using System.Collections.Page { protected void Page_Load(object sender.aspx?fid=" + e.UI.HtmlControls. public partial class facultyinfo : System.WebControls.Web.Data.

protected void Page_Load(object sender.Text = dt. DateTime dt = new DateTime(). "fee").ToString().SqlClient.Web. build. TextBox10. SqlDataAdapter da = new SqlDataAdapter().Close().ConnectionString = "Data Source=. public partial class _fee : System.Initial Catalog=cms.CommandText = " select * from fee".Web.DataAdapter = da. SqlCommandBuilder build = new SqlCommandBuilder().UI.WebControls. TextBox9. EventArgs e) { //cn.UI. using System.SelectCommand = cmd.Text = dt. DataSet ds = new DataSet(). da. cn = new SqlConnection(ConfigurationManager.InsertCommand = build. cmd. cn.UI.. cmd. SqlCommand cmd = new SqlCommand().AddDays(15).Web. da. cn.ToString().Connection = cn.Integrated Security=True".GetInsertCommand(). } 73 .ToString()). da.Page { SqlConnection cn = new SqlConnection().HtmlControls.WebParts.Web.Open().using System. using System.WebControls. using System.Fill(ds.Data.UI.AppSettings["cn"].

Open().NewRow(). TextBox6. TextBox2.Text = "".Text = "". TextBox3.Close().Text.Update(ds. cn. dr[5] = TextBox6. dr[2] = TextBox3. cn.Text. dr = ds.Text = "". ds. TextBox7.Tables["fee"]. dr[6] = TextBox7. dr[3] = TextBox4. TextBox8.Tables["fee"]. } protected void LinkButton1_Click(object sender.Text.Text.Text. TextBox1.Text = "".Text. "fee").Text = "".protected void ImageButton1_Click(object sender.Text = "". da.Text.Rows. dr[1] = TextBox2.Text = "". TextBox4. dr[4] = TextBox5. ImageClickEventArgs e) { DataRow dr. TextBox5.Text. dr[0] = TextBox1.Text = "".Add(dr). EventArgs e) 74 . dr[7] = TextBox8.

DataSet ds = new DataSet(). protected void Page_Load(object sender. SqlCommand cmd = new SqlCommand().Web. SqlCommandBuilder build = new SqlCommandBuilder(). using System.SqlClient.. using System. using System.Web.AppSettings["cn"].{ Response.WebControls.ConnectionString = "Data Source=. using System. EventArgs e) { //cn.Redirect("ADMINISTRATION.UI. using System.Page { SqlConnection cn = new SqlConnection(). using System. using System.Open().Security.Web.UI. } } Hostel management: using System.WebParts.ASPX").Initial Catalog=cms.Web.UI.WebControls.Data. 75 .UI. using System.Web. cn = new SqlConnection(ConfigurationManager.Collections.Configuration. //SqlDataReader dr.Integrated Security=True".Web.HtmlControls.UI. using System. SqlDataAdapter da = new SqlDataAdapter().ToString()). cn. public partial class hostel : System.Web.Data. using System.

Update(ds.Text = "". } protected void ImageButton1_Click(object sender. "hostel2").InsertCommand = build.Close().Tables["hostel2"]. dr[3] = TextBox4. dr[0] = TextBox1. "hostel2"). } } Library management: 76 .Text.Text.Text = "".Tables["hostel2"]. build.CommandText = "select*from hostel2". da.Text.Text = "".Close().Open(). TextBox4. ds. cn.Text.cmd. TextBox2.Add(dr). cmd.Connection = cn.SelectCommand = cmd.DataAdapter = da. da. da. cn.Text = "". TextBox1. da. cn.NewRow(). dr = ds.Rows. dr[1] = TextBox2. ImageClickEventArgs e) { DataRow dr.Fill(ds. dr[2] = TextBox3. TextBox3.GetInsertCommand().

Data. //SqlDataReader dr. using System. SqlCommand cmd = new SqlCommand().Security.Integrated Security=True". using System.Close().UI.HtmlControls. da.WebParts.UI. da.InsertCommand = build.Web.Web.Data.GetInsertCommand(). using System. "library").Collections.WebControls. using System.Page { SqlConnection cn = new SqlConnection(). SqlDataAdapter da = new SqlDataAdapter().ConnectionString = "Data Source=. using System.Web.ToString()). using System.using System. EventArgs e) { // cn.Open(). 77 .SelectCommand = cmd.Web. cn.UI. cn = new SqlConnection(ConfigurationManager.DataAdapter = da.UI.Web. cmd. cn.UI.Web. build. protected void Page_Load(object sender.AppSettings["cn"].Web. da. using System.Initial Catalog=cms.WebControls. SqlCommandBuilder build = new SqlCommandBuilder(). using System. public partial class LIBRARY : System.CommandText = "select*from library"..Fill(ds.Configuration. using System.SqlClient.Connection = cn. DataSet ds = new DataSet(). cmd. using System.

Text. //TextBox6.DateTime. dr[4] = TextBox5.Tables["library"]. TextBox3.Text="". cn.Text="".Add(dr). //TextBox7.Text="". EventArgs e) { DataRow dr.Text.AddDays(15).Text= System. TextBox2.Text="". dr[6] = TextBox7.Open().Text=System. dr[0] = TextBox1. ds. dr[2] = TextBox3.Text.Now.Text="". da.ToString(). TextBox7.Close().Now.Tables["library"]. TextBox1.Text. TextBox5. TextBox4.Text. TextBox6.Text.Rows.Update(ds. dr[5] = TextBox6.DateTime. 78 .ToString(). dr[3] = TextBox4. "library").Text.Text="".NewRow().Text="". cn. dr[1] = TextBox2.} protected void Button1_Click(object sender. dr = ds.

According to this plan. } } IMPLEMENTATION Implementation is the stage in the project where the theoretical design is turned into a working system and is giving confidence on the new system for the users that it will work efficiently and effectively.b.ToInt32(TextBox7.Text). Apart from planning major task of preparing the implementation are education and training of users. the activity are to be carried out. The most critical stage is achieving a successful new system is giving the user confidence that the system will work and will effective. Implementation are the final and the most important phase.ToInt32(TextBox6. //b = Convert. and evolution of change over method. discussion made regarding the equipment and resources and the additional equipment has to be acquired to implement the new system. In network backup system no additional resources are needed. The system can be implement after through testing is done and 79 . investigation of the current system and it’s constraints on implementation.d=15. It involves careful planning. // a = a.Text). The implementation process begin with preparing a plan for the implementation of the system. design of method to achieve the change over.i . //c=b-a.c.

User training: After the system is implemented successfully. In order to put new application system into use. Security and maintenance: Maintenance involve the software industry captive.if it is found to be working according to the specification. Maintenance is also done based on fixing the problem reported. Maintenance follow conversion to the extend that change are necessary to maintain satisfactory operation related to change in the user environment. User manual describing procedures for using the function listed on menu are circulated to all the user. This method also offer the greatest security since the old system can take over if the error are found or inability to handle certain type of transaction while using the new system. It is confirmed that the system is implemented up to user need and expectation. The user are trained to use the newly development system. It means restoring something to it’s original condition. training of the user is one of the most important subtask of the developer. typing up system resource. For this purpose user manuals are prepared and handled over to the user to operate the development system. 80 . Thus the user are trained to operate the developed system. Both the hardware and software securities are made to run the developed system successfully in future. the following activities were taken care of: Preparing of user and system documentation Conducting user training with demo and handson Test run for sum period to ensure smooth switching over the system. Maintain often includes minor enhancement or correction to problem that surface in system operation. changing the interface with other software or hardware enhancing the software.

81 . The system allow the user to enter the system only through proper user name and password. Password protection and simple procedure to prevent the unauthorized access are provided to the user.Any system developed should be secured and protected against possible hazards. An uninterrupted power supply should be so that the power failure or voltage fluctuations will not erase the data in the files. Security measure are provided to prevent unauthorized access of the database at various level.

82 .NET ( with c#). enquiry and contact us pages. Pradeep have design and coding of home page and administrator page and also done database connectivity. We all contribute equal parts in all fields as we work as a single team. Purva have design and coding of library and fee management pages. Ayush have done faculty. The project contains three major fields coding part.Contribution Our project “HOSTEL MANAGEMENT SYSTEM” is develop on the ASP. As we are three team members in our team to develop the project. designing part and database connectivity. But we all have knowledge of each others part.

The hostel management software is designed for people who want to manage various activities in the hostels. And hence there is a lots of strain on the person who are running the hostel and software’s are not usually used in the context. Identification of the drawbacks of the existing system leads of the designing of computerized system that will be compatible to the existing system with the system which is more user friendly and more GUI oriented. 83 . developed using ASP.CONCLUSION To conclude the description about the project. This particular project deals with the problem on managing a hostel avoids the problem which occur when carried manually.NET (with C# ) and SQLEXPRESS is based on the requirement specification of the user and the analysis of the existing system. The project. with flexibility for future enhancement. The expanded functionality of today’s software required an appropriate approach toward software approach. Thereby the number of hostels are also increasing are accommodations of the student studying in the institution. For the past few yeas the number of educational institutions are increasingly rapidly.

2. Infrastructure and management – Anita senger 84 .com http:\\www.asp. Pro http:www.NET 3. http:\\www. http:\\www. Second Edition ADO. 3. 5.W3schools. 3.5 in C# 2008.Net Complete Reference ASP.wikipedia. http:\\www. Books for References 1.NET Wrox Publications IBM ITILv3 exam guide I. 5.msdn.codeprojects.\itil http:\\www.BIBILOGRAPHY Websites 1.dotnetspider.

Sign up to vote on this title
UsefulNot useful