E-num with code asp.net
Practical program with code
protected void RadioButtonList2_SelectedIndexChanged1(object sender, EventArgs e)
{
BulletedList2.BulletStyle = (BulletStyle)Enum.Parse(typeof(BulletStyle), RadioButtonList2.SelectedItem.Text);
}
protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
{
BulletedList1.BulletStyle = (BulletStyle)Enum.Parse(typeof(BulletStyle), RadioButtonList1.SelectedItem.Text );
}
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
string[] brdStl = (string[])Enum.GetNames(typeof(BulletStyle));
foreach (string b in brdStl)
{
RadioButtonList1.Items.Add(b);
RadioButtonList2.Items.Add(b);
}
}
}
Practical program with code
protected void RadioButtonList2_SelectedIndexChanged1(object sender, EventArgs e)
{
BulletedList2.BulletStyle = (BulletStyle)Enum.Parse(typeof(BulletStyle), RadioButtonList2.SelectedItem.Text);
}
protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
{
BulletedList1.BulletStyle = (BulletStyle)Enum.Parse(typeof(BulletStyle), RadioButtonList1.SelectedItem.Text );
}
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
string[] brdStl = (string[])Enum.GetNames(typeof(BulletStyle));
foreach (string b in brdStl)
{
RadioButtonList1.Items.Add(b);
RadioButtonList2.Items.Add(b);
}
}
}
0 comments: