Custom controls to emit compiler warning/error?

Discussion in 'ASP .Net' started by olduncleamos, Mar 10, 2007.

  1. olduncleamos

    olduncleamos Guest

    Hi all,

    Just wondering if it is possible for a custom control to emit compiler
    warning or even error? It would be great to flag the user at compile
    time if they made some inconsistent property settings.

    Thanks in advance.
    olduncleamos, Mar 10, 2007
    #1
    1. Advertising

  2. A well-written custom control should not allow inconsistent property settings
    to be made.
    Peter

    --
    Site: http://www.eggheadcafe.com
    UnBlog: http://petesbloggerama.blogspot.com
    Short urls & more: http://ittyurl.net




    "olduncleamos" wrote:

    > Hi all,
    >
    > Just wondering if it is possible for a custom control to emit compiler
    > warning or even error? It would be great to flag the user at compile
    > time if they made some inconsistent property settings.
    >
    > Thanks in advance.
    >
    >
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=, Mar 10, 2007
    #2
    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. Yan
    Replies:
    0
    Views:
    1,130
  2. Ram
    Replies:
    0
    Views:
    2,827
  3. rodchar
    Replies:
    0
    Views:
    392
    rodchar
    Nov 26, 2007
  4. Force Compiler Error/Warning Within Custom Control

    , Oct 6, 2006, in forum: ASP .Net Building Controls
    Replies:
    6
    Views:
    151
    John Saunders
    Oct 10, 2006
  5. olduncleamos

    Custom controls to emit compiler warning/error?

    olduncleamos, Mar 10, 2007, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    130
    Peter Bromberg [C# MVP]
    Mar 10, 2007
Loading...

Share This Page