Skip to main content

NavBarGroup.NavigateUrl Property

Gets or sets an URL which defines the navigation location.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web


public string NavigateUrl { get; set; }

Property Value

Type Default Description
String String.Empty

A string value which represents an URL where the client’s web browser will navigate.


Use the NavigateUrl property to specify an URL to which the client’s web browser navigates whenever a group’s caption (specified by the NavBarGroup.Text property) or associated image (specified by the NavBarGroup.HeaderImage property) is clicked. If the NavigateUrl property is assigned, the group’s caption (together with a header image, if any) serves as a link - the caption text is displayed underlined in this instance. If this property is set to an empty string (String.Empty) no navigation is performed when clicking the caption of the group.


This example demonstrates how to modify the ASPxNavBar‘s groups and items content.

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register assembly="DevExpress.Web.v8.3, Version=, Culture=neutral, 
PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxNavBar" tagprefix="dxnb" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 

<script runat="server">

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DevExpress.Web.ASPxNavBar;

public partial class _Default : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e){
        ASPxNavBar1.AccessibilityCompliant = true;
        NavBarGroup group1 = new NavBarGroup();
        group1.Text = "Help";
        NavBarGroup group2 = new NavBarGroup("Contacts");
        NavBarItem item1 = new NavBarItem("Search");
        NavBarItem item2 = new NavBarItem("FAQ", "faq", "~/Images/faq.gif", 
             "Faq.aspx", "_blanc");
        NavBarItem item3 = new NavBarItem("Forum", "forum", "~/Images/Forum.gif",
        item3.Target = "_blanc";      


        item1.Template = new MyTemplate();

    public class MyTemplate : ITemplate {
        void ITemplate.InstantiateIn(Control container) {
            ASPxTextBox MyTextBox = new ASPxTextBox();
            MyTextBox.Text = "";
            ASPxButton SearchButton = new ASPxButton();
            SearchButton.Text = "Search..";
            SearchButton.AutoPostBack = false;


<html xmlns="">
<head runat="server">
    <form id="form1" runat="server">

        <dxnb:ASPxNavBar ID="ASPxNavBar1" runat="server">

See Also