asp.netÔÚÓÃajaxµÄʱºòÈçºÎµ¯³ö¶Ô»°¿ò
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div>
<asp:updatepanel ID="UP" runat="server">
<ContentTemplate>
<asp:Button runat="server" Text="Button" onclick="Unnamed2_Click" />
</ContentTemplate>
</asp:updatepanel>
</div>
</form>
ASP.NET2.0ÖÐAJAXʹÓÃеÄManager ÀàÀ´¹ÜÀí£¬¶ø²»¼æÈÝÔÀ´µÄ ClientManager Àà ,ËùÒÔÓÃresponse.write("<script>alert('Ìáʾ£ºµãÎÒÁË!')</script>")ºÍ
this.Client.RegisterClientBlock(this.GetType(), "name", "<>alert('Ìáʾ£ºµãÎÒÁË!');</>", true);
Page.Client.RegisterClientBlock(this.GetType(), "name", "<>alert('Ìáʾ£ºµãÎÒÁË!);</>", true);
ÕâЩ·½·¨¶¼ÊÇÎÞЧµÄ.
¿ÉÒÔÓÃÒÔÏ·½·¨Ð´´úÂëʵÏÖ
ScriptManager.RegisterStartupScript(UP, UP.GetType(), "", "alert('µãÎÒÁË');", true);
ÕâÑù¾Í¿ÉÒÔʵÏÖÁË!
//UPÊÇupdatepanel µÄID
ת×Ôhttp://www.csharp360.com/bbs/viewthread.php?tid=233&extra=
Ïà¹ØÎĵµ£º
Ajax
Ö÷
Òª×é³É²¿·Ö
Ajax
ÊÇ
Asynchronous JavaScript and XML
£¨ÒÔ
¼°
DHTML
µÈ£©µÄËõд¡£
Ajax
ÓÉ
HTML
¡¢
JavaScript™
¼¼Êõ¡¢
DHTML
ºÍ
DOM
×é³É£¬ÕâÒ»½Ü³öµÄ·½·¨¿ÉÒÔ½«±¿×¾µÄ
Web
½çÃæת»¯³É½»»¥ÐÔµÄ
Ajax
Ó¦ÓóÌÐò¡£
AjaxµÄºËÐÄÊÇJavaScript¶ÔÏó XmlHttpRequest¡£¸Ã¶ÔÏóÔ ......
<html>
<body>
<script type="text/javascript">
function ajaxFunction()
{
var xmlHttp;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
// Inte ......
ºÃ¾Ã²»ÅöWEBµÄ¶«¶«ÁË,×î½üѧϰ£Ó£Á£ÐµÄ£Â£Ó£Ð¼¼Êõ£¬ÓÖÓõ½ÕâЩ£¬Ë³±ãתƪÎÄÕ£¬±¸²é£®
ÔÎĵØÖ·: http://www.ibm.com/developerworks/cn/xml/x-ajaxxml2/
Ajax ºÍ XML:
Îå
ÖÖ³£¼û Ajax ģʽ
¿ÉÁ¢¼´Ê¹ÓÃÕâЩ·Ç³£ÓÐÓÃµÄ Ajax Éè¼Æģʽ
ÎĵµÑ¡Ïî
<tr valign="top"><td width="8">< ......
1. ËäÈ»ÊÇ.net£¬µ«ÊÇÒѾ¼¸ºõÍêÈ«·ÅÆúÁË·þÎñÆ÷¿Ø¼þ£¬È¡¶ø´úÖ®µÄÊÇhtml¿Ø¼þ£¬¸³ÖµÊ±ºò¿ÉÒÔͨ¹ý×¢²ájavascript½Å±¾À´Íê³É¡£Ö»ÊÇѧϰ;ÖеÄÒ»¸öʵ¼ù£¬²»ÖªµÀÕâÑù»á²»»á¼õÉÙ±àÒ룬Ôö¼ÓÔËÐÐЧÂÊ¡£
2. ÍƼö¸úJQuery½áºÏ£¬NND£¬ÕâѾÕæµÄºÜÇ¿´ó...Èç¹ûÄã¸úÎÒÒ»ÑùÊÇjsС°×£¬ÓÖÏëNBÒ»°ÑŪ¸öAJAXʲôµÄ£¬ÓÃJQuery°Ñ¡£¡£¡£Õ⺢×Ó°üÄãÂú ......
¾³£ÐèÒªÔÚÊý¾Ý¿âÓëExeclÖ®¼ä»¥µ¼Êý¾Ý¡£netʱ´ú£¬ADO.NET¿ÉÒÔʹÓÃʹÓÃMicrosoft.Jet.OleDb·ÃÎÊ·ÃÎÊExcel£¬ÍøÉÏÒѾÓкܶàÀàËƵÄ×ÊÔ´£¬×îµäÐÍÒ²ÊÇ×î¼òµ¥µÄ¿ÉÄÜÈçÏ£º£¨asp.net»·¾³£©
// Á¬½Ó×Ö·û´®
......