ASP.NETµÄÍêÈ«¿ÉÊÓ»¯Ajax¿ª·¢²âÊÔ
ÎÒ×Ô¼ºÐ´¸ö¿ìËÙÈëÃŵÄASP.NETµÄÍêÈ«¿ÉÊÓ»¯Ajax¿ª·¢£¬ÓÃVisual studio2008ÀïÃæ×Ô´øµÄAJAX Extensions¿Ø¼þ¡£
1£¬Ê×ÏÈ£¬ÍùÒ³ÃæÀïÃæקһ¸öScriptManager¿Ø¼þ£¨×¢²á½Å±¾£¬±ØÐëÔÚËùÓзþÎñÆ÷¿Ø¼þ֮ǰ³öÏÖ£©
2£¬ÍùÒ³ÃæÀïקһ¸öUpdatePanel¿Ø¼þ£¨¾Ö²¿Ë¢Ð¿ؼþ£©
3£¬ÔÚUpdatePanel¿Ø¼þµÄÃæ°åÀקһ¸öTextBox¿Ø¼þTextBox1ºÍÒ»¸öLabel¿Ø¼þLabel1
4£¬°ÑTextBox1¿Ø¼þµÄAutoPostBackÊôÐÔÉèÖóÉtrue
5£¬Ë«»÷TextBox1¿Ø¼þ£¬±àдC#´úÂ뽫ʼþTextBox1_TextChangedµÄÄÚÈÝд³É£ºLabel1.Text = TextBox1.Text;
6£¬´ò¿ªUpdatePanel¿Ø¼þµÄTriggersÊôÐÔ£¬Ìí¼ÓÒ»¸öTrigger£¬²¢ÉèÖÃÕâ¸öTriggerµÄControlIDΪTextBox1 £¬ÒÔ¼°EventNameΪTextChanged¡£
ÔËÐУ¬²âÊÔЧ¹ûΪµ±ÔÚÎı¾¿òTextBox1ÖÐÊäÈë×Ö·û£¬À뿪¿òºó×Ô¶¯½«Label1ÉèÖÃΪÊäÈëµÄ×Ö·û¡£
´úÂëÌùÔÚÏÂÃ棬ÉÏÊö²½Öè²»³É¹¦ÒÔ±¸¼ì²é£º
Default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="AjaxWebApplicationTest._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div>
</div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:TextBox ID="TextBox1" runat="server" AutoPostBack="True"
ontextchanged="TextBox1_TextChanged"></asp:TextBox>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="TextBox1" EventName="TextChanged" />
</Triggers>
</asp:UpdatePanel>
</form>
</body>
</html>
Default.aspx
using System;
using System.Collections.Generic;
using System.
Ïà¹ØÎĵµ£º
³ö´¦£ºCSDN BLOG ×÷ÕߣºBrookes ʱ¼ä£º2006-12-5 14:12:00
ÔÚASPÖУ¬¾Í¿ÉÒÔͨ¹ýµ÷ÓÃCDONTS×é¼þ·¢Ëͼòµ¥Óʼþ£¬ÔÚASP.NetÖУ¬×ÔȻҲ¿ÉÒÔ¡£²»Í¬µÄÊÇ£¬.Net FrameworkÖУ¬½«ÕâÒ»×é¼þ·â×°µ½ÁËSystem.Web.MailÃüÃû¿Õ¼äÖС£ Ò»¸öµäÐ͵ÄÓʼþ·¢ËͳÌÐòÈçÏ£º
MailMessage mail=new MailMessage(); ......
Asp.netµÄÉí·ÝÑéÖ¤ÓÐÓÐÈýÖÖ£¬·Ö±ðÊÇ"Windows | Forms | Passport"£¬ÆäÖÐÓÖÒÔFormsÑéÖ¤ÓõÄ×î¶à£¬Ò²×îÁé»î¡£
Forms ÑéÖ¤·½Ê½¶Ô»ùÓÚÓû§µÄÑéÖ¤ÊÚȨÌṩÁ˺ܺõÄÖ§³Ö£¬¿ÉÒÔͨ¹ýÒ»¸öµÇ¼ҳÃæÑéÖ¤Óû§µÄÉí·Ý£¬½«´ËÓû§µÄÉí·Ý·¢»Øµ½¿Í»§¶ËµÄCookie£¬Ö®ºó´ËÓû§ÔÙ·ÃÎÊÕâ¸öwebÓ¦ÓþͻáÁ¬Í¬Õâ¸öÉí·ÝCookieÒ»Æð·¢Ë͵½·þÎñ¶Ë¡ ......
½ñÌìÕÒһЩFlex×ÊÁÏ£¬Å¼È»·¢ÏֺܶàÈËÔÚÎÊÓйØFABridgeµÄÎÊÌ⣬¿´ÁËһϣ¬´óÖ¶¼ÊÇÔÚÎÊÔÚFlashBuilderÖÐÈçºÎͨ¹ýFABridgeÀ´ÊµÏÖF-AµÄ½»»¥¡£¼òµ¥ËµËµ°É¡£
Ò».ͨ¹ýjs·ÃÎÊFlex×é¼þ
1.×¼±¸¹¤×÷¡£ÏȽ¨Á¢Flex¹¤³Ì :fademo£¬²¢·ÅÖÃÒ»¸öÎı¾¿ò:txtName¡£×öÍêºó´úÂëÓ¦¸ÃÀàËÆÓÚÕâ¸öÑù×Ó£º
<?xml version="1.0 ......
Õ⼸ÌìÔÚ×¼±¸×öÒ»¸öǶÈëʽÉ豸µÄweb server£¬²¢ÇÒÏ£ÍûÄÜ×öµ½É豸״̬µÄ¶¯Ì¬ÏÔʾ¡£´Ócgiµ½html£¬´Óhtmlµ½javascript£¬´Ójavascriptµ½XMLHttpRequest£¬ÕæÊÇÓÖµ±µùÓÖµ±ÂèµÄ£¨ºÙºÙ£¬¿É²»ÊÇ´Ö¿Ú°¡£©¡£XMLHttpRequestÊǺÎÎ²»ÓÃË¢ÐÂÒ³Ãæ¾ÍÄܺÍserver¶Ë½»»»Êý¾Ý¡£Æñ²»ÊÇÕýºÏÎÒÒâ¡£¿´ÁËÁ½ÆªÎÄÕ²ŻÐÈ»´óÎò£¬ÄѵÀÕâ¾ÍÊÇ´«ËµÖеÄAj ......
Ò»¡¢ÈÏʶWeb.configÎļþ
¡¡¡¡Web.configÎļþÊÇÒ»¸öXMLÎı¾Îļþ£¬ËüÓÃÀ´´¢´æ ASP.NET Web Ó¦ÓóÌÐòµÄÅäÖÃÐÅÏ¢£¨Èç×î³£ÓõÄÉèÖÃASP.NET Web Ó¦ÓóÌÐòµÄÉí·ÝÑéÖ¤·½Ê½£©£¬Ëü¿ÉÒÔ³öÏÖÔÚÓ¦ÓóÌÐòµÄÿһ¸öĿ¼ÖС£µ±Äãͨ¹ýVB.NETн¨Ò»¸öWebÓ¦ÓóÌÐòºó£¬Ä¬ÈÏÇé¿öÏ»áÔÚ¸ùĿ¼×Ô¶¯´´½¨Ò»¸öĬÈϵÄ
Web.configÎļþ£¬°üÀ¨Ä¬ÈϵÄÅäÖÃÉ ......