Wednesday 22 August 2012

E-num with code asp.net

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);
}
}
}
Share This
Previous Post
Next Post

FYJC XI standard online admisson Process and declaraton of Merit list . Cut off List For prevous year also . 10 Th Results onlne declaraton Maharashtra Region .

0 comments: