Server.Execute Performance Problem

Jig

Recruit
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:
using (sw = new StringWriter()) {
	Server.Execute(urlFormat, sw);
	pageHtml = sw.ToString();
	pageHtml = CleanPageHtml(pageHtml);
}

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!

JG
 
I am no full time developer but if you know where your inline html code is in database then why don't u fetch it using ADO.net ??
 
Back
Top