Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
CHAPTER 1 INTRODUCTION
printers. Applications Services involves the developing, integrating, modernizing, and/or maintaining of applications software for clients. And, Industry Services addresses the core business challenges of clients in five key industries: healthcare, transportation, communications, government, and financial services, among others. Business Process Outsourcing, which involves performing a business function for a client, like payroll, call centers, insurance claims processing, and so forth, is an integral part of the Industry Services offerings. HP Enterprise Services is a key implementer of the "Instant-On Enterprise." This HP Enterprise Business initiative seeks to highlight the fundamental shifts in the way information technology is being used to meet changing business models and the growing role of technology to drive business decisions and help organizations achieve economic growth, improve efficiency, and to further the development of
11
society through the use of technology. In a larger context, the initiative seeks to help forward-thinking companies and government agencies have a more evolutionary, business-driven approach to how they deliver IT services, including solutions to modernize, transform, secure, and maximize the use of technology.
12
13
Common Language Runtime .NET System Class library ASP.NET Web Controls
14
The common language runtime uses just-in-time compilers to compile the IL (intermediate language) code to native binary code before execution. Other significant features of the common language runtime include the following: Version control Memory management Cross-language integration Common data type system
2.2.1.1 Compilation
An important part of the CLR is its compilation process. This process provides a great deal of flexibility and is at the root of many of .NET's capabilities overall. All code in .NET is natively compiled, but that compilation typically occurs just in time to run the code rather than way back before deployment as is typical today. To understand the compilation process we need to realize that .NET introduces not one new language, but two. C# has received a lot of attention from the press and developers, but .NET also introduces MSIL - the Microsoft Intermediate Language. All languages that work with .NET have compilers that generate MSIL rather than machine code. MSIL code (and some metadata we'll discuss later) can be deployed as needed, and will be compiled into machine code on the user's computer,
15
2.2.1.2 Metadata
Each language compiler does not always generate IL, it also generates metadata. This metadata is key to .NET as it provides an exact description of the components that were compiled to IL. In the world of COM, components were described by MIDL - the Microsoft Interface Definition Language. MIDL was unable to completely and accurately describe components, which could be a limiting factor in application design, and most definitely caused problems when VB code tried to call a C++ component or visa versa. The metadata scheme used by .NET is far more robust. The data is kept in XML so it is easily accessible and understandable. More importantly, the metadata for the component completely and accurately describes the component's interfaces. The result is that components can be created in and called by any language - avoiding nearly all associated problems with COM. In fact, because the IL and metadata are fully accessible to the .NET runtime we gain a number of key cross-language benefits, including: Seamless cross-language method calls Code can be checked to see if it is "unsafe" before being run .NET can automatically serialize objects Cross-language inheritance
16
running of unsafe code, helping to prevent malicious code from running within the .NET environment.
17
Microsoft has been very Careful to Include the Functionality and Flexibility Developers will Require , While Maintaining the Easy- to-use Nature of ASP With ASP.NET you Now Have a True Choice of Languages. All the .NET Languages have access to the Same Foundation Class Libraries , The Same Type of Systems , Equal object orientation and inheritance abilities, and full interoperability with existing COM components. You can use the same knowledge and code investment for everything from Web development to component development or enterprise systems, and developers do not have to be concerned about differences in APIs or variable type conversions, or even deployment. Microsoft has included in the .NET Framework an incredibly rich feature set of library classes, from network-handling functions for dealing with Transmission Control Protocol/Internet Protocol (TCP/IP) and Domain Name System (DNS), through to XML data and Web Services, to graphic drawing. In the past, the limitations of ASP scripting meant components were Required for functionality reasons, not just for architectural reasons. ASP.NET has access to the same functionality and uses the same language sin which you would create components, so now components are an architectural choice only. A .NET developer is shielded from changes in the underlying operating system and API, as the .NET technologies deal with how your code is implemented; and with the Common Type System, you dont have to worry whether the component you are building uses a different implementation of a string or integer to the language it will be used in.
18
that Visual Studio .NET uses by default when building Web applications with it.
19
Validation Controls
These controls have been developed exclusively for input validation.
Client-Server Interaction
ASP.NET applications are a mixture of client side markup and code , and server side processing . When an ASP.NET Web form page is downloaded to the visitors Web browser , additional code is included to previous ASP versions . This extra code enables richer form functionality , including server and client side events , validation , and the ability to maintain form value state . The server determines the visitors browser type and sends markup to match the browsers abilities . Some client interactions will be dealt with within the visitors browser , while others will require information to be posted to the server for processing and the altered page returned . As form responses are received , the form values are maintained in a new facility of ASP.NET State Bags and are compressed into a hidden form element containing the page View state. This allows the form elements that the
20
visitor has interacted with to maintain the same values as when the page was submitted . As illustrated in Figure the browser can request information from and send information to the server using two HTTP methods , GET and POST.
Server-Side Processing
When the server receives this request , it will find the page that was requested using the path information specified , and the relevant system will process the page . In the case of Classic ASP , there was not much to this process , although a certain amount of caching happened . As you will see in Figure with ASP.NET the process is a fair amount more involved but provides for much faster processing and delivery.
21
When ASP .Net is installed, installation process creates an association for .aspx files with the aspnet_isapi.dll files. When the IIS receives a request from the clients or web browsers for an aspx page, the IIS web server hands this request over to the aspnet_isapi.dll, which in turn instantiates the aspnet_wp.exe job. This aspnet_wp.exe finalizes any unfinished jobs like run time compilation etc., as explained above and then executes the asp .net application in a new application domain. Finally the output page is generated and returned back to the web server, which in-turn sends the file over to the client.
22
are constructed so that the database can reside on central computer known as Server and be shared among several users. When users want to access the data in SQL server, they run an application on their local computer known as client that connects over a network to the server running SQL server. SQL server can work with thousands of client applications simultaneously. The server has features to prevent the logical problems that occur if a user tries to read or modify data currently being used by others. While SQL server is designed to work as a client/server network, it is also capable of working as a stand-alone database directly on the client. The scalability and ease of use features of SQL server allow it to work efficiently on a client without consuming too many resources. SQL server effectively allocates the available resources such as memory, network bandwidth and disk I/O among the multiple
23
3.1.1.2 Access
He can access the students and faculties information directly.
3.1.2.3NoticePage
Create a page with 1 text field for title of the notice and text area for the content of the notice. The page should also contain a combo to choose for whom the notice is for.
24
3.1.2.5Scrap Space
Each faculty should have their own scrap space where the queries is posted.
3.1.3.3 Notice
Create a page which will have a combo box from which the student can choose which notice he wishes to see by the faculty.
3.1.3.5 E-Books
In this form user can download the e-books uploaded by the faculties.
3.1.3.6 Query
Each student should have his own scrap space where the response to their queries is posted.
25
26
3.2.3.3 Profile
Field Name Name DOB Gender Address MobNumber Email Description Varchar(30) int(10) varchar(6) varchar(50) Int(10) Varchar(20)
27
28
29
30
31
32
33
34
35
} else if(DropDownList2.Text=="Administrator") { if (bussiness.AuthenticateAdmin(TextBox8.Text, TextBox9.Text)) { Session["uname"] = TextBox8.Text; Response.Redirect("AdminProf.aspx?uname="); } else { Label7.Text = "Invalid User Name Or Password !!!"; } } } }
36
string insertqr = "Insert into Stu_Login values(" + TextBox1.Text + ",'" + TextBox2.Text + "','" + TextBox3.Text + "'," + DropDownList1.Text + ",'" + TextBox4.Text + "','" + TextBox5.Text + "')"; SqlCommand com = new SqlCommand(insertqr, con); com.ExecuteNonQuery(); con.Close(); } protected void Button4_Click(object sender, EventArgs e) { TextBox1.Text = ""; TextBox2.Text = ""; TextBox3.Text = ""; TextBox4.Text = ""; TextBox5.Text = ""; } }
37
string insertqr = "Insert into StudentReg values(" + TextBox2.Text +" ,'" + TextBox24.Text + "'," + TextBox3.Text + "," + DropDownList1.Text + ",'" + TextBox1.Text + "','" + TextBox4.Text + "'," + DropDownList2.Text + ",'" + TextBox5.Text + "','" + TextBox6.Text + "','" + DropDownList3.Text + "','" + TextBox7.Text + "'," + TextBox8.Text + ",'" + TextBox9.Text + "','" + TextBox10.Text + "','" + TextBox11.Text + "','" + TextBox12.Text + "','" + TextBox13.Text + "'," + DropDownList4.Text + "," +DropDownList5.Text + "," + DropDownList6.Text+",'" + TextBox17.Text + "','" + TextBox18.Text + "','" + TextBox19.Text + "','" + TextBox20.Text + "','" + TextBox21.Text + "','" + TextBox22.Text + "','" + TextBox23.Text + "')"; SqlCommand com = new SqlCommand(insertqr, con); com.ExecuteNonQuery(); con.Close(); } protected void Button2_Click(object sender, EventArgs e) {
TextBox2.Text = ""; TextBox3.Text = "";TextBox5.Text = "";TextBox6.Text = "";TextBox7.Text = "";TextBox8.Text = "";TextBox9.Text = "";TextBox10.Text = "";TextBox11.Text = "";TextBox12.Text = "";TextBox13.Text = "";DropDownList4.Text = "";DropDownList5.Text = "";DropDownList6.Text = "";TextBox17.Text = "";TextBox18.Text = "";TextBox19.Text = "";TextBox20.Text = ""; TextBox21.Text = "";TextBox22.Text = "";TextBox23.Text = "";TextBox24.Text = "";DropDownList1.Text = "";DropDownList2.Text = "";DropDownList3.Text = ""; } protected void Calendar1_SelectionChanged(object sender, EventArgs e) { TextBox6.Text = Calendar1.SelectedDate.ToShortDateString(); } }
38
using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; public partial class AdminProf : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string userName = Session["uname"].ToString(); Label1.Text = "Admin Id:-"+userName; } protected void LinkButton1_Click(object sender, EventArgs e) { Session.Abandon(); Response.Redirect("Login.aspx"); } }
39
{ Session.Abandon(); Response.Redirect("Login.aspx"); } }
40
CHAPTER 5 CONCLUSION
As per the departments requirement whole website is designed. We can add additional enhancements to our project. We can also make this project in such a way that users can solve their problems directly through the Internet by querying the faculties of the department and these queries and there replies can be viewed by all other registered users,hence it will save time of both students and faculties,who have the same problem to solve. We can also embed chat option for the users (Students or Faculties) who are online at the time and are registered, so that it can be used as a social networking site such as Facebook, Orkut, and Twitter etc at a small scale or at department level. Furter we can also add an option of sms for the registered users.
41
CHAPTER 6 BIBLIOGRAPHY
Asp.Net Bible. Beginning ASP.NET 2.0 with C# Asp.Net Complete Reference www.google.com