0

It is me or Page.Form.DefaultButton doesn't seem to work in a page with no input ? I tried looking for this information but found nothing. Cause right now I am on a page where I set the default button and this doesn't work at all.

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
Rushino
  • 9,415
  • 16
  • 53
  • 93

2 Answers2

0

I seem to recall this is a known issue.

You can also set a DefaultButton on an <asp:Panel> - is it practical for you to do this instead?

Actually thinking about it further I think if you add a hidden input on the page it would also fix your issue.

rtpHarry
  • 13,019
  • 4
  • 43
  • 64
0

Try to set the default button to the specific panel or content.

Try that an let me know....

Murugavel
  • 269
  • 1
  • 2
  • 9