My problem is ..
I want to set focus at custom image button.
If I click that button, a form will be open,after I close that form, the button that I clicked should be on focus.
<asp:TemplateColumn ItemStyle-Width="95px" ItemStyle-HorizontalAlign="Center">
<HeaderTemplate>
<table style="width: 95px">
<tr>
<td style="text-align: center; width: 100%">
</td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table style="width: 95px">
<tr>
<td style="text-align: center; width: 100%">
<cc1:CustomImageButton id="SoDtilButton" runat="server" type="submit"
ImageUrl="img/CM_b2_detail.gif"
AlternateText="Detail"
CommandName="Dtil">
</cc1:CustomImageButton>
<cc1:CustomImageButton id="SoDeleteButton" runat="server"
ImageUrl="img/CM_b2_delete.gif"
AlternateText="Delete"
CommandName="Delete"
ClientFocusScript="defaultFunctionKeyBody"
ClientClickScript="delRowConfirmDialog">
</cc1:CustomImageButton>
</td>
</tr>
</table>
</ItemTemplate>
<edititemtemplate>
<table style="width: 95px">
<tr>
<td style="text-align: center; width: 100%">
<cc1:CustomImageButton id="EditSoDtilButton" runat="server"
ImageUrl="img/CM_b2_detail.gif"
AlternateText="Detail"
CommandName="Dtil"
ClientFocusScript="defaultFunctionKeyEdit"
Visible=true>
</cc1:CustomImageButton>
<cc1:CustomImageButton id="EditSoUpdateButton" runat="server"
ImageUrl="img/CM_b2_update.gif"
AlternateText="Update"
CommandName="Update"
ClientFocusScript="defaultFunctionKeyEdit"
ClientClickScript="updateSoRowCheck">
</cc1:CustomImageButton>
<cc1:CustomImageButton id="EditSoDeleteButton" runat="server"
ImageUrl="img/CM_b2_delete.gif"
AlternateText="Delete"
CommandName="Delete"
ClientFocusScript="defaultFunctionKeyEdit"
ClientClickScript="delRowConfirmDialog">
</cc1:CustomImageButton>
</td>
</tr>
</table>
<input id="EditSoQtDecFlgHdn" type="hidden" runat="server" NAME="EditSoQtDecFlgHdn">
</EditItemTemplate>
</asp:TemplateColumn>
Button is created like that.