Re: HTML To ASP Converterby $code or die (Deacon)
|on Apr 30, 2001 at 23:54 UTC||Need Help??|
How about this code alternative:
Admittedly the error checking could be better and we should use a GetOpt::* module to get the input filename but I think it does the job.
Basically, ignore my previous post because even though you are converting a static htm file to ASP, it will still be slower than regular html on IIS 5 because you are adding unnecessary Response.Write statments. You don't need them at all. You can display static HTML as static html with an ASP extension, you don't need to enclose it all in <% tags. You're making the webserver do more work by having to process the file with asp.dll even on IIS5
Does this make sense?
Update: I don't intend this post to sound harsh, but you are making the HTML very ugly and hard to maintain because each line will be wrapped between Response.Write(?). I also think it will break if you have any text on multiple lines that are between <pre> tags and multi-line text boxes - you'll have an extra carriage return in there, plus vbNewLine - written out.
$code or die
$ perldoc perldoc