i have a page in asp.net.
i m using a script to disable button on post back. i used script
this.DisableButtonOnPostBack(this.btnNext, "Wait...");
public void DisableButtonOnPostBack(Button button, string text)
{
button.Attributes["onclick"] =
string.Format(
"this.value = '{0}';this.disabled = true;{1};",
text,
button.Page.ClientScript.GetPostBackEventReference(button, null));
}
it works fin in goggle chroom but when i run this page on Firefox it dos'nt work. it post back page twice sometimes.
can anyone help me???????
Postback problem on button click
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

guna vgssekar2 reputationPosted Nov 5, 2012, 12:48 AM EST
Abhimanyu K VatsaRank #14 · 51.7K reputationPosted Nov 5, 2012, 2:45 AM EST
Muhammad younas164 reputationPosted Nov 6, 2012, 9:29 PM EST