I have a dictionary with string and int and I would like to parse the dictionary string and ints to a html table if that is possible?
protected void Page_Load(object sender, EventArgs e)
{
Dictionary<string, int> userMediaList = new Dictionary<string, int>();
userMediaList.Add("Die Hard", 5);
userMediaList.Add("Die Hard II", 3);
userMediaList.Add("Die Hard III", 2);
userMediaList.Add("Ringenes Herre", 4);
userMediaList.Add("Ringenes Herre II", 1);
userMediaList.Add("Ringenes Herre III", 5);
var sortUserMediaList = from entry in userMediaList orderby entry.Value ascending select entry;
}
So what i want is adding this to a table on the website.
So that for every box in the table, the name of the movie and the rating of the movie will appear.