I guess, you are trying to find out the names and values of all attributes defined by the HtmlTextWriterAttribute. If it is so, below is a piece of code.
foreach (int val in Enum.GetValues (HtmlTextWriterAttribute))
{
HtmlTextWriterAttribute enumVal = (HtmlTextWriterAttribute) val;
string enumName = enumVal.ToString ();
}
ravikatha
Contributor
2136 Points
348 Posts
Re: User Controls IEnumerator on HtmlTextWriterAttribute Constants
May 07, 2006 07:03 PM|LINK
I guess, you are trying to find out the names and values of all attributes defined by the HtmlTextWriterAttribute. If it is so, below is a piece of code.
foreach (int val in Enum.GetValues (HtmlTextWriterAttribute)) { HtmlTextWriterAttribute enumVal = (HtmlTextWriterAttribute) val; string enumName = enumVal.ToString (); }Hope this helps
Regards
Ravi