<%
foreach (System.Collections.DictionaryEntry entry in HttpContext.Current.Cache){
HttpContext.Current.Cache.Remove((string)entry.Key);
}
foreach (int key in diamondMethodList)
{
Response.Write(string.Format("<option value=\"{0}\">{1}</option>", key, diamondMethodList[key]));
}
%>
Hello, I have a small error in foreach, how do I convert? if I change the int key to string key it gives the following error in diamondMethodList [key]: can not implicitly convert type "string" to "int"