Solved

Click Event not Firing on First Click

Posted on 2010-08-23
7
472 Views
Last Modified: 2013-11-07
In my web-application, I have a simple web-page that pops-up and allows the user to upload a file. A problem seems to arise when a user enters the screen for the first time and attempts to upload a file greater than 1mb, the button click event does not fire. If the user closes the the pop-up and then attempts the process again the upload works just fine. Also if the user uploads a file less than 1mb the upload will work fine on the first try. Not sure what the issue is here.

Any help would be appreciated.

Thanks.
0
Comment
Question by:chompzilla
  • 4
  • 3
7 Comments
 
LVL 9

Expert Comment

by:puru1981
ID: 33501641
I think this is not an issue the attachment is taking time to upload, wait for a moment and then check if it happens again.
0
 

Author Comment

by:chompzilla
ID: 33502909
Its not the attachment taking time to upload. I'll click to upload the document and wait, until the page eventually timesout. Like I said, this occurs everytime I attempt to upload the document for the first time on a record. The second attempt will always successfully upload within a few seconds (whether it be the same document or an even larger document).
0
 

Author Comment

by:chompzilla
ID: 33503172
My comment sounded too dismissive of your suggestion. Let me just say that I feel very confident that it’s not the attachment taking time to upload.

Even placing debugging statements in the event, nothing will be returned on the first upload attempt. I've even commented out the upload file part and the only things on my screen are the file input field and my button (with debug statements as the only code in my code behind). Then I'll select my file, click the upload button and nothing will occur on the first initial click. Will close my window, follow the same steps as before and the event will fire as expected.

So it would be my assumption that if this was a simple matter of the file taking time to upload it would consistenly be slow everytime I attempt to upload. Not just on the first attempt.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 9

Accepted Solution

by:
puru1981 earned 0 total points
ID: 33503468
hmm... is your form is loaded properly in first attempt and no javascript error is there on the form?
0
 

Author Comment

by:chompzilla
ID: 33503910
Form loads fine and no javascript.
0
 
LVL 9

Expert Comment

by:puru1981
ID: 33504049
can you share the aspx
0
 

Author Comment

by:chompzilla
ID: 33520436
I seem to have located the issue causing the instability in my application. I had forgotten I was utilizing the CSS Behavior property. It seems that the javascript in my .htc file was causing the issue. Though at no point was there any errors thrown by the application.

Not sure why the code was causing failure on the first attempted upload only though. But that will be just a matter of stepping through the code and finding the deficiency.

Thanks.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question