Page Refresh On Mozilla

Posted by Pankaj2008 under ASP.NET on 5/22/2008 | Views : 1807 | Status : [Member] | Replies : 1
Hi,
All

I am using an <asp:imagebutton > on my page and OnClick event of this button.so this code is working fine on IE but not on Mozilla,when i click on this button then page is refreshed two times on Mozilla.Plz Anybody tell me ,what should i do...thanx in advance..




Regards.
Pankaj




Responses

Posted by: Poster on: 5/22/2008 [Member] Starter

Up
0
Down
Are you using Server side onclick event or client side?

If you are using OnClientClick event then your code should look like


// ImageButton Code
<asp:imageButton id="fd" runat="server" onclientclick="OpenThePage()" />

// JavaScript code
function OpenThePage()
{
window.location.href="yourpagename";
}


Thanks


Pankaj2008, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response