Hi,
If the GridView is bound data when the form is on load the first time, we can add the IsPostBack checking:
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
//Your binding code.
}
}
Another method is using the onClientClick property of the ImageButton:
<ItemTemplate>
<asp:ImageButton ID="ImageButton1" runat="server"
ImageUrl="~/Control_Button.bmp" OnClientClick="showModal();return false;"/>
</ItemTemplate>
function showModal() {
$find("ModalPopupExtender1").show();
}Have my suggestions helped?
Best regards,
Zhi-Qiang Ni