0

i develop asp web project a page from mine has form tag as follow: Form tag

when i clicked button to submit data i got this error : error 405

i read a lot of articles and all speak about IIS handler mapping,but i just have VS2013 to development not IIS installed as a server i can config, so if anybody can help in this issue i'll be grateful. Thanks in advance.

Hanaa Gebril
  • 187
  • 1
  • 13

1 Answers1

0

Try use:

@using (Html.BeginForm("YOUR_ACTION_IN_CONTROLLER", "YOUR_CONTROLLER_NAME", FormMethod.Post))
{
enter code here
}

This code will be send model class to your post method in your controller.

Perdido
  • 238
  • 3
  • 12