Feeds:
Posts
Comments

Archive for December, 2006

load enum values to DropDownList

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()));
}

Read Full Post »

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 Authentication” section.

6. Select “Automatic logon with current username and password”.

7. Click “Ok” twice to exit.

reference: http://geekswithblogs.net/ranganh/archive/2005/12/30/64446.aspx

Read Full Post »