Hi,
I need help on this scenario: Create a custom ASP(.Net) MandatoryLabel control with two non-standard properties – IsMandatory (System.Boolean, defaults to True), AsteriskColor (System.Drawing.Color, defaults to Red). When IsMandatory property for the label
set to True and the control that this label is associated with is not disabled (or read only for TextBoxes) then on the webpage it should append a space and an asterisk after the text, for example: When Text is “Last Name”, then the webpage should display:
“Last Name *” Extra points for ensuring that the properties’ values are preserved during postbacks even when the page ViewState is disabled.
Thanks
Go to the complete details ...