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 resolve this issue?
相关问题
- Carriage Return (ASCII chr 13) is missing from tex
- How to store image outside of the website's ro
- 'System.Threading.ThreadAbortException' in
- Request.PathInfo issues and XSS attacks
- How to dynamically load partial view Via jquery aj
相关文章
- asp.net HiddenField控件扩展问题
- asp.net HiddenField控件扩展问题
- Asp.Net网站无法写入错误日志,测试站点可以,正是站点不行
- asp.net mvc 重定向到vue hash字符串丢失
- FormsAuthenticationTicket expires too soon
- “Dynamic operations can only be performed in homog
- What is the best way to create a lock from a web a
- Add to htmlAttributes for custom ActionLink helper
work only first time we press enter in textbox. After adding some text in textbox and then pressing enter ,default button will not fire.
The
DefaultButton
property is not supported for use with aLinkButton
. http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.panel.defaultbutton.aspxThe 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.I had this kind of issue with FF3 and ASP.NET linkbuttons. This seems to be a bug with FF3 (not sure), but the script that fixed is given below:
Keep it at the end of the page so that it overrides the
WebForm_FireDefaultButton
method rendered by ASP.NET.I think its very simple, just add onkeypress js event of textbox where post back is required.
hope this will be helpful.
My first Stack Overflow write, wow :-)
asp.net:
js: