ASP.NET

How to set up XHTML 1.0 strict doctype in ASP.NET 4.0

The doctype directive occupies the second section in .aspx page or ASP.NET web forms and appears just after the page directive, described in the article How to use Page directive in ASP.NET 4.0.

The directive indicates the type of markup, HTML, XHTML, etc., used in the web page. This directive is optional, but Visual Studio 2010 adds it automatically. …

Learn more

How to set up XHTML 1.0 transitional doctype in ASP.NET 4.0

The doctype directive occupies the second section in .aspx page or ASP.NET web forms and appears just after the page directive, described in the article How to use Page directive in ASP.NET 4.0

The directive indicates the type of markup, HTML, XHTML, etc., used in the web page. This directive is optional, but Visual Studio 2010 adds it automatically. …

Learn more

How to use Page directive in ASP.NET 4.0

Each .aspx page, or ASP.NET web forms, has three sections. The first section is the Page directive:

<%@ Page Language=”C#” AutoEventWireup=”true” CodeFile=”Default.aspx.cs” Inherits=”_Default” %>

The page directive gives ASP.NET basic information about how to compile the page. It indicates:

– the language you’re using for your code

– the way you connect your event handlers.

If you’re using …

Learn more

How to read XML file in VB.NET

Suppose that the user has to read the XML file he/she already generated. The application should provide functionality to extract all vendors from Canada, and after that the user has to process them in alphabetic order.

 

Web developer has to follow these steps:

   1.Create the XDocument using the XML.
   2.Navigate the XElement elements to reach the Vendor ones.
   3.Take the XElement instances …

Learn more

How to read XML file in C#

Suppose that the user has to read the XML file he/she already generated. The application should provide functionality to extract all vendors from Canada, and after that the user has to process them in alphabetic order.

 

Web developer has to follow these steps:
   1.Create the XDocument using the XML.
   2.Navigate the XElement elements to reach the Vendor ones.
   3.Take the XElement instances …

Learn more

How to generate XML from data source in VB.NET

Let’s Web developer has to develop a page where the user submits a file containing the ISBN of all the books he/she needs information about. The user has to retrieve these books and create an XML file with the book title, author and price.

Web developer can use a LINQ query to pass child elements and nest data, by …

Learn more

How to generate XML from data source in C#

Let’s Web developer has to develop a page where the user submits a file containing the ISBN of all the books he/she needs information about. The user has to retrieve these books and create an XML file with the book title, author and price.

Web developer can use a LINQ query to pass child elements and nest data, by …

Learn more

How to create an XML file by using LINQ to XML in VB.NET

In .NET Framework 4.0 the System.Xml APIs are obsolete and are maintained for compatibility reasons only.  Web developers can create XML file by using LINQ to XML. The next picture presents classes in LINQ to XML.
 
 
 
 

The classes in LINQ to XML

 

These classes are included in System.Xml.Linq namespace and the following ones are the most …

Learn more

How to create an XML file by using LINQ to XML in C#

In .NET Framework 4.0 the System.Xml APIs are obsolete and are maintained for compatibility reasons only.  Web developers can create XML file by using LINQ to XML. The next picture presents classes in LINQ to XML.
 
 
 
 
 
 
 
 

The classes in LINQ to XML

 

These classes are included in System.Xml.Linq namespace and the following ones are the most …

Learn more

How to set Meta Tags in ASP.NET 4.0

To set the Meta Tags in ASP.NET 4 you should use the MetaKeywords and MetaDescription properties which are members of the Page class.

You can set these properties at run time, so you get the content from a database or other source, and which lets you set the tags dynamically.

You can also set the Keywords and Description properties in …

Learn more