About 51 results
Open links in new tab
  1. .net - required vs [Required] in C# 11 - Stack Overflow

    Mar 30, 2023 · Agreed. [Required] is for data validation and in many cases work with ef, and required keyword is c# general.

  2. html - required or required = "required" - Stack Overflow

    Sep 24, 2013 · Required This attribute specifies that the user must fill in a value before submitting a form. It cannot be used when the type attribute is hidden, image, or a button type (submit, …

  3. validation - How to Indicate Required Fields? - Stack Overflow

    Source: Form fields — Required vs Optional by Jordane Sanson Why use optional fields is always better than required : An asterisk is obvious to you, not to everyone, believe me, there are …

  4. Use CSS to automatically add 'required field' asterisk to form inputs

    What you need is :required selector - it will select all fields with 'required' attribute (so no need to add any additional classes). Then - style inputs according to your needs.

  5. html - Required attribute HTML5 - Stack Overflow

    As ms2ger has pointed out, the required attribute is a boolean attribute, and here's what the HTML 5 spec has to say about those: Note: The values "true" and "false" are not allowed on …

  6. c# - Required keyword causes error even if member initialized in ...

    Aug 15, 2023 · I have the following code. The two lines that create a TestClass instance fail with the errors shown. I would expect the first one to fail because a required property is not …

  7. Validation | required="true" / "false" | HTML form - Stack Overflow

    Explains how to use the "required" attribute in HTML forms for input validation, including examples and best practices.

  8. How to handle this error in C# "Required Member must be set in …

    Jan 15, 2024 · Required member state.StateName must be set in the object initiailzer or attribute constructor. I am looking for guidance to use the required modifier correctly. I am not able to …

  9. asp.net mvc - How to add "required" attribute to mvc razor …

    new { @class = "form-control", placeholder = "short name", required="required"}) or you can use the RequiredAttribute class in .Net. With jQuery the RequiredAttribute can Validate on the front …

  10. Azure DevOps Pull Request policy requiring one of two required ...

    May 31, 2023 · Azure DevOps Pull Request policy requiring one of two required reviewers Asked 3 years, 1 month ago Modified 2 years, 8 months ago Viewed 13k times