How To Bind Enum with Values Retirves

Jayakumars
Posted by Jayakumars under ASP.NET AJAX category on | Points: 40 | Views : 1016
public enum GetMontNames
{

January = 1, Feburary = 2, March = 3, April = 4, May = 5, June = 6, July = 7, August = 8, September = 9, October = 10, Novemeber = 11, December = 12
}
protected void bt1_Click(object sender, EventArgs e)
{
string[] values = Enum.GetNames(typeof(GetMontNames));
foreach (string s in values)
{

}

int[] n = (int[])Enum.GetValues(typeof(GetMontNames));
foreach (int z in n)
{

}

}

Comments or Responses

Login to post response