It's defaultButton='idOfTheButton'
I would suggest using the following code in Page_Load or whereever your
logic is appropriate:
base.Page.Form.DefaultButton = buttonID.UniqueID;
rather than directly using
<form defaultbutton='buttonID' ..>
unless your button is directly within the form.
If your button is inside a UserControl or a datagrid / gridview etc, use
UniqueID (value of ID attribute on the client side) to get the correct id
which may or may not be same as the value of the property ID.
--
Happy Hacking,
Gaurav Vaish |
www.mastergaurav.com www.edujini-labs.com http://eduzine.edujinionline.com
-----------------------------------------
"mank1327" <mc*********@hotmail.comwrote in message
news:8F**********************************@microsof t.com...
>I think either
<form id="form1" runat="server" defaultbutton="">
or
<form id="form1" runat="server" defaultfocus="">
with the empty value being the id of your search button.