Page 46 - DCAP312_WEB_TECHNOLOGIES_II
P. 46
Web Technologies-II
Notes True or False
12. Statements can be grouped into comma-separated statement lists or brace enclosed
statement blocks.
( a) True (b) False
13. Comments can span multiple lines.
( a) True (b) False
14. C# syntax looks quite similar to the syntax of Java.
( a) True (b) False
2.5 Summary
• C# is the native language for the .NET Common Language Runtime.
• The object-oriented nature of C# requires the high level structure of a C# program to be
defined in terms of classes, whose detailed behaviours are defined by their statements.
• A large part of the power of C# comes with the common .NET Framework API, which
provides a large set of classes, including ones for encryption, TCP/IP socket programming,
and graphics.
• Web user controls are derived from System.Web.UI.UserControl namespace.
• The Page class inherits from the TemplateControl class, which in turn inherits from the
Control class.
2.6 Keywords
Application: it stores data in the form of name/value pairs.
Cache: It is also a name/value collection of objects.
Parameter: Parameters are variables associated with a method.
Request: It represents the values and properties of the HTTP request that caused our page to
be loaded.
Response: It represents the web server’s response to a client request.
Session: It acts as a global repository to store any type of user specific data that needs to persist
between web-page requests.
Statement: The basic unit of execution in a C# program is the statement.
Web User control: It is a replacement for the include file feature in ASP, once created, can be
added to the aspx page either at design time or programmatically during run time.
1. Write a C# program to show the message?
2. Create a Web page using HTML.
2.7 Review Questions
1. Give a brief description of C#?
2. Write a short note about Web pages in ASP.NET.
3. What is the syntax in C#?
40 LOVELY PROFESSIONAL UNIVERSITY