Basic Components of Net Framework 3.5

Components of .Net Framework 3.5

Before moving to the next step on .Net technology, let us see various components of the .Net framework 3.5.

Following are components of the .Net framework 3.5 and the work they perform:
1. Common Language Runtime or CLR

It performs memory management, debugging, security checking, exception handling, thread execution, code safety, code execution, verification, and compilation. The code that is directly managed by the CLR is called the managed code. After compiling the managed code, the compiler converts the source code into intermediate language (IL) code. A Just In Time(JIT) compiler converts the IL code into native/machine code, which is CPU specific.

2 .Net Framework Class Library

It contains a library collection of reusable types. classes, interfaces, structures, and enumerated values, which are in group called types.

3. Common Language Specification

It contains the specifications for .Net supported languages and implementation of language integration.

4. Common Type System

It provides general rules for declaring, using, and managing types at run-time, and cross-language transmission.

5. Metadata and Assemblies

Metadata is the binary information which describes the program, which is either placed in a executable file (PE) or in the memory. Assembly is a logical unit consisting of the assembly manifest, IL code, type metadata and a set of resources like image files.

6. Windows Forms

Windows Forms contains the graphical presentation of any window displayed in the application.


ASP.NET is the web development model and AJAX is an extended part of ASP.NET for developing and implementing AJAX functionality. ASP.NET AJAX provide the components that allows the developer to update data on a website without completely reloading the page.


It is the technology used for manipulating with data and databases. It provides access to information sources like SQL server, XML, OLE DB, etc. The ADO.NET technology connects to database for retrieving, manipulating, and updating data.

9. Windows Workflow Foundation (WF)

It assists in building work-flow-based applications in desktop environment. It haves workflow run time, activities, work-flow designer, and a rules engine.

10.Windows Presentation Foundation

It provides a partition between and the business logic and the user interface. It helps in developing visually stunning interfaces using media, two and three dimensional graphics, documents, animations, and more.

11. Windows Communication Foundation (WCF)

It is the technology used for setting-up and executing connected systems.

12. Windows CardSpace

It provides safety for accessing resources and sharing private information on the network.

13. LINQ

It imparts data querying capabilities to .Net languages using a syntax which is equivalent to the tradition SQL query language.



Begin With ASP.NET

ASP.NET Overview

ASP.NET is a development framework used for building web pages and web sites with HTML, CSS, JavaScript and server script.

ASP.NET supports 3 different development models:

Web Pages, MVC (Model View Controller), and Web Forms:



Before we start with this tutorial, you should have a some knowledge of .NET programming language. It will be good if you have an understanding of different internet technologies such as HTML, CSS, AJAX. etc, As we are going to develop web-based applications using ASP.NET web application framework.


XML Syntax


  • If  document contains a XML declaration then it must be first statement of the document.
  • XML declaration is case – sensitive, where document begins with <?xml>. “xml” is in lower case.
  • An HTTP protocol can override the value of encoding that you put in the XML declaration.

<?xml version="1.0" encoding="UTF-8"?>



Element Syntax: every XML-element must be closed either with begin or with finish components as shown below:


or just by this technique:


Nested elements: An XML element can contain other XML- elements as its child, but the children elements must not overlap it parent element. i.e., an end tag of an element must have the same tag name as that of the most recent unmatched start tag.

example for incorrect nested tags:

<?xml version="1.0"?>
<name>syntax definition

example for correct nested tags:

<?xml version="1.0"?>
<name>syntax definition

Root element: An XML document must have and can have only one root element. For example, following example is not a correct XML document, because both the a and b elements occur at the top level without a root element:


The correct form of XML document is:




Case sensitivity: The tag names of XML-elements are case-sensitive. This means that the name of the starting and the ending elements should be exactly in the same case.

For example <Syntax> is different from <syntax>.


XML Introduction

XML refers to Extensible Markup Language. It is used to store and to transport data.


The XML language do not have any predefined tags.

The tags in the example below(student, course, etc) are not defined in any XML standard. These tags are “Created” by the author of the XML document.

HTML works with predefined tags like  <h1>, <p>, <table>, etc.

With XML, the developer must define both the document structure and  the tags. And each tag must have its starting and ending tags.



The above example explain how we could arrange the element tags to maintain the data through XML.

In the above example, It explain that a college may have multiple courses and each course have their subjects.

This is how we write XML document.
The Elements in XML document may contain other elements or data or nothing. 


    <subchild>syntax definition</subchild>


In the above example first tag also refer as element named as root contains two sub elements named child1 and child2.

And child1 contain a data value which is “syntax definition” where as element named as child2 is empty



A Prolog defines the XML version and the character encoding. However it is completely optional but if used it must be place at top of document.

<?xml version="1.0" encoding="UTF-8"?>



PHP Script Basics

PHP Script Basics

PHP is a scripting language which is used for developing dynamic webpages. Php script and html code can share same file for the development. So to differentiate php code from other stuff. There are four ways to define syntax :

1.  The Most common ways is to use Canonical PHP tags to mark where is php code

   <?php /*place your php code here*/ ?>


2. Short-Open tags is the shortest option one can use, but for using this, one must :

  •        Choose the –enable-short-tags configuration option when you’re building PHP script.
  •        Set the short_open_tag setting in your php.ini file to on. This option must be disabled to parse XML with PHP because the same syntax is used for XML tags.

   <? /* Your php code here */ ?>


3. ASP style tags are just like actual Active Server Pages tags.  And can be used after some configuration in php.ini file.

   <% your php code %>


4. HTML script tags are just how we add any javascript in html. Just replace javascript with PHP and place your code within the script tags.

   <script language="PHP">...</script>


The file which contain php code should be saved with .php or any other compatible extension.


HTML Basics – Syntax definition


It starts with <!DOCTYPE html html-file-extension-interface-symbol_318-45345>  //It’s used for rendering purpose.

All  elements must be written inside opening <html> and closing </html> tags.

Visible portion of markup comes within <body>…..</body> tags.


<!DOCTYPE html>
                 <title> MY TITLE </title>
            //place your content here


<h1>,<h2>,<h3>,<h4>,<h5>,<h6> tags can be used to represent different text size.

It used for heading, sub-heading and so on.




Paragraph can be defined with <p></p> tags

Anchor tags can be used to generate hyperlinks <a>

Images can be added with <img> tag. It’s Syntax is explained in below example.

<p>This is our sample paragraph</p>

<a href="">link text</a>
here, the target location is added to the href attribute.
Anything at place of link text will work as hyperlink on frontend.

//HTML images are defined with the <img> tag.
<img src="logo.jpg" alt="" width="104" height="142">
/*The source file (src), alternative text (alt), and size (width and height) are provided as attributes:*/