using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class BulletedListDynamicImageTest : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
	protected void drpStyles_SelectedIndexChanged(object sender, EventArgs e)
	{
		// get the selected value in the drop down list
		string sBullet = drpStyles.SelectedItem.Text;
		// convert the string to the bullet style enum
		BulletStyle bs = (BulletStyle)Enum.Parse(typeof(BulletStyle), sBullet, true);
		// change the bullet style
		blItems.BulletStyle = bs;
		// if custom image then specify it
		if (bs == BulletStyle.CustomImage)
			blItems.BulletImageUrl = "images/bulletPlus.gif";
	}
}
