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

Discussion in 'ASP .Net Building Controls' started by Cameron Eckman, Feb 20, 2007.

  1. 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
    Cameron Eckman, Feb 20, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mad Scientist Jr
    Replies:
    2
    Views:
    5,280
    Mad Scientist Jr
    Jun 29, 2004
  2. Joshua Beall
    Replies:
    1
    Views:
    421
    Bertilo Wennergren
    Dec 10, 2003
  3. Noozer
    Replies:
    10
    Views:
    2,074
    Mitja
    Oct 13, 2004
  4. Dave

    Can you set a default property for a user control?

    Dave, May 14, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    157
  5. KJ
    Replies:
    0
    Views:
    143
Loading...

Share This Page