p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_codeclinic thread: ASP Sting generates a no-graphics page


Message #1 by rachel.thomason@r... on Wed, 18 Jul 2001 21:42:02
I didn't write the original code.  the company i work for hired an asp 
programmer to write the application and i have been learning how to 
maintain it... i don't know enough about asp yet to re-do what's already 
there, but i suspected that the coding was somewhat clumsy.  thanks for 
the link, i'll look into that


> I didn't quite find you problem, but why are you generating such an 
ammount
> of HTML in  a string, instead of hardcoding it or doing response.write 
every
> line? String concatenation is incredibly slow. see
> http://www.adopenstatic.com/experiments/stringconcantenation.asp
> 
> 
> ---
> Michiel van Otegem
> ASPNL.com    - ASP/ASP.NET/XML Teacher
> ASPLists.com - Moderator
> 
> http://www.aspnl.com
> http://www.aspalliance.com/michiel
> off-list email: michiel@a...
> ---
> ----- Original Message -----
> From: <rachel.thomason@r...>
> To: "Code Clinic" <proasp_codeclinic@p...>
> Sent: Wednesday, July 18, 2001 9:42 PM
> Subject: [proasp_codeclinic] ASP Sting generates a no-graphics page
> 
> 
> > The following code is working, except that the word "True" appears at 
the
> > top of the no-graphics printable page and the e-mail page - grrrrrrrr!
> > Help?
> >
> > <%
> > response.buffer = false
> > response.expires = 0.01
> > %><!--#include file="../../../includefile.asp"--><%
> >
> > emailto = "rachel.thomason@r..."
> > if request.form & "" <> "" then
> > dataposted = true
> > else
> > dataposted = false
> > end if
> > if request("emailto") & "" <> "" then
> > ' if validemail(request("emailto") & "") then
> > emailto = request("emailto")
> > ' else
> > ' msg = "Invalid Email Address"
> > ' dataposted = false
> > ' end if
> > end if
> >
> 
> truncated...

  Return to Index