ASP.NET

How to use the TreeNode object in selection mode in ASP.NET in C#

You can use TreeNode in one of two modes:

– In selection mode, clicking the node posts back the page and raises the TreeView.SelectedNodeChanged event. This is default mode for all nodes.

– In navigation mode, clicking a node navigates to a new page, and the SelectedNodeChanged event is not raised. You …

Learn more

How to customize TreeNode object in ASP.NET

Each node in the TreeView control is represented by a TreeNode object. Every TreeNode has an associated piece of text, which is displayed in the tree. The TreeNode object provides navigation properties such as ChildNode (the collection of nodes it contains) and Parent (the containing node). The next table lists in details all the useful properties …

Learn more

How to use the TreeView navigation control in ASP.NET

You can use the TreeView control to render rich tree views and to fill portions of the tree on demand without refreshing the entire page. The control supports a wide range of styles which you can use to transform its appearance. You can fill a TreeView by binding to an ordinary data source or by creating the nodes …

Learn more

How to manage the Wizard control appearance in ASP.NET pages

The Wizard control offers a big set of different properties you can use. For small changes, you can set various top-level properties. For example, you can control the colors, fonts, spacing, and border style. You can also modify the appearance of every button and add a header by using the HeaderText property.

More control is …

Learn more

How to use the Wizard control events in ASP.NET pages

If your project includes the Wizard control, described in the article: How to use the Wizard control steps in ASP.NET, you should take care about events raised by the control. The next table lists these events:

 

Event

Description

ActiveStepChanged
This event occurs when the Wizard control switches to a new step.

CancelButtonClick

This event occurs when …

Learn more

How to use the Wizard control steps in ASP.NET pages

The Wizard control is a more fascinating version of the MultiView control which is described in the article: How to use the MultiView control in ASP.NET pages. The control shows one of several views at a time, but you can customize it by using navigation buttons, a sidebar with step links, styles, and templates. Usually …

Learn more

How to use the MultiView control in ASP.NET pages

You can use the MultiView when you need to declare multiple views in your project and show only one of them at a time. It has no default user interface – you get only whatever HTML and controls you add. You can create a MultiView by adding the <asp:MultiView> tag to your .aspx page file and …

Learn more

How to start from the site map specific node in ASP.NET

The SiteMapDataSource includes two properties which you can use to start site navigation from the specific node StartingNodeOffset and StartingNodeUrl.

StartingNodeOffset

It takes an integer that instructs the SiteMapDataSource to move that many levels down the tree (if the number is positive) or up the tree (if the number is negative). Note: When the SiteMapDataSource moves …

Learn more

How to start from the site map current node in ASP.NET

The article How to skip the root node from the site map in ASP.NET teaches you how you can skip the root node. This article will teach you how you can show just a portion of the complete size map, starting from the current node.  For example, you might use a control such as the TreeView …

Learn more

How to skip the root node from the site map in ASP.NET

By default, the site map tree begins with the single root node from the site map. You can decide to skip it in your project, because it introduces a top-level link which might not be very useful. In the example described in the article: How to use the SiteMapPath navigation control in ASP.NET, you may not …

Learn more