Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 05, 2013 07:24 AM by geniusvishal
Jan 02, 2013 03:40 PM|LINK
I have come across some weird issues recently. When a button on our site is clicked sometimes it actions the request and sometimes it doesnt. Ive checked it with different browsers and the same applies no matter what browser i use. I cant seem to find a
pattern to replicate it locally as it only happens on live sites.
Does anyone have anyway/thoughts that i could use to narrow this problem down and see whats happening behind the scenes?
Jan 02, 2013 04:02 PM|LINK
Please give your code
Jan 02, 2013 04:14 PM|LINK
hi EssCee! well yes i was once caught with something like this after hours of wondering and asking for help at the end i found out that exception handling is one of the most basic and important weapon for almost every coder on this planet.
you just need to walk through all the code that is running behind this stubborn button may be sometimes the code runs, and other times there is an exception out there to surprise you, then it looks like the button is not working. do let me know.
Jan 02, 2013 04:28 PM|LINK
Jan 02, 2013 04:42 PM|LINK
Jan 02, 2013 05:18 PM|LINK
Do you have the button in an updatepanel? If so, you could be seeing errors but they are getting swallowed by ajax. A good feature to use is asp.net tracing. You can turn this on in the web.config, and the trace log is visible in the trace.axd file (first
10 traces by default unless changed in the web.config). Using the trace log you can see if the button is actually posting back or making the request, and if so, did the page generate a 500 server error.
Jan 05, 2013 07:12 AM|LINK
I agree with Mark (above user). Also, it's possible that if you are using AJAX, your network connection is having some problems with partial requests. So try by changing your network connection too. Some firewalls sometimes blocks AJAX requests so it will
not trigger the click events.
Please 'Mark as Answer' if this post helps you.
Jan 05, 2013 07:24 AM|LINK
Here is a similar Issue discussed in this thread...
You can get firebug from here