Forcing the setting of a required elements attribute

J

jwwishart

Hi,

Does anyone know if there is an Attribute (like:
DefaultValueAttribute) etc that will create a warning etc that says

"You have to specify a value for this attribute"

ie. The following should cause an error or warning at least!

---------------------------------------------------------------------------------------------------------
public class MyUserControl
inherits UserControl

public property YouMustManuallySetMe as boolean
' content here.
end property
end class

<uc1:MyUserControl id="bla" runat="server" />
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top