Page 31 - DCAP312_WEB_TECHNOLOGIES_II
P. 31
Sarabjit Kumar, Lovely Professional University Unit 2: Introduction to C#
Unit 2: Introduction to C# Notes
CONTENTS
Objectives
Introduction
2.1 A Simple Web Page
2.1.1 Syntax
2.1.2 Variables
2.1.3 Types
2.2 Web Control
2.2.1 Adding a Web User Control
2.2.2 Advantages of a Web User Control
2.2.3 Drawbacks / Disadvantages
2.3 Introduction to In-line Script
2.4 The Page Class
2.4.1 Objects
2.5 Summary
2.6 Keywords
2.7 Review Questions
2.8 Further Readings
Objectives
After studying this unit, you will be able to:
• Create a simple Web page
• Discuss the Web controls
• Explain the in-line script
• Define the page class
Introduction
C# is the resident language for the .NET Common Language Runtime. It has been designed
to fit seamlessly into the .NET Common Language Runtime. You can inscribe code in either
Visual C++ or Visual Basic, but in mainly cases, C# will likely fit your needs better. Because
the Common Language Runtime is central to many things in C#.
Although C# is unoriginal from the C programming language, it has type such as garbage
anthology that allow beginners to become talented in C# more quickly than in C or C++. Similar
to Java, it is object-oriented, comes with an extensive class library, and supports exception
handling, multiple types of polymorphism, and separation of interfaces from implementations.
Those features, combined with its powerful development tools, multi-platform support, and
generics, make C# a good choice for many types of software development projects: rapid
application development projects, projects implemented by individuals or large or small teams,
Internet applications, and projects with strict reliability requirements. Testing frameworks such
as NUnit make C# amenable to test-driven development and thus a good language for use with
LOVELY PROFESSIONAL UNIVERSITY 25