Server.Execute Performance Problem

  • Jigger
  • Beginner
  • Beginner
  • Jigger
  • Posts: 49
  • Loc: Quebec

Post 3+ Months Ago

Good day all,

I'm working on some .Net 1.0 right now and the web app has some in-line html stored
in the database. It's basically a catalog software. The user has the option to generate
the files onto the server.

Now this process could be very slow and painfull due to the Server.Execute command.

Code: [ Select ]
using (sw = new StringWriter()) {
    Server.Execute(urlFormat, sw);
    pageHtml = sw.ToString();
    pageHtml = CleanPageHtml(pageHtml);
  1. using (sw = new StringWriter()) {
  2.     Server.Execute(urlFormat, sw);
  3.     pageHtml = sw.ToString();
  4.     pageHtml = CleanPageHtml(pageHtml);
  5. }

The server will hang for a long period since this is being called many times since many html pages can be in a catalog.

Have some of you ever had to deal with this can came up with an efficient way?

Thank you very much!


Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 39 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.