ASP Object: Write

Source: Internet
Author: User
Object

Write

The Write method writes the specified string to the current HTTP output.

Grammar

Response.Write Variant

Parameters

Variant
The data that needs to be written. This parameter can be a VARIANT data type for any Visual Basic scripting Edition, including characters, strings, and integers. The value cannot include character combination%>, and can be replaced with escape sequence%\> if needed. The WEB server converts this escape sequence when it processes the script.

Example

The following example sends the output to the client using the Response.Write method.

I just want to say <% Response.Write ' Hello World '%> Your name is: <% Response.Write request.form ("name")%>

The following example adds an HTML tag to the Web page output. Because the string returned by the Write method does not contain the character combination%>, the generation is%\>. The following script

<% Response.Write "<table WIDTH = 100%\>"%>

Output

<table WIDTH = 100%>

Apply to

Response objects



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.