Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi There,

I'm having difficulties with ASP.NET / JAVASCRIPT / .NET.

I have a server ASP.NET button. On click I do a couple of JavaScript Validation. If all successfull, then I set the cursor to wait and disable the button (prevent resubmitting). Having this in place, the application never gets to the Code Behind File in .NET. However, if I take the cursor line and button disable line out, then it works fine, but allowing the user to resubmit as they wish.

An advise or help would do please.

Regards
Posted
v3
Comments
Menon Santosh 20-Sep-12 9:03am    
Post your code

1 solution

At the time of disabling the controls, you can make a jQuery Ajax request to the code behind and access the code.

Check Using jQuery to directly call ASP.NET AJAX page methods[^] for one example.
 
Share this answer
 
Comments
Krishna Kishore Biyyam 21-Sep-12 9:01am    
Can you please post your code

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900