P
Praveen Ramesh
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
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