Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Unwanted page refresh causing problemsUnwanted page refresh causing problems
Previous
 
Next
New Post
1/9/2008 5:36 PM
 

I have an application that runs Crystal reports and outputs them to PDF files in a windows folder.

There is a loop in the application ie:

for i = 1 to Customer.Count

ExecuteReport(i)

next i

The reports start to work fine, then it seems the page refreshes and then a second loop starts which produces duplicate reports for the first 10 or so Customers. Sometimes the app will complete and give exactly 2 copies of the reports for each Customer.

The DNN212 app retrieves data from a MS SQL database. I have copied the database and all related code (ascx, dll, etc) to a stansdalone pc and all works okay.

I think it is a refresh issue because I added extra WriteLine commands to output text to a file showing the stages it had reached, but the app blows out because the text file is already open and in use when the refresh tries to open it again - I get a DNN style error saying the file is in use.

Any help would be much appreciated, I am not an IIS/DNN expert.

Thanks

Ian

 
New Post
1/9/2008 7:32 PM
 

Ian,

I have a thought, but without looking at your code -- I can't be too confident that this will work for you.  But.....make sure your code to execute this is wrapped in an If (Page.IsPostback == False) Then  so that if the page does any kind of unwanted post back that you will not create the reports again.

Let me know if that helps at all,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
1/10/2008 10:21 AM
 

I too would recommend starting with Ian's recommendation.  it is possible that another control on the page is causing a postback and if you don't have the check for Not IsPostBack you could have issues with duplicate execution.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
1/10/2008 1:27 PM
 

Mitch Sellers wrote

I too would recommend starting with Ian's recommendation.  it is possible that another control on the page is causing a postback and if you don't have the check for Not IsPostBack you could have issues with duplicate execution.

A simple ditto would suffice if you just want to increase your post count...


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Unwanted page refresh causing problemsUnwanted page refresh causing problems


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out