Double Postback using a .aspx submit page to process a PDF
-
We have several PDF forms that we use, which call a submit.aspx to do some emailing of the form data as well as document storage (ImageRight). Every time we submit the PDF, it calls the Page_Load sub twice. I realize this COULD be an Adobe issue but we're not getting much response from them and I feel there might be some way to check why it's happening in the code and capture it so we can stop the second process. Anyone else ever see this problem?
-
We have several PDF forms that we use, which call a submit.aspx to do some emailing of the form data as well as document storage (ImageRight). Every time we submit the PDF, it calls the Page_Load sub twice. I realize this COULD be an Adobe issue but we're not getting much response from them and I feel there might be some way to check why it's happening in the code and capture it so we can stop the second process. Anyone else ever see this problem?
If the Page_Load method is written in VB and it has a 'Handles' clause and also you have 'AutoEventWireup' set to 'true' on the aspx page, then Page_Load will fire twice. ('AutoEventWireup = true' causes all methods starting with "Page_" to be interpreted as event-handling methods for the corresponding page event). If this is the case, either drop the 'Handles' clause or set 'AutoEventWireup' to false.
David Anton http://www.tangiblesoftwaresolutions.com C++ to C# Converter C++ to VB Converter C++ to Java Converter VB & C# to Java Converter Java to VB & C# Converter Instant C#: VB to C# converter Instant VB: C# to VB converter Instant C++: convert VB, C#, or Java to C++/CLI