ASP Net Controls ASP.Net Tutorial

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
    Inherits="BulletedListTest" %>



    BulletedList Test


    
         
        

BulletedList Demo


        Choose a display mode:
                                  runat="server" 
                          OnSelectedIndexChanged="drpDisplayMode_SelectedIndexChanged" 
                          AutoPostBack="True">
          Text
          HyperLink
          LinkButton
        
                                BulletStyle="Square" OnClick="blItems_Click">
                Microsoft
                Adobe
                Oracle
            
            
        

    


File: Default.aspx.cs
using System;
using System.Data;
using System.Drawing;
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 BulletedListTest : System.Web.UI.Page
{
  protected void blItems_Click(object sender, BulletedListEventArgs e)
  {
    labMsg.Text = "The bullet item index you selected was " + e.Index;
  }
  protected void drpDisplayMode_SelectedIndexChanged(object sender, EventArgs e)
  {
    string sMode = drpDisplayMode.SelectedItem.Text;
    BulletedListDisplayMode mode;
    mode  = (BulletedListDisplayMode)Enum.Parse(typeof(BulletedListDisplayMode), sMode, true);
    blUrls.DisplayMode = mode;
  }
}