Articles → ASP.NET CORE → Page model in asp.net core

Page model in asp.net core






Purpose





Benefit of page model











How is the page model specified in the view?




Picture showing the Page model name inside the view file

Click to Enlarge



Picture showing the page model class in the code behind

Click to Enlarge


Method to write business logic












public void OnGet() {

}

public void OnPut() {

}

public void OnPost() {

}



Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, June 1, 2021

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250