﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebEssentials - WebSlider - add items server side</title><link>http://www.intersoftsolutions.com/Community/WebEssentials/WebSlider---add-items-server-side/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebSlider - add items server side</title><link>http://www.intersoftsolutions.com/Community/WebEssentials/WebSlider---add-items-server-side/</link><pubDate>Tue, 14 Jun 2011 17:00:35 GMT</pubDate><dc:creator>MarTin</dc:creator><category>webslider</category><description>&lt;p&gt;Hello Eric,&lt;/p&gt;
&lt;p&gt;You can use the following code in &lt;strong&gt;Load &lt;/strong&gt;server-side event of WebSlider:&lt;/p&gt;&lt;pre&gt;protected void WebSlider1_Load(object sender, EventArgs e)
{
   WebSlider1.MinimumValue = 1;
   WebSlider1.MaximumValue = 3;
   WebSlider1.SliderType = WebSliderType.Item;&lt;br /&gt;   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);
}&lt;/pre&gt;
&lt;p&gt;Ensure that you have added &lt;strong&gt;using ISNet.WebUI.WebSlider &lt;/strong&gt;in the namespace. Otherwise, it won't recognize WebSliderItem as a class.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: lucida sans unicode"&gt;The code will simply select Normal level as default selection because its Value is set to 2.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps. Thank you.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;-Martin-&lt;/p&gt;</description></item><item><title>WebSlider - add items server side</title><link>http://www.intersoftsolutions.com/Community/WebEssentials/WebSlider---add-items-server-side/</link><pubDate>Mon, 13 Jun 2011 13:26:28 GMT</pubDate><dc:creator>ehanig@extendemail.com</dc:creator><category>webslider</category><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;How do i add items server side to a WebSlider?&lt;/p&gt;
&lt;p&gt;I need a code example, as i cant seem to determine what type of object to add.&lt;/p&gt;
&lt;p&gt;Eric&lt;/p&gt;</description></item></channel></rss>