Joke Collection Website - Public benefit messages - How does ASP.NET use jQuery to obtain verification code across domains and verify it?
How does ASP.NET use jQuery to obtain verification code across domains and verify it?
& lt script & gt
Function LoadData ()
{
$.ajax({
Type: Get,
Website: "* * * *. aspx“,
Data: "type = test Ajax & amp num ="+math.random (),
Success: Function (Message)
{
Background data message
}
});
}
& lt script & gt
Trigger the event method above.
* * * * * *。 aspx。 cs
Protected void Page_Load (object sender, EventArgs e)
{
If (requested. Query ["type"] = = "testajax")
{
//Your logical processing
//Finally, you only need to add the following.
Response. content type =“text/plain“;
Response. Buffer = true
Response. ExpiresAbsolute = date and time. now . AddDays(- 1);
Response. add header(“pragma“,“no-cache“);
Response. add header(“cache-control“,““);
Response. cache control =“no-cache“;
//result The value to return to the page.
Response. Write (results);
Response. end();
}
}
I can help you. After you set my best answer, I will teach you Baidu Hii.
- Previous article:What message begins with 1069?
- Next article:What if the overdue loan is issued with a lawyer's letter?
- Related articles
- My mobile phone is broken. It seems that the motherboard is broken and I can't turn it on. Now I want the text message inside, which is very important. What should I do?
- Xiaomi 1 1 mobile advertising closing strategy!
- I can't get the message. What happened?
- Which platforms can send SMS in time?
- What do you mean by canceling the delivery notice?
- Such an unconstrained relative number
- How to find out where the phone bill went?
- How to turn off the sound of a smart watch?
- How to cancel the information synchronization between iphone and ipad?
- How to check the social security password?