Anchor tag as submit button?

前端 未结 3 1095
面向向阳花
面向向阳花 2021-01-02 08:17

I\'m in the process of converting an existing website to use MVC and Entity Framework.

The layout / styling is all supposed to stay the same, and in order to follow

3条回答
  •  一个人的身影
    2021-01-02 09:03

    Just need to change Single line, For Optimization I think this one is a best way.

    @using (Html.BeginForm("Login", "Login", FormMethod.Post, new { id = "login", action = "Login" }))
    {
        // your HTML code
        
    }

提交回复
热议问题