ImageSliderItem.NavigateUrl Property
Gets or sets a URL which defines the navigation location.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
String | String.Empty | A String value that specifies the item’s URL. |
Remarks
Use the NavigateUrl property to specify an URL to which the client web browser navigates whenever the item image is clicked within the image area.
If the ASPxImageSlider is bound to a data source, you can specify the data source’s data field (or an xml element’s attribute) that stores navigation URL’s of items via the ASPxImageSlider.NavigateUrlField property.
Example
This code sample demonstrates how you can manually create ASPxImageSlider items and specify the items’ properties.
<dx:ASPxImageSlider ID="ASPxImageSlider1" runat="server">
<Items>
<dx:ImageSliderItem ImageUrl="~/Images/img1.jpg" Name="Sunset"
NavigateUrl="~/sunset.asp" Text="Sunset" ThumbnailUrl="~/Thumbnails/thumb1.jpg" />
<dx:ImageSliderItem ImageUrl="~/Images/img2.jpg" Name="Lupines"
NavigateUrl="~/lupines.asp" Text="Lupines" ThumbnailUrl="~/Thumbnails/thumb2.jpg" />
<dx:ImageSliderItem ImageUrl="~/Images/img3.jpg" Name="Road"
NavigateUrl="~/road.asp" Text="Road" ThumbnailUrl="~/Thumbnails/thumb3.jpg" />
</Items>
</dx:ASPxImageSlider>
See Also