Project Report
Project Report
Project Report
The enduring pages of the work are the cumulative sequence of extensive guidance and arduous work. We wish to acknowledge and express our personal gratitude to all those without whom this work could not have been reality. First of all we express our heartiest devotion to Almighty God for his graceful blessings at every step without which nothing could have been reality. we feel very delighted to get this rare opportunity to show our profound senses of reverences and indebtedness to our esteemed guide Mr. Kundan Singh for their keen and sustained interest, valuable advice, throughout the course of which led my major project, to a successful completion. For this kind act of consideration we beholden to him in special manner and no one can fully convey our feelings of respect and regard for him. We cant express our thanks in words for our parents who have given us this opportunity and family members for their great support and love. Last but not least we would like to thank those who have directly or indirectly helped and co-operated in accomplishing this project.
ABSTRACT
Nupur Sansthan is association of young people working together to tackle the varied problems faced by disabled community and also to enhance the opportunities available to empowering them to lead happy and productive lives, integrated into the mainstream of society. The Force behind Nupur Sansthan so far has been working for over four years without any umbrella, catering to the basic needs of these elect people of the society and Counseling them to know their potentia.
The application is being developed keeping the clients business in mind where the application will help them to grow their business beyond boundaries. This web solution provides a rich application functionality to physically disabled people where they can get opportunities like education, jobs, vocational training and allow them to register for matrimonial.
Introduction to language
ASP.NET is a web application framework developed and marketed by Microsoft, that programmers can use to build dynamic web sites, web applications and web services. It was first released in January 2002 with version 1.0 of the .NET Framework, and is the successor to Microsoft's Active Server Pages (ASP) technology. ASP.NET is built on the Common Language Runtime (CLR), allowing programmers to write ASP.NET code using any supported .NET language.
What is a framework?
A set of software routines that provide a foundation structure for an application. Frameworks take the tedium out of writing an application from scratch. Object-oriented application frameworks, which are the norm today, are structured as a class library.
.NET Framework
.NET + Framework = .NET Framework It is an environment for building, deploying, running web services and other applications
The .NET Framework is an integral Windows component that supports building and running the next generation of applications and XML Web services. The .NET Framework is designed to fulfill the following objectives: To provide a consistent object-oriented programming environment whether object code is stored and executed locally, executed locally but Internet-distributed, or executed remotely. To provide a code-execution environment that minimizes software deployment and versioning conflicts.
To
based on the .NET Framework can integrate with any other code.
The .NET Framework has two main components: the common language runtime and the .NET Framework class library. The common language runtime is the foundation of the .NET Framework. You can think of the runtime as an agent that manages code at execution time, providing core services such as memory
THE .NET FRAMEWORK The .net infrastructure consists of all the technologies that help in creating and running robust, scalable and distributed applications. The core of .net
infrastructure is the .NET Framework, which is a collection of services and classes. It exists as a layer between .net applications and underlying operating system. In other words, .NET Framework encapsulates much of the basic functionality that was earlier built into various programming languages, such as debugging and security services.
The Microsoft .NET Framework is a software technology that is available with several Microsoft Windows operating systems. It includes a large library of pre-coded solutions to common programming problems, a runtime or virtual machine that manages the execution of programs written specifically for the framework, and a set of tools for configuring and building applications. The .NET Framework is a key Microsoft offering and is intended to be used by most new applications created for the Windows platform. The pre-coded solutions that form the framework's Base Class Library cover a large range of programming needs in a number of areas, including user interface, data access, database connectivity, cryptography, web application development, numeric algorithms, and network communications. The class library is used by programmers who combine it with their own code to produce applications. Programs written for the .NET Framework execute in a software environment that manages the program's runtime requirements. Also part of the .NET Framework, this runtime environment is known as the Common Language Runtime (CLR). The CLR provides the appearance of an application virtual machine so that programmers need not consider the capabilities of the specific CPU that will execute the program. The CLR also provides other important services such as security, memory management, and exception handling. The class library and the CLR together compose the .NET Framework.
Web Technologies:
HTTP / HTTPS (URL, GET/POST) Client-side: HTML / XHTML (Extensible Hypertext Markup Language) JavaScript / VBScript (client-side scripting) Applets / ActiveX controls Server-side: PHP Phython JSP (Java Server Pages) ASP (Active Server Pages) ASP.NET (next generation of ASP)
ASP.NET 2.0:
ASP.NET provides services to allow the creation, deployment, and execution Web Applications and Web Services Web Applications are built using Web Forms Web Forms are designed to make building of
web-based applications as easy as building Visual Basic applications Built on .NET Framework: any .NET programming language can be used (C#, Visual Basic) Complete object model Separation of code and UI
ASP stands for Active Server Page. Whenever any client wants to get any web page he/she sends a request which is usually in written HTML form to the server, which in turn if free responds to the client by loading the requested objects on the clients screen which is also in HTML form. The entire process is governed by HTTP TCP/IP protocols.
Client side scripting executes on the client side whereas server side scripting executes in the server side.
The
Page
directives
Language
attribute
specifies
the
code-behind files language. The CodeFile attribute specifies the code-behind filename. When AutoEventWireup is true, ASP.NET automatically treats a method of name Page_eventName as an event handler. When AutoEventWireup is set to false, you specify event handlers using attributes in the Page directive just as you would any other web control. The Inherits attribute (line 4) specifies the class in the code-behind file from which this ASP.NET class inherits. The document type declaration, which specifies the document element name and the PUBLIC URI for the DTD that defines the XHTML vocabulary. XHTML documents have the root element html and markup information about the document in the head element. Setting the runat attribute to "server" indicates that ASP.NET processes the element and its nested elements and generates the corresponding XHTML. The body contains the main content that the browser displays. The form that contains our XHTML text and controls is set to execute on the server, which generates equivalent XHTML. The ID attribute assigns a name to a control, used as an identifier in the code-behind file. The asp: tag prefix indicates that the label is an ASP.NET web control, not an XHTML element. Each web control maps to a corresponding XHTML element or group of elements.
The asp:Label control is written as an XHTML span element. A span element contains text with formatting styles. This control is processed on the server so that the server can translate the control into XHTML. If this is not supported, the asp:Label element is written as text to the client.
Relationship between an aspx file and code behind file The code-behind file inherits from Page, which defines the general functionality of a web page. The code-behind file contains a partial class.
ASP.NET generates another partial class that defines the remainder of that class, based on the markup in the ASPX file. The first time the web page is requested, this class is compiled, and an instance is created. This instance represents our pageit creates the XHTML that is sent to the client. Once an instance of the web page has been created, multiple clients can use it to access the pageno recompilation is necessary.
When an instance of the page is created, the PreInit event occurs first, invoking method Page_PreInit, which can be used to set a pages theme. The Init event occurs next, invoking method Page_Init, which is used to initialize objects and other aspects of the page. Next, the Load event occurs, and the Page_Load event handler executes. The Init event is raised only once (when the page is first requested). The Load event is raised with every request. The page then processes any events that are generated by the pages controls. Once a response has been generated and sent, an Unload event occurs, which calls Page_Unload, which typically releases resources used by the page.
Whenever the client requests a webpage .aspx ASP.NET generates the XHTML code. To view this XHTML, select View Source from the Page menu in Internet Explorer (or View > Page Source if you are using Firefox). No visual form components, called hidden inputs, store data that the user doesnt need to see. Attribute method of the form element specifies the request method (usually get or post). The action attribute identifies the resource that will be requested when a form is submitted. When the form is processed on the server, the runat attribute is removed. Only those elements marked in the ASPX file with runat="server" are modified or replaced in the generated XHTML. Event Handling: GUIs are event driven. When the user interacts with a GUI component, the event drives the program to perform a task. A method that performs a task in response to an event is called an event handler. By convention, C# names the event-handler method as
objectName_eventName (e.g., Button1_Click). Each event handler receives two parameters when it is called: An object reference named sendera reference to the object that generated the event. A reference to an object of type EventArgs, which contains additional information about the event.
Protected void Button1_Click (object sender, EventArgs e) { //functionlaity of the event is written here. }
Programming Model (ASP.NET object model) Controls server-side code Derived from System.Web.UI.Control The web page is an object too Derived from System.Web.UI.Page User code executes on the web server in are objects, available in
Introduction to Project
Project Objective: The main objective for creating the website www.nupursansthan.org is to provide a platform to the physically disabled people and to enhance the opportunities available to empowering them to lead their happy and productive lives, integrated into the mainstream of the society. The application is developed keeping the clients business in mind where the application will help them to grow their business beyond boundaries. This web solution provides rich application functionality to physically disabled people where they can get opportunities like education, jobs, vocational training and allow them to register for matrimonial. The project has mainly two modules: a) b) User Panel (USER INTERFACE) Admin Panel (Panel where the editing/designing of the pages to be done)
The website consists of the designs of the following pages: Home Contact Us Donation o Education o Employment o Souvenir Picture Gallery Activities
1. User Panel
1.1 Home Page Home Page of the site is the first landing page of the application. It consists of the main navigations for all sections either at the top or left navigation depending upon the layout appearance. Home page will have eight different links for navigation to the eight sections of the website i.e. Activities, news, donation, Upcoming events, supporters, contact us and Online Registration. So the following are the main objects of the home page a. Flash or Non-flash header with the logo of the organisation. b. Supporters will be shown on home page. c. Main Navigation for all sections as described above. Briefly defined as: Activities:- This section shows all the images related to organisations events. News:- This section shows all the information related to organisations recent works. Donation:- This section contains three sub sections o Education o Employment o Souvenir Upcoming events:- This section contains the information about the events to be organised by the organisation according to the date. Supporters:- This section contains all the information about the sponsors who support the sansthan.
Contact Us:- This section contains the information about the sansthan and visitors may ask their queries through the mail. Online Registration:- This section contains two types of registration forms:o Volunteer o Matrimonial 2. Admin Panel This section is for administrator to control and manage functionality of his/her website. This section has the following different functionalities:Page management: In this section an editor is given where admin can design his/her static pages such as home, about us, Contact us, Supporters.
Image Management System: In this section admin manages the images related to the organizations works such as their events, news, activities. Event Management: In this section admin manages the upcoming events according to the date. Reports In this section admin will see the registered users details in the categorized format.
(b)
INTERFACE REQUIREDPLATFORM USED: - WIN XP OR HIGHER VERSION LANGUAGE USED: - ASP.NET using C# DATABASE USED: - SQL SERVER 2005
Admin has to enter his/her E-mail id and the given password to him through this login screen. In case wrong e-mail id or password error message is displayed as shown in the following screen:
This page consists of the navigation to all the options given to the admin along with image buttons for the convenience of the admin. Logout option is given on every page. 3. Page Management Page
In this page admin selects the page that he/she wants to edit. He/she can select the page from the dropdown list, after selecting the page the contents of the page will be displayed in the editor window. Then he/she can edit the selected page by using the given editor and can save the changes by clicking on the save changes button or can cancel by clicking on the cancel button. By clicking on the save changes button all updated information will be stored in the page management table in the database like this:
In this page admin manages all the images related to events, news and image gallery of the organizations. He/she can select the category of the image like event, news and image gallery and can search the corresponding images by clicking on the search button. Output will be shown like this:
Admin can edit the image by clicking on the edit button and can delete the particular by clicking on the delete button. Further in this page admin can add new images by clicking on the add new image button, a window will be appeared like this:
He/she can fill all the details like name, image path, category, description and status. After filling all the details by clicking in the add button all the information related to the image will be stored in the image management table in database as the following:
In case of leaving any field of information blank error message will be displayed to the admin. 5. Event management page
In this page admin manages the information related to the events organized in the organization like dates, images related to that event and can search the particular event information by selecting the event name from the dropdown list and entering the dates. After clicking on the search button output will be shown like this:
Admin can edit the information by clicking on the edit button and can delete the information by clicking on the delete button. Further on this page admin can add new events in the database by clicking on the add new event button, a window as the following will be appeared:
By clicking on the add button after filling all the information like event name, date, status, image related to that event (if any) and description of the event, all the information will be stored in the database as the following:
In case of leaving any information field blank error message will be displayed to the admin. 6. Supporters Page
In this page admin manages the information related to the supporters of the organization. He/she can edit the information of any particular supporter by searching it by selecting the name from the dropdown list. Output will be shown like this:
Admin can edit the information by clicking on the edit button and delete by clicking on the delete button. Further in this page admin can add new supporters to the database by clicking on the add new supporter button. A window as the following will be appeared :
By clicking on the add button after filling all the information fields, information will be stored in the database as the following:
In case of leaving any information field blank error message will be displayed to the admin.