السلام عليكم
عندي خطأ ابغاكم تساعدوني في حله
DropDownList xx = new DropDownList();
xx.DataTextField = "nes";
xx.DataValueField = "Ans_Id";
xx.DataSource = ds;
xx.DataBind();
int c = 0;
for (int x = 0; x <= xx.Items.Count - 1; x++)
{
c = c + int.Parse(xx.Items[x].Text);
}نص الخطأ : System.FormatException: Input string was not in a correct format.