Recently, I developed a new version like chatting room, so I used ajax.net.
Then I found a problem. when I have carriage return and images in the text, the subsequent text will be lost.
SssssssSsssssSssssssss
IMG
SRC
= "Http: //
1. First add support in Web. config
Or
2. Download Ajax. dll or ajaxpro. dll.
3. register classes with Ajax methods in the page class initial loading
For example, Ajax. Utility. registertypeforajax (typeof (ajaxclass); //
If you want to learn ASP. net Ajax, want to learn windows Workflow Foundation, and also want to learn LINQ (including dlinq and xlinq ), the kinder is the most recommended Article in random clipping.Build Google ig like Ajax start page in 7 days
1. Enter Ajax
(1) standard-based representation technology using XHTML and CSS
(2) Use dom for Dynamic Display and Interaction
(3) use XML and XSLT for data exchange and processing
(4) use XMLHttpRequest for asynchronous data retrieval
(5) use
$ (OBJ ). ajaxpage (setting); is a method for extending jquery, called asynchronous paging. You can set several parameters to quickly achieve paging effect with backend processing and customize the output. Usage:
1. Reference The ajaxpage CSS file. (
How Ajax cross-origin conversion works:
1. cause: the same-origin policy of the browser
2. The script can avoid the same-source policy check. Jsonp uses this principle.
Jsonp uses the
Among them, jsoncallback is registered by the
1. the Ajax implementation method is as follows:Webpage:
Webserver:
[Webmethod] Public String [] cusname (string prefixtext) {webclass. list TMP = new webclass. list (); dbdatareader DR = TMP. showname (prefixtext); List suggestions = new list ();
XMLHttpRequest is used to exchange data with the server in the background. This means that you can update a part of a webpage without reloading the entire webpage.
Create an XMLHTTPRequest object:VaR XMLHTTP;
If (window. XMLHttpRequest)
{// Code for
Get started with learning about Ajax.
After reading the introduction from msdn-su Peng, I felt really good.
Better User Experience and higher performance...
The first time I started writing my own Ajax code today, I encountered a very amazing
First, create a new login.html page:
$. ajax () method To Send request User Logon Name: password: & nbsp; & nbsp / div> and, create login. aspx to receive and process data:
Read message: After logging on, read the message after logging on. When obtaining the message for the first time, obtain the ID of the last row. When the message is read again, use the SQL statement to judge> the value of the last row ID
Document directory
1. Calendar and time: instances and demos
2. Examples and demos of Navigation
3. tool tip instance and demonstration
4. Menu: instance and demonstration
5. Slider: instance and demo
6. Slides: examples and demos
7. Image
//Default.aspx
Digg ------ separation line --------------------------
// Digg. aspx
Using system; using system. data; using system. configuration; using system. collections; using system. web; using system. web. security;
HTML:
WebService. CS:
Using system; using system. collections. generic; using system. LINQ; using system. web; using system. web. services; using system. data. sqlclient; using system. data; using system.
VII.
: Ajax support
Common method:
$. Ajax (PROP) goes back to remote data through an Ajax request. Prop is a hash table that can transmit the following key/value types:.
(String) type: Data Transmission Method (get or post ).
(String) URL: the URL
No1-Prototype
Features: a very elegant JS library that defines JS object-oriented extensions, Dom operation APIs, events, and so on. There are also Rico/script. aculo. US implements some JS component functions and effects (not yet complete).
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