Site Map | About Us | Contact Us  
 The same content in Microsoft HTML help file format is included in the download package.

NavigationItem.NavigateUrl Property

Gets or sets the URL to navigate when the item is clicked.

[Visual Basic]
Public Property NavigateUrl As String
[C#]
public String NavigateUrl {get; set;}

Property Value

System.String

The URL to navigate when the item is clicked.

This property is read/write.

Remarks

Use NavigateUrl property to redirect the page to the specified URL. Page will be redirected to anothe URL at client side, so the server side event handlers do not have a chance to be executed.

Use '~/' to represent the application root.

If you want to open a new window to display content of this URL, you can set TargetWindow property to "_blank". See TargetWindow property for different windows you can specify to display this URL.

In general, when mouse is clicked on an item, client-side events are handled in the following order:

  1. OnClickScript - Client side event handler
  2. ClientSideOnItemClick - Client side event handler
  3. NavigateUrl - Redirect to the URL without executing server side event
Note server-side event ItemClick will not be fired if NavigateUrl is set.

See handling client side events for more details.

See Also

NavigationItem Class | EO.Web Namespace


Direct link to this topic