You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
614 B

using HelloEmpty_ToRazor.Models;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace HelloEmpty_ToRazor.Pages
{
public class IndexModel : PageModel
{
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>ε<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>Ͻ<EFBFBD>
[BindProperty]
public HelloMessage HelloMsg { get; set; }
public string Noti { get; set; }
public void OnGet()
{
this.HelloMsg = new HelloMessage()
{
Message = "Hello Razor Pages"
};
}
public void OnPost()
{
this.Noti = "Message Changed!";
}
}
}