Server
Scriptmanager. registerstartupscript (This,This. GetType (),"Jsfunction","Clickaword ();",True);
Client:
II. The Asp.net server sends the file to the client
Response. Redirect (filename); // from codeproject, whole
Android http Request/Response ContentType, androidcontenttype
When the client sends an http request to the server, it must tell the server the type of the request. When the server returns data to the client, it also needs to tell the client the type
Different contenttype can affect what the client sees. The default contenttype is text/html, which is the Web page format.Code such as:Displayed as a Web page, while theThe original HTML code is displayed.Here are some common ContentTypeGIF
Server | Response ContentType property specifies the HTTP content type of the server response. If ContentType is not specified, the default is text/html.
Use it in asp:
". *" = "Application/octet-stream"
". 001" = "application/x-001"
"." =
The ContentType attribute specifies the HTTP content type of the server response. If ContentType is not specified, the default value is text/html.
Use it in ASP:
The following is a reference clip:
The following is a
Article Source: Ajax application Common HTTP contenttype settingsIn AJAX development, you often encounter the following scenarios:1 The server needs to return a regular text to the client 2 The server needs to return a piece of HTML code to the
The contenttype attribute specifies the HTTP content type of the response. If contenttype is not specified, the default value is text/html.
Syntax
Response. contenttype [= contenttype]
Parameters
Contenttype
A string that describes the content type.
Use Response. ContentType = "type name"; in ASP. NET to determine the output format
'Ez '=> 'application/andrew-inset ','Hqx' => 'application/mac-binhex40 ','Cpt' => 'application/mac-compactpro ','Doc' => 'application/msword ','Bin' => 'application/
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.