Forum Moderators: open

Message Too Old, No Replies

Dumb ASP Question

         

rogerd

9:48 pm on Aug 9, 2001 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Hmmm... don't say the name of this thread too quickly... ;)I'm working with some commercial shopping cart code written in ASP. All of my references on ASP show pages that are HTML with ASP code inserted as needed to create the dynamic content. In this case, however, the authors put all the normal HTML tags inside "wl" tags, e.g.,
wl("<HEAD>")
One effect of their overall approach is to make the page VERY tedious to edit using UltraDev 4 (nothing at all shows up in Design View), or even a text editor for that matter. What were the authors trying to accomplish, and are there any editing solutions other than slogging through with a text editor? Sorry to insult anyone's intelligence with this question... I must have the wrong ASP books, or, more likely, haven't read them well enough.

evinrude

12:46 am on Aug 10, 2001 (gmt 0)

10+ Year Member



> wl("<HEAD>")

Have you looked through the code to see if they have some function by the name of "wl"? WL does not sound familure to me. It's possible they created a function to do some replace work, or just to eliminate the tedious retyping of "response.write" everytime they wanted to output text, I s'pose.

Having not used UltraDev 4, not sure I can help there, other to suggest looking to see if wl is some function in their code.

Xoc

8:33 pm on Aug 10, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



wl must be a function in a server-side include. It probably just does a Response.Write. There is a good reason for doing it that way, in that each transition between code in <% %> and code outside it takes time, so slows down the server processing the page. So by using the writes inside code, the page will be processed faster.

On a web server, the faster you can process pages, the faster the CPU is freed up to handle the next customer. That means that your server has more capacity.

However, as you noticed, it can be tedious. So there is a tradeoff.

rogerd

8:48 pm on Aug 10, 2001 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Thanks for the info, guys. Nothing I love better than hand-coding HTML...