Question
DUE TODAY Help with my ASP NET quiz 5.) public string FirstName {get; set;} public string LastName {get; set;} If you want to change the
DUE TODAY Help with my ASP NET quiz
5.)
public string FirstName {get; set;}
public string LastName {get; set;}
If you want to change the display name for the LastName field, you would use
a. [Display(Name="Last Name")]
b. [DisplayName="Last Name"]
c.[Display(LastName="Last Name")]
d. [Display(Label="Last Name")]
6.) [_________________] attribute is used to make a field input mandatory.
7.)
[Range(1,7)]
[Required]
public int numNights {get; set;}
In this code segment, [Range] attribute is used to ______________
8.)The ________________catches all the failed validation rules and places them into the ___________
a. Modelbinder, Modelstate
b. Validation attribute,Data annotation
c. Controller, Error handler
d. None of the above
9.) All validation attributes are present under _______________ namespace
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started