Search Header Logo

Web 2 - Cours 5

Authored by Ari Per

Computers

Professional Development

Web 2 - Cours 5
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quelle annotation est utilisée pour définir la valeur minimale d'un champ numérique?

[MinValue]

[NumericMin]

[Range(0, int.MaxValue)]

[Min]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quelle annotation est utilisée pour spécifier un message d'erreur personnalisé pour un champ?

  • [CustomError]

[ErrorMessage]

  • [CustomMessage]

  • [Error]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quelle annotation utilisez-vous pour définir le nom d'affichage d'un champ dans un formulaire?

[DisplayName]

[Display(Name="NomAffiche")]

[NameDisplay]

[ShowName]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Comment indiquez-vous que le champ doit être un numéro de téléphone valide dans ASP .NET?

  • [DataType(DataType.PhoneNumber)]

[PhoneNumber]

[TelNumber]

[ValidPhone]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quel attribut HTML est utilisé pour lier un formulaire à un modèle dans une vue?

model-bind

model-link

model

asp-for

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quelle balise HTML est utilisée pour afficher un message d'erreur de validation à côté d'un champ de formulaire dans ASP .NET?

<error>

<validation>

<span asp-validation-for="NomChamp"></span>

  • <message-error>

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. Comment créez-vous une case à cocher (checkbox) dans une vue liée à un champ du modèle?

<input type="checkbox" asp-for="NomChamp">

<checkbox asp-for="NomChamp">

<input-checkbox asp-for="NomChamp">

<input type="checkbox" asp-for="NomChamp">

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?