take a enum testEnum and a DropDownList ddlEnumData
public enum testEnum
{
one=1, two=2, three=3
}
foreach(testEnum te in Enum.GetValues(typeof(testEnum)))
{
ddlEnumData.Items.Add(new ListItem(te.ToString(), Convert.ToInt32(te).ToString()));
}
Archive for December, 2006
load enum values to DropDownList
Posted in C#.NET, tagged C#.net, enum on December 22, 2006 | Leave a Comment »
Unable to start debugging on the web server. You do not have permission to debug the application. The URL for this project is in the Internet zone.
Posted in General, tagged C#.net, vb.net, web server on December 13, 2006 | Leave a Comment »
This errors may appear when you are debugging , here are the how you will solve it
1. In the Internet Explorer, go to “Tools” -> “Internet Options”.
2. Switch to “Security” Tab.
3. Click on “Internet” (The Globe Icon. Its actually the default selected).
4. Click on “Custom Level” in the bottom.
5. Scroll down to find the “User [...]

