Home All Groups Group Topic Archive Search About

how to use the "ArgumentOutOfRangeException"

Author
16 Dec 2005 5:56 AM
ÀÏÆÅ»³ÔÐ6¸öÔÂ
how can i override the "ArgumentOutOfRangeException" or catch it in my
dorpdownlist?

Author
16 Dec 2005 6:02 AM
Rob Schieber
ÀÏÆÅ»³ÔÐ6¸öÔ wrote:
> how can i override the "ArgumentOutOfRangeException" or catch it in my
> dorpdownlist?
>
>

try
{
    your code...
}
catch(ArgumentOutOfRangeException ex)
{
    handle ex...
}

However, I would suggest implementing your code in a way that this
exception does not occur in the first place.

--
Rob Schieber

AddThis Social Bookmark Button