Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

AjaxÖ®PopupControlÓ¦Óà °ïÖúÓû§ÊäÈëµÄÃæ°å

       PopupControlÀ©Õ¹Æ÷¿Ø¼þ¿ÉÒÔ¸½¼Óµ½ÈκοؼþÖ®ÉÏ£¬µ±Óû§µã»÷¸Ã¿Ø¼þʱ£¬½«µ¯³öÒ»¸öÔ¤ÏÈÖ¸¶¨ºÃµÄ¡¢ÏÔʾ¸½¼ÓÐÅÏ¢»òÓÃÀ´°ïÖúÓû§Ö´ÐÐijЩÉ趨µÄPanel¡£µ±¸Ã¿Ø¼þʧȥÊäÈë½¹µãÖ®ºó£¬Panel½«×Ô¶¯Ïûʧ£¬ÇÒÓû§ÔÚÆäÖнøÐеÄÅäÖý«±»É趨µ½À©Õ¹Æ÷µÄÄ¿±ê¿Ø¼þÖ®ÉÏ¡£
     ʵÀýͼƬ(ÔÝʱ²»»á²åÈëͼƬ)£º
      AjaxTestPopupControl.aspx
     <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AjaxTestPopupControl.aspx.cs"
Inherits="WebDemo.Ajax.AjaxTestPopupControl" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!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>
<mce:style type="text/css"><!--
/*Popup Control*/
.popupControl
{
background-color:White;
position:absolute;
visibility:hidden;
}

--></mce:style>
</head>
<body>
<!--
TargetControlID£º¸ÃÀ©Õ¹Æ÷Ä¿±ê¿Ø¼þµÄID£¬¼´Óû§Êó±êµã»÷Ö®ºóÏÔʾµ¯³öÃæ°åµÄ¿Ø¼þµÄID
PpoupControlID£º×÷Ϊµ¯³öÃæ°åµÄPanelµÄID
Position£ºµ¯³öÃæ°åÓëÄ¿±ê¿Ø¼þλÖõÄÏà¶Ô¹Øϵ£¬¿ÉÑ¡Bottom(µ×²¿)¡¢Center(ÖÐÐÄ)¡¢Left(×ó±ß)¡¢Right(ÓÒ±ß)»òTop(¶¥²¿)
OffsetX£º»ùÓÚPositionÉ趨£¬µ¯³öÃæ°åÓëÄ¿±ê¿Ø¼þÔÚX·½ÏòµÄ¶îÍâÆ«ÒÆÁ¿£¬µ¥Î»ÎªÏñËØ(px)
OffsetY£º»ùÓÚPositionÉ趨£¬µ¯³öÃæ°åÓëÄ¿±ê¿Ø¼þÔÚY·½ÏòµÄ¶îÍâÆ«ÒÆÁ¿£¬µ¥Î»ÎªÏñËØ(px)
CommitProperty£ºÄ¿±ê¿Ø¼þµÄÒ»¸öHTMLÊôÐÔ£¬ÀýÈçTextBoxµÄvalue¡¢LabelµÄinnerHTMLµÈ¡£Óû§ÔÚµ¯³öÃæ°åÄÚ×÷³öµÄÑ¡ÔñÖµ
½«Í¨¹ý¸ÃÀ©Õ¹Æ÷¿Ø¼þµÄCommit()·½·¨É趨µ½Ä¿±ê¿Ø¼þµÄ¸ÃÊôÐÔÉÏ¡£¸ÃÊôÐÔµÄĬÈÏÖµ»á×Ô¶¯Ñ¡ÔñÄ¿±ê¿Ø¼þµÄ
ĬÈÏÊôÐÔ
CommitScript£ºÔÚÉèÖÃÍòCommitPropertyÊôÐÔÖ®ºó£¬¸½¼


Ïà¹ØÎĵµ£º

AJAX±íµ¥Ìá½»·½·¨£¨JSON£©

AJAX±íµ¥Ìá½»·½·¨£¨JSON£©
1./*****JAVA**************************************************************/
JAVAÀàÖУº
 
/*****JAVA**************************************************************/
2./*****struts.xml**************************************************************/
struts.xmlÎļþÖУº ......

Ajax µ¯¶Ô»°³ö¿ò

        ±¾ÎĽ«Ê¹ÓÃAjaxToolkitÖеē PopupControlExtender £¬ DynamicPopulateExtender £¬ DragPanelExtender ”¿Ø¼þÀ´¹¹½¨Ò»¸öµ¯³ö¶Ô»°¿ò£¬¿ÉÒÔʵÏÖµ¯³ö¶Ô»°¿ò£¬¶Ô»°¿ò¿ÉÍ϶¯µÈ¹¦ÄÜ¡£±È½ÏÊʺÏ×öÿÈÕÒ»ÌùµÈЧ¹û
       Ê×ÏȽâÊÍÏ ......

VB.NET+AJAXËÑË÷½¨Ò鹦ÄܵÄʵÏÖ

IDE£ºVisual Web Developer 2008 Express Edition
Êý¾Ý¿â£ºAccess 2007
µ½http://www.asp.net/ajax/downloads/ÏÂÔØAJAX Control Toolkit£¬½«AjaxControlToolkit.dll¿½±´µ½ÏîÄ¿µÄbinĿ¼Ï£¬ÔÚ¹¤¾ßÀ¸ÖÐÒýÈë¡£
WebServiceµÄ´úÂ룺£¨aaa.asmx£©
Public Function GetCompletionList(ByVal prefixText As String, ByVal coun ......

ajax´´½¨¶ÔÏó

function createXMLHttpRequest(){     
if(window.ActiveXObject){     
        http = new ActiveXObject("Microsoft.XMLHTTP");     
        }else if(window.XMLHttpRequest){     
& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ