. NET, response objects in

Source: Internet
Author: User
Tags date format iis log net client
The methods for response objects in ASP.net are shown in the following table, and the important methods are described in detail below.

WriteFile the file to the client
Write outputs data to the client browser
Redirect the page back to another address
Flush output buffer data to the client browser
End stops and ends processing of ASP pages
Close closes the client online
ClearHeaders clear the page title in the buffer
Clear clears the data for the buffer
BinaryWrite output binary characters or strings to the client browser
AppendToLog adds custom data to the IIS log files (log file) to track and analyze records.


Output data to the client browser.


Response.Write ("string/variable")

Generally, the Response.Write method is used to output variables and volatile data. Usually abbreviated in a program.



Re-turn the page to another URL.


Response.Redirect ("URL")

· DatePart0 function:

Function: Take out the values of year, month and day

Format: X=datepart ("Y", Z1)

where z represents the incoming date time; Y represents the value of each part of the purpose.

· Now function: reads the current system date and time.

· WeekdayName (n) function

Function: Returns the name of the week.



Stops processing the ASP Web page and returns the result to the browser. Tell the browser data has been all downloaded, but also make IIS/PWS no longer read the subsequent HTML markup and ASP programs, and to end the entire ASP file.



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.