-1

I've two form in the page. One is hidden by default. The hidden form submits when I press enter from keyboard.

How to avoid that ?

I've two form. One is HttpGet and another one is HttpPost. But when press enter key from keyboard, It always call HttpPost instead of HttpGet.

Jeeva J
  • 3,173
  • 10
  • 38
  • 85

1 Answers1

1

There are two possibilities to resolve this.

  1. Remove the form which is in Http.Get.

  2. If it is required, then have different action names for HttpGet and HttpPost.

Pang
  • 9,564
  • 146
  • 81
  • 122