asp.net 3.5

How to replace font tags with CSS

Without CSS you need to set the style for each paragraph on your page:

<p><font color=”#800090″ face=”Verdana,Geneva,Arial,Helvetica”>The latest update of Oracle Solaris 11 delivers unprecedented scale for cloud infrastructures and Oracle environments.</font></p>

You can use CSS to define in the style sheet that the color property of the <p> tag is #800090, and …

Learn more

How to write CSS formatted text on the web page in ASP.NET

If you want to use a stylesheet rule in a web page, you first need to link the page to the appropriate stylesheet. You can do this by adding a <link> element in the <head> section of your page. The <link> element references the file with styles you want to use. The next example allows the …

Learn more

How to create a simple content page in ASP.NET

You can use your master page created as described in the article: How to create a simple master page in ASP.NET in another page by adding the MasterPageFile attribute to the Page directive. This attribute indicates the filename of the master page you want to use:

In VB.NET

<%@ Page Language=”VB” MasterPageFile=”./SiteTemplate.master” … %>

In C#

<%@ Page Language=”C#” MasterPageFile=”./SiteTemplate.master” …

Learn more

How to create a simple master page in ASP.NET

You can create a master page by following the next steps in Visual Studio:

1. Select Website ➤ Add New Item from the menu.

2. Select Master Page

3. Give it a filename for example SiteTemplate.master

4. Click Add.

A master page is a similar to an ordinary ASP.NET web form and can …

Learn more

How to use Visual Studio 2010 to apply stylesheet rules in ASP.NET

The article: How to apply stylesheet rules in ASP.NET shows that you should add a <link> element (which includes stylesheet file) in the <head> section of your web page.  You can do the same by using Visual Studio by dragging your stylesheet from the Solution Explorer and dropping it onto the design surface of the page …

Learn more

How to apply stylesheet rules in ASP.NET

If you want to use a stylesheet rule in a web page, you first need to link the page to the appropriate stylesheet. You can do this by adding a <link> element in the <head> section of your page. The <link> element references the file with styles you want to use. The next example allows the …

Learn more

How to create a Stylesheet in ASP.NET

 

Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation semantics (the look and formatting) of a document written in a markup language. CSS provides a cross-platform solution for formatting web pages that works in conjunction with HTML or XHTML and is supported by virtually all modern browsers.

 

Learn more

How to manage the Menu control appearance in ASP.NET

You can manage the Menu control appearance by using styles provided by it. Like the TreeView, the Menu derives two custom classes from the Style base class – MenuStyle and MenuItemStyle. These styles add spacing properties ItemSpacing, HorizontalPadding and VerticalPadding. Because there is no ImageUrl property, you cannot set menu item images through the style.

The Menu …

Learn more

How to use the Menu navigation control in ASP.NET in VB.NET

The Menu control like the TreeView control supports hierarchical data. You can bind the Menu to a data source, or you can fill it by hand (declaratively or programmatically) using MenuItem objects. The MenuItem objects don’t support check boxes and you can’t set programmatically their expanded/collapsed state. The next table lists MenuItem properties you can use:

 

Learn more

How to use the Menu navigation control in ASP.NET in C#

The Menu control like the TreeView control supports hierarchical data. You can bind the Menu to a data source, or you can fill it by hand (declaratively or programmatically) using MenuItem objects. The MenuItem objects don’t support check boxes and you can’t set programmatically their expanded/collapsed state. The next table lists MenuItem properties you can use:

 

Learn more