Index out of range exception was unhandled by usercode

Posted by Amritha444 under ASP.NET on 12/30/2010 | Points: 10 | Views : 4824 | Status : [Member] | Replies : 3
dear all

Why error like this happening

Index out of range exception was unhandled by usercode

Thanks in advance




Responses

Posted by: Vuyiswamb on: 12/30/2010 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
let us see the code

Thank you for posting at Dotnetfunda
[Administrator]

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

Posted by: Prabhakar on: 1/17/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
hi Amritha444
u set Your Index property wrong.. and also u retrieve anything in dropdownlist and any control so u set wrong Index.. u start Your index 0

Best Regard's
Prabhakar

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

Posted by: Karthikanbarasan on: 1/17/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

You can handle this easily by checking the input index property and handle the same...

Thanks
Karthik
www.f5Debug.net

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

Login to post response