Function call happening 50% of the time

admin

Administrator
Staff member
I'm not sure if this is where I should go, but I'm pretty sure it's a javascript problem.
I have a buttonclick that calls 2 functions
here's the code:
<BUTTON id="btnPrimary" onclick="__doPostBack('RunPrimary', this.location;PostifMainBack();" type="button">

this is an ASP.NET application so the __doPostBack sends information back to the page and basically posts a form. Immediatly after the page reloads it should call PostifMainBack. The problem is that it only does this half the time (not an exact number) No matter what the criteria on the page (i.e. if I check a checkbox then click my button there is a 50% chance it won't work even if it worked under the exact same conditions right before this)
 
Back
Top