how to set a default 'enter' on a certain button

后端 未结 6 1871
萌比男神i
萌比男神i 2020-12-01 11:47

There is a textbox on a ContentPage. When the user presses Enter in that textbox I am trying to fire a \'Submit\' button on this ContentPage. I\'d like to fire off that part

6条回答
  •  星月不相逢
    2020-12-01 12:12

    The easiest way is to put the fields and button inside of a Panel and set the default button to the button you want to be activated on enter.

    
      <%-- Text boxes here --%>
      
    
    

提交回复
热议问题