OD
(Choose 1 answer)
A. public class ModelBinding Demo: PageModel
{
[BindProperty]
public string Name { get; set; }
[BindProperty]public string Email {get; set; }
public void OnPost()
{ ViewData["confirmation"] = $"{Name}, information will be sent to (Email)":}
B. All of the others.
C. [BindProperties]
public class ModelBindingDemo: PageModel
public string Name { get; set; } public string Email {get; set; }
public void OnPost(){
ViewData["confirmation"] = $"{Name), information will be sent to (Email)":}
None of the otherc
Model Binding in Razor Pages is the process that takes values from HTTP requests and maps them to handler method parameters or PageModel properties. Choose the correct way to bind the posted form values to PageModel properties.
Exit (31