L
laziers
Hi,
anyone know how to write a single-cilick button? [after click button
is being disabled while the method is executing]
I use this:
<asp:button id="ButtonAdd" runat="server" text="Anuluj"
onclick="Click_ButtonAdd" />
if ( !isPostBack){
ButtonAdd.Attributes.Add("onclick",
ClientScript.GetPostBackEventReference(ButtonAdd, "") +
";this.value='Processing Credit Card Payment...';this.disabled =
true;");
}
and I have with this a big problem.
For time to time this method is executing 2 times. I dont know why.
Instend of add 1 record to database it add 2 records.
anyone know how to write a single-cilick button? [after click button
is being disabled while the method is executing]
I use this:
<asp:button id="ButtonAdd" runat="server" text="Anuluj"
onclick="Click_ButtonAdd" />
if ( !isPostBack){
ButtonAdd.Attributes.Add("onclick",
ClientScript.GetPostBackEventReference(ButtonAdd, "") +
";this.value='Processing Credit Card Payment...';this.disabled =
true;");
}
and I have with this a big problem.
For time to time this method is executing 2 times. I dont know why.
Instend of add 1 record to database it add 2 records.