. NET Frontend pass-through and back-end receive several ways

Source: Internet
Author: User

First: Get Parameters (Common):

The Get Pass method is a link? After writing the parameters and data with & stitching.

The second type: Post parameters (Common):

This method can get post at the same time, the link to add parameters back to the background by GET, post data, the background with post data received.

For example:

$.ajax (

{

URL: ("financialcenter.aspx?timestamp={0}"). Format (new Date (). GetTime ()),

Type: ' POST ',

DataType: ' json ',

Timeout: 10000,

Data: {Action: "Updateitemcraft", Callback: "true", Itemid:id, Updatevalue:newvalue},

Success: function (resultdata)

{  

}

});

The third and second kind of similarity, but the third does not pass the variable name, the data is converted to JSON to pass:

Cases:

$.ajax ({
Type: ' Post ',
Url:url,
Data:JSON.stringify (SEARCHSTR),
DataType: ' JSON ',
Success:function (Resultjsondata) {

});

When the backend receives the value at this time, it cannot be received with the Get and post methods, but instead uses:

Request.inputstream to receive.

Fourth: It is the submit method for Get and post data transfer (in server-side controls, much more)

The fifth kind: The Variant Submit method uploads the data (this is actually the postback way to upload the data, WebForm development uses much)

. NET Frontend pass-through and back-end receive several ways

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.