PRN221_-_SU_2023_-_Block_5_-_FE_731.webp
Iida95

PRN221_-_SU_2023_-_Block_5_-_FE_731.webp

  • Media owner Iida95
  • Ngày thêm
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

Thông tin

Category
PRN221
Thêm bởi
Iida95
Ngày thêm
Lượt xem
1,275
Lượt bình luận
8
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRN221_-_SU_2023_-_Block_5_-_FE_731.webp
File size
63.6 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom