È·¶¨ ASP.NET AJAX ¹¦ÄÜÊÇ·ñ¿ÉÓà AJAXÊÇ·ñ°²×°
Private static readonly object ReflectionLock = new object();
Lock (ReflectionLock)
{
Type scriptManagerType =
Type.GetType(
"System.Web.UI.ScriptManager, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35",
false);
if (scriptManagerType != null)
// ASP.NET AJAX is installed.
else
// ASP.NET AJAX is not installed.
¼ì²éÊÇ·ñÒÑΪµ¥¸öÒ³ÆôÓà AJAX ¹¦ÄÜ
ScriptManager sm = ScriptManager.GetCurrent(Page)
if (sm == null)
{
// ASP.NET AJAX functionality is not enabled for the page.
}
else
{
// AJAX functionality is enabled for the page.
}
À´×Ô£ºhttp://msdn.microsoft.com/zh-cn/library/bb907614.aspx
ͬÑù£¬¿ÉÒÔͨ¹ý´Ë·½·¨£¬¶ÔÆäËüµÄ×é¼þ½øÐÐÅжϣ¬ÈçActiveReportµÄÅÐ¶Ï "DataDynamics.ActiveReports.Web.Handlers.CompiledReportHandler, ActiveReports.Web, Version=5.1.0.158, Culture=neutral, PublicKeyToken=cc4967777c49a3ff",
Õâ¸öÐÅÏ¢ÊÇ´ÓWebConfigÎļþÖеõ½µÄ¡££¨²»°²×°Ê±»á±¨´í¡£²é¿´ÏàÓ¦µÄ´íÎóÓï¾ä£©
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false" />
<add verb="*" path="*.rpx" type="DataDynamics.ActiveReports.Web.Handlers.RpxHandler, ActiveReports.Web, Version=5.1.0.158, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
Ïà¹ØÎĵµ£º
Ò»ÖÜÇ°£¬leaderÈÃÎÒдһ¸öÀàËưٶȵÄ×Ô¶¯Íê³É¹¦ÄÜ£¬ºÇºÇ£¬ÒòΪ¶Ôajax¼¼ÊõÕÆÎյIJ»ºÃ£¬ËùÒÔ¿àÄÕÁ˺ܾÃûÓÐд³öÀ´
¾¹ýÒ»ÖܵÄѧϰ£¬ÖÕÓÚд³öÁËÒ»¸öajax³ÌÐò£¬ÒÔºóµÄ¹¤×÷¾ÍºÃ×ö¶àÀ²
index.jsp
<html>
<head>
<style >
#child{
color: #333;
width:200px;
&nbs ......
MOOTOOLSÖеķ½·¨Ê¹ÓÃ
Core.js
º¯Êý: $extend ½«µÚ¶þ¸ö²ÎÊý¶ÔÏóµÄËùÓÐÊôÐÔ¸´ÖƵ½µÚÒ»¸ö²ÎÊý¶ÔÏóÖÐ.
º¯Êý: $merge ºÏ²¢Ò»×é¶ÔÏóÉú³ÉжÔÏó
º¯Êý: $each µü´úÊý×é(°üÀ¨·Ç³£¹æÊý×é,ÈçÓÉÄÚ½¨µÄgetElementsByTagName·½·¨·µ»ØµÄ¼¯ºÏ¶ÔÏó, arguments¶ÔÏó, »òOjbect¶ÔÏó)
º¯Êý: $pick ·µ»Ø² ......
½¡¿µ×´¿ö¼àÊӵij£ÓÃÊõÓ
ÇëÇó
ÏìÓ¦
ÐéÄâÓû§£ºÄ£Äâä¯ÀÀÆ÷ÏòWeb·þÎñÆ÷·¢ËÍÇëÇó²¢½ÓÊÕÏìÓ¦µÄÒ»¸ö½ø³Ì»òÏ̡߳£
ÏìӦʱ¼ä£ºä¯ÀÀÆ÷ÏòWeb·þÎñÆ÷Ìá½»Ò»¸öÇëÇóµ½ÊÕµ½ÏìÓ¦Ö®¼äµÄ¼ä¸ôʱ¼ä¡£
˼¿¼Ê±¼ä£ºä¯ÀÀÆ÷ÔÚÊÕµ½ÏìÓ¦ºóµ½Ìá½»ÏÂ
Ò»¸öÇëÇóÖ®¼äµÄ¼ä¸ôʱ¼ä¡£
ÇëÇó³É¹¦ÂÊ£ºWeb·þÎñÆ÷ÕýÈ·´¦ÀíµÄÇëÇóÊýÁ¿ºÍ½ÓÊÕµ½µÄÇëÇóÊýÁ¿µÄ±È¡ ......
foreach(Control con in this.Controls[1].Controls)
{
if(con is TextBox)
{
((TextBox)con).Text="";
}
}//Õâ¶Î´úÂëÖ´Ðгɹ¦£¬µ«ÎÒ²»Ã÷°×ÕâÀïµÄ1´úÂëʲô£¿
µ«ÊÇ» ......