Skip to main content
Tab

ImageSliderItem.Name Property

Gets or sets the unique identifier name for the current item.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue("")]
public string Name { get; set; }

Property Value

Type Default Description
String String.Empty

A string value that specifies the item’s unique identifier name.

Remarks

The Name property specifies the unique identifier name for the current item. This property can be used at runtime to obtain a particular item specified by its unique identifier name (via the ASPxClientImageSlider.GetItemByName method) rather than by its index and display text.

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