views:

48

answers:

1

I'm writing a user control with two attributes, A and B. I want the programmer using this control to be warned when defining a value for attribute A but not for B.

Can I accomplish this somehow?

+1  A: 

You could just throw an ArgumentException at runtime in the User Control's Page_Load() method.

ctford