Description: Both are the format instructions for sending the request
1.application/x-www-form-urlencoded
In the syntax of a FORM element, enctype indicates that the format of the submitted data uses the Enctype property to specify the type of
I. Basic knowledge about HTTP upload
In the form Element syntax, enctype indicates the encoding type used by the browser when the data is sent back to the server using the enctype attribute. Application/X-WWW-form-urlencoded: the form data is
Description of character encoding such as application/X-WWW-form-urlencoded
In the form Element syntax, enctype indicates the encoding type used by the browser when the data is sent back to the server using the enctype attribute.
The HTTP request method provided by the HTTP/1.1 protocol has options,, POST, PUT, DELETE, TRACE, CONNECT. Where post is typically used to submit data to the server, this article discusses several ways to submit data in the post.We know that the
ASP.NET-016: save file dialog box in ASP. NETI wanted to use savediallog in asp.net to save the file. The result showed that the displayed mode dialog box or form is invalid when the application is not running in UserInteractive mode.
Use the
Sometimes, to hide the truth, we define the file as a header and then download the readfile, but this will increase the burden on the server. Generally, we do not recommend downloading large files.
Sometimes, to hide the truth, we define the file as
Step 1: Drag js files and other files into the Resource. resx Resource Management window, that is, let the IDE dynamically add management code to our resources in the Resource. Designer. resx file.
Step 2: To register these files in our program set,
In the past, the aspx page had to output the xml format, and the xml format can be output directly on the page. Now it is not available to upgrade to asp.net 3.5. Although the xml format string is output, the browser will not display it as xml, add
Sometimes, to hide the truth, we define the file as a header and then download the readfile, but this will increase the burden on the server. generally, we do not recommend downloading large files.
The code is as follows:
Function sendFile ($
I believe that many people will encounter this situation when implementing the file download function. The intention is to click the download connection and prompt to save the dialog box. this is often counterproductive, for example, a file such as
Content-type, connection type, generally refers to the presence of Content-type in the Web page, which defines the type of network file and the encoding of the Web page, and determines in what form and in what encoding the browser will read the file.
Write the following code in asp.net:Response. AddHeader ("content-type", "application/octet-stream ");OrResponse. ContentType = "application/octet-stream ";The type list is as follows:". *" = "Application/octet-stream"". 001" = "application/x-001"".
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 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
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.