In ASP, continue to write the program in a different line

Source: Internet
Author: User
Tags continue urlencode
Program sometimes you may encounter a problem, that is, a description of the program is too long, written in the same line seems to give him very difficult and ugly, so want to change the narrative line to continue writing.
People familiar with VBScript know that changing a line is equivalent to a different program, and that if you cut a narrative from the middle to a line, there will be a big mistake.
For example, this is supposed to be a line of narration:
strURL = "content.asp?id=" & Itopicid & "&vip=" & Request.QueryString ("VIP") & "&topic=" & Ser Ver. UrlEncode (Request.QueryString ("Topic"))
It should be replaced by the line:
strURL = "content.asp?id=" & Itopicid & "&vip="
& Request.QueryString ("VIP") &
"&topic=" & Server.URLEncode (Request.QueryString ("Topic"))
This is going to be wrong! But, plus a newline character "_" (bottom line), then there is no problem! Code like the following is OK!
strURL = "content.asp?id=" & Itopicid & "&vip=" _
& Request.QueryString ("VIP") & _
"&topic=" & Server.URLEncode (Request.QueryString ("Topic"))
The line-wrapping character (bottom line) is the telling program, this Syria on the next line to continue Oh! In this case, does the code have to become beautiful and easy to read?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.