iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi
How do i add items server side to a WebSlider?
I need a code example, as i cant seem to determine what type of object to add.
Eric
Hello Eric,
You can use the following code in Load server-side event of WebSlider:
protected void WebSlider1_Load(object sender, EventArgs e) { WebSlider1.MinimumValue = 1; WebSlider1.MaximumValue = 3; WebSlider1.SliderType = WebSliderType.Item; WebSlider1.Value = 2; WebSliderItem item1 = new WebSliderItem(); item1.Text = "Easy"; item1.Value = 1; WebSlider1.Items.Add(item1); WebSliderItem item2 = new WebSliderItem(); item2.Text = "Normal"; item2.Value = 2; WebSlider1.Items.Add(item2); WebSliderItem item3 = new WebSliderItem(); item3.Text = "Hard"; item3.Value = 3; WebSlider1.Items.Add(item3); }
Ensure that you have added using ISNet.WebUI.WebSlider in the namespace. Otherwise, it won't recognize WebSliderItem as a class.
The code will simply select Normal level as default selection because its Value is set to 2.
Hope this helps. Thank you.
Regards,-Martin-
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname