作者:mobiledu2502874377 | 来源:互联网 | 2023-09-18 17:46
Ihaveapanelwithsometextboxesandasubmitbutton,andanupdatepanelthatissettotriggerw
I have a panel with some text boxes and a submit button, and an updatepanel that is set to trigger when the button is pressed.
我有一个面板,其中有一些文本框和一个submit按钮,以及一个updatepanel,当按钮被按下时,它将被设置为触发器。
If I press the button, it works as normal. However if I press enter on a control, it posts back the entire page.
如果我按下按钮,它就正常工作了。但是,如果我在控件上按enter键,它就会返回整个页面。
I set the button as the default button in the panel, but it still posts back the entire page. Any ideas?
我将该按钮设置为面板中的默认按钮,但它仍将返回整个页面。什么好主意吗?
2 个解决方案