Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Changing Label style for required fields #5101


User avatar
0
Mitch created

I cannot seem to find a standard way within ASP Net Zero to automatically display Labels on required fields with a different style or asterisk.

Does this functionality exist?

If not, what approaches are being used by ASP Net Zero programmers to avoid manually styling each required input field?


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @Mitch,

    We have manually added a "*" character for required field labels.

  • User Avatar
    0
    Mitch created

    Thanks for clarifying that it's not built in functionality. It might be a nice thing to have sometime in the future.

    There's a lot of discussion about it here. I've used something similar on previous projects and it really makes life easier and reduces human error.

    [https://stackoverflow.com/questions/5940506/how-can-i-modify-labelfor-to-display-an-asterisk-on-required-fields])

  • User Avatar
    0
    ismcagdas created
    Support Team

    @Mitch,

    Thanks for the link, this can be very helpful.