Posted on: 10/22/2013 6:21:09 PM | Views : 330

in my table "Show_Time" both "Golden" and "Silver" fields are there. Now Check my code,
int remain_sil = 0; SqlDataReader dr4 = db.ExRdr("select Golden from Show_Time"); while (dr4.Read()) { remain_gold = Int32.Parse(dr4["Golden"].ToString()); remain_sil = Int32.Parse(dr4["Silver"].ToString()); } dr4.Close(); Am Damn Sure "Silver" filed is in my table, then too it shows the error on silver. But Not showing in "Golden". The error is,
 System.IndexOutOfRangeException: Silver
Go to the complete details ...