Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Web
Expertise: All
May 24, 1999



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Concatenate to Increase ASP Performance

Although it is common to use repeated Response.Write statements in an Active Server Pages script, you may not be getting the most out of your Web server. Each time you use Response.Write, the server takes a quick time out to send the HTML content to the browser. You can make the ASP execute faster by concatenating several strings into a variable and reducing the number of times you call Response.Write. For example, instead of using Response.Write four times, try using it just once:
StrMytext="This is the first line.<P>"
StrMytext=StrMytext & "This is the second line.<P>"
StrMytext=StrMytext & "This is the third line.<P>"
StrMytext=StrMytext &  "<P>This is the fourth line.<P>"
Response.Write StrMyText
Ken Cox
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date