Can you set a "required attribute" on control property?

C

Cameron Eckman

When creating a property for a server control can you set some sort of
"required attribute", so that the developer sees the browser message you see
when you leave off an attribute on a Microsoft control:

Parser Error
Description: An error occurred during the parsing of a resource required
to service this request.
Please review the following specific parse error
details and modify your source file appropriately.
Parser Error Message: The required attribute 'ContentPlaceHolderID' is
not found on 'Content' control.
Source Error:

For right now I am just throwing HttpParseException during the Init, but
that does not behave like Microsoft's controls.

Thanks.
Cameron
 

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

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top