Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 04, 2013 12:30 PM by chetan.sarode
Jan 03, 2013 09:38 PM|LINK
I have UpdatePanel with grids, textboxes and buttons inside it. there are three buttons positioned in order : btn01, btn02, btn03...
Every time text box recdieving focus ( attempt to start typing) btn01 became default button, means if enter hit, postback starts as btn01 would be clicked. That is something that I need to prevent from happening. One of the way is to position btn03 as
first button on the page then it will become 'defaultbutton' and when enter hit postback get initiates as btn03 get clicked. I'm looking for the way to do the following :
1. Without changing physical order of the buttons set default buttoon to btn03. Can not fing property/dynamic way to do so.
2. Disable defaultbutton at all, so if during entering text into text box 'enter' key hit - nothing happening ( no postback )
Jan 03, 2013 09:57 PM|LINK
Please refer the below site
Change the tab order of button for setting default button.
Jan 04, 2013 01:58 AM|LINK
try like this
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<asp:Panel ID="Panel1" runat="server" DefaultButton="Btn1">
Jan 04, 2013 12:30 PM|LINK