How to handle form submission ASP.NET MVC Back button?

前端 未结 3 1283
梦如初夏
梦如初夏 2020-12-11 06:44

i have a form which allows the user to key in the data and then submit. if everything works well on this action result, then i will redirect the user back to a thank you pag

3条回答
  •  萌比男神i
    2020-12-11 07:14

    Use this code

    @using (Html.BeginForm("FindResults", "COntrollerName", FormMethod.Get, new { id = "SearchForm" }))
    {}
    public ActionResult Index()
        {
    return view();
    }
    [HttpGet]
        public ActionResult FindResults(FindIssueModel model)
        {
    }
    

提交回复
热议问题