AjaxµÄ ModalPopupExtender¿Ø¼þ
¸Ã¿Ø¼þ¿ÉÒÔʵÏÖÔÚÒ³ÃæÖе¯³öÒ»¸ö´°¿Ú£¬Õâ¸ö´°¿Ú²»ÊÇÒ»¸öеÄä¯ÀÀÆ÷´°¿Ú£¬¶øÊÇÏâǶÔÚÒ³ÃæÖеÄÒ»¸ö²ã¡£
1 ´´½¨Ò»¸ölinkbutton£¬ÓÃÓÚµã»÷´ò¿ª´°¿Ú¡£
2 ÍÏÈëÒ»¸öpanel£¬Õâ¸ö¾ÍÊÇÎÒÃÇÒªµ¯³öµÄ´°¿Ú¡£ËüÒ²¿ÉÒÔÊÇÁ½¸öǶÌ×µÄpanel¡£Àý³ÌÉÏÊÇÕâÑù×öµÄ£¬»¹ÊÇûÓÐÃ÷°×ΪʲôÕâô×ö¡£
3 ÍÏÈëÒ»¸öModalPopupExtender¿Ø¼þ£¬ÔڸÿؼþµÄtargetcontrlidÊôÐÔÖÐÖ¸¶¨ÎÒÃÇÓÃÓÚ´ò¿ª´°¿ÚµÄ¿Ø¼þ£¬ÕâÀïÎÒÃÇÊÇlinkbutton¡£
4 È»ºóÎÒÃǾͿÉÒÔ·¢ÏÖlinkbuttonµÄÊôÐÔÖУ¬Ôö¼ÓÁËÒ»¸öextendersÊôÐÔĿ¼¡£ÎÒÃÇÔÚÕâÀïÉèÖõ¯³ö´°¿ÚµÄÊôÐÔ
5 ÊôÐÔ£º
Dropshadow£ºÊÇ·ñÏÔʾÒõÓ°
Dynamic£º¹²ÓÐ4¸öÊôÐÔÓÃÓÚÉèÖÃwebservic£¬ÎÒÃÇÕâÀïÔÝʱ²»Óá£
Okcontrolid£ºÖ¸¶¨È·¶¨°´Å¥
Cancelcontrolid£ºÖ¸¶¨È¡Ïû°´Å¥
Onokscript£ºÈ·¶¨Ê±Ö´ÐеÄjavascriptº¯Êý£¬Õâ¸öÒªÎÒÃÇ×Ô¼ºÔÚaspxÒ³ÃæÖÐд¡£
Oncancelscript£ºÈ¡ÏûʱִÐеÄjavascriptº¯Êý£¬Õâ¸öÒªÎÒÃÇ×Ô¼ºÔÚaspxÒ³ÃæÖÐд¡£
Ïà¹ØÎĵµ£º
¼ì²éǰ̨FCK×Ô¶¯Éú³ÉµÄJSº¯Êý.Ò»°ãΪWebForm_OnSubmit()
ÔÚºǫ́Ìá½»°´Å¥Àï¼ÓÈë¸Ãº¯Êý.ÁíÆä¸üÐÂFCKÊý¾Ý,´úÂëÈçÏÂ.
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "getFckValue", "WebForm_OnSubmit();", true); ......
function ScreenConvert()
{
var browser = new Browser1();
var objScreen = document.getElementById("ScreenOver");
if(!objScreen)
var objScreen = document.createElement("div");
var oS = objScreen.style;
objScreen.id = "ScreenOver";
oS.display = "bloc ......
AJAX¼ò½é
Ò»¡¢AJAXÊÇʲô
ÔÚ´«Í³µÄwebÓ¦ÓÃÖУ¬Óû§ÓëÓ¦ÓõÄÿһ´Î½»»¥£¬¶¼ÊÇÊ×ÏÈÓû§Í¨¹ýä¯ÀÀÆ÷Ïò·þÎñÆ÷¶Ë·¢ËÍÒ»¸ö
ÇëÇ󣬷þÎñÆ÷½âÎöÕâ¸öÇëÇ󣬽«ÏàÓ¦µÄÏìÓ¦ÐÅÏ¢·µ»Ø¸øä¯ÀÀÆ÷¡£ÔÚ·þÎñÆ÷¶ËÒµÎñÂß¼·Ç³£¸´ÔÓ»òÕßÐèÒªºÄʱ½Ï³¤µÄÇé¿öÏ£¬ä¯ÀÀÆ÷µÈ´ýË¢ÐÂʱ£¬Ò³Ãæ¾³£ÊÇһƬ¿Õ
°×£¬Óû§Ö»Äܱ»¶¯µÈ´ý·þÎñÆ÷¶ËÏìÓ¦Íê³É£¬ÔÚ´ËÆÚ¼ ......
SyntaxHighlighterÊÇÒ»¸ö´úÂë¸ßÁÁ²å¼þ£¬cnblogsµÄÆÀÂÛÒ²Óõ½ÁËSyntaxHighlighter¡£SyntaxHighlighterµÄÏêϸ½éÉÜ£¬Ô°×ÓÖÐÓкܶࡣÕâÀï¾Í²»½éÉÜÁË¡£
ʹÓÃJQµÄAjax
˵ÏÂÎÒÓöµ½µÄÎÊÌ⣬ÏÂÃæÊDzâÊÔÒ³Ãæ£º
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></ ......
1¡¢ÔÚ·þÎñ¶Ë¼Ó header("Cache-Control: no-cache, must-revalidate");
¡¡¡¡2¡¢ÔÚajax·¢ËÍÇëÇóǰ¼ÓÉÏ xmlHttpRequest.setRequestHeader("If-Modified-Since","0");
¡¡¡¡3¡¢ÔÚajax·¢ËÍÇëÇóǰ¼ÓÉÏ xmlHttpRequest.setRequestHeader("Cache-Control","no-cache");
¡¡¡¡4¡¢ÔÚ Ajax µÄ URL ²ÎÊýºó¼ÓÉÏ "?fresh=" + Math.rando ......