Link Button on the page and set it as default button, work fine in IE but not in Mozila

后端 未结 5 1784
梦如初夏
梦如初夏 2020-12-04 02:46

I have a link button on the page and set it as default button, It works fine in IE but not working in Mozila Firefox. Does anybody have any clue how to reso

5条回答
  •  自闭症患者
    2020-12-04 03:13

    The DefaultButton property is not supported for use with a LinkButton. http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.panel.defaultbutton.aspx

    The easiest solution is to include a dummy Button on your page with style="display:none", set that as the defaultbutton and give it the same event handlers as your LinkButton.

提交回复
热议问题