Index was out of range. Must be non-negative and less than the size of the collection.

Posted by Divs99 under C# on 7/19/2012 | Points: 10 | Views : 2798 | Status : [Member] | Replies : 1
iam getting this below error at this line this.lbCollection.Items[i - 1].Attributes.Add(attribKV[k].ToString(),attribKV[k + 1].ToString());

becoz my listbox items count getting zero in loadviewstate




Responses

Posted by: Sakthi.Singaravel on: 7/21/2012 [Member] Silver | Points: 25

Up
0
Down
what is the initial 'i' value...?
i think here 'i' value is 0....?

Regards,
Singaravel M

Divs99, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response