Thanks for the further explanation Steven,
sck10
"Steven Cheng[MSFT]" <(E-Mail Removed)> wrote in message
news

(E-Mail Removed)...
> Hi Steve,
>
> As Jason has mentioned, in C# it always force you to use explicit object
> cast and won't let VB style late bind code. For you scenario, you need to
> explicitly cast the "sender" to the RadioButtonList control instance.
>
> In addition to the following style cast:
>
> RadioButtonList rlist = (RadioButtonList) sender;
>
> you can also use the "as" keyword to do type casting in C# which can avoid
> invalid cast exception when the type mismatches. e.g.
>
> RadioButtonList list = sender as RadioButtonList;
>
> if(list != null)
> {
> //do .....
> }
>
>
> Sincerely,
>
> Steven Cheng
>
> Microsoft MSDN Online Support Lead
>
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>