AFAIK, the Asp.net Web Pages model only supports a single form post per page. The user input is taken in with:
if (isPost)
{
// code to capture form input
}
However, is it possible to have Asp.net Web Pages behave more like Rails in allowing multiple actions (methods) per page?
I would like to be able to have a user click a button (posting to the same page) which deletes a given record in a db and then refreshes the same page.
Your premise that the Asp.Net Web Pages model only supports a single form post per page is incorrect. You can have multiple forms. Rather than using the simple IsPost test, you provide a different name attribute to each form’s associated submit button, and test to see which one was clicked by examining the Request.Form collection:
But if you want an MVC framework, as others have said, use ASP.NET MVC.