Specifying dynamic default values for properties in custom controls:

Discussion in 'ASP .Net Building Controls' started by Praveen Ramesh, Sep 2, 2004.

  1. Hey guys,

    I have a custom int property in my control whose default value is dynamic,
    so I cannot specify a "DefaultValue" attribute. However, I provide the
    corresponding ShouldSerializeXXX method. But, this method doesn't seem to be
    consulted when serialization occurs - the above property seems to be written
    into the tag as attribute even if the value is just the default value!

    Seems like the asp.net designer doesn't look for the ShouldSerializeXXX
    paradigm? If so, how else would one handle dynamic-default values?

    Thanks
    Praveen
     
    Praveen Ramesh, Sep 2, 2004
    #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. ABC
    Replies:
    0
    Views:
    499
  2. Victor Porton
    Replies:
    0
    Views:
    420
    Victor Porton
    Jun 5, 2004
  3. Moldy

    Accessing Properties of Custom Controls child Controls

    Moldy, Sep 4, 2003, in forum: ASP .Net Building Controls
    Replies:
    8
    Views:
    241
    Moldy
    Sep 5, 2003
  4. ABC
    Replies:
    0
    Views:
    232
  5. Moldy
    Replies:
    8
    Views:
    263
    Moldy
    Sep 5, 2003
Loading...

Share This Page