我有一个简单的html表单
<form method="post" asp-page="testbank" enctype="application/x-www-form-urlencoded">
<input type="text" name="d" />
<button type="submit">Submit</button>
</form>
,我想发布到另一个名为testbank的剃须刀页面。在测试银行剃刀页面中,我有
public void OnPost()
{
var a = Request.Form["d"];
}
但是即使添加断点也不会触发发布操作。我不知道为什么会这样。我想将数据发布到另一个剃须刀页面。