Asp.netÖеÄAJAX¿Ø¼þ
Accordion¿Ø¼þʱµÄ³£ÓÃÊôÐÔ±êÇ©
ÊôÐÔ±êÇ©Ãû Ãè¡¡¡¡Êö
SelectedIndex ¸Ã¿Ø¼þ³õ´Î¼ÓÔØʱչ¿ªµÄAccordionPaneÃæ°åµÄË÷ÒýÖµ
HeaderCssClass ¸ÃAccordionÖаüº¬µÄËùÓÐAccordionPaneÃæ°åµÄ±êÌâÇøÓòËùÓ¦ÓõÄCSS Class
ContentCssClass ¸ÃAccordionÖаüº¬µÄËùÓÐAccordionPaneÃæ°åµÄÄÚÈÝÇøÓòËùÓ¦ÓõÄCSS Class
AutoSize ÔÚÕ¹¿ª¾ßÓв»Í¬¸ß¶ÈµÄAccordionPaneÃæ°åʱ£¬¸ÃAccordionµÄ×ܸ߶ȵı仯·½Ê½¡£¿ÉÑ¡ÈçÏÂ3¸öÖµ£º
r None£º¸ÃAccordion½«Ëæ×ŵ±Ç°Õ¹¿ªµÄAccordionPaneÃæ°åµÄ¸ß¶È×ÔÓÉÉ쳤/Ëõ¶Ì
r Limit£º¸ÃAccordion½«Ëæ×ŵ±Ç°Õ¹¿ªµÄAccordionPaneÃæ°åµÄ¸ß¶È×ÔÓÉÉ쳤/Ëõ¶Ì£¬²»¹ý×î¸ß²»»á³¬¹ýAccordionµÄHeightÊôÐÔÉ趨ֵ¡£ÈôÊÇÆäÄÚÈݸ߶ȳ¬¹ýÁËHeightÊôÐÔÉ趨ֵ£¬Ôò½«×Ô¶¯ÏÔʾ¹ö¶¯Ìõ
r Fill£º¸ÃAccordionµÄ¸ß¶È½«¹Ì¶¨ÎªHeightÊôÐÔµÄÉ趨ֵ£¬²»Ë浱ǰչ¿ªµÄ²»Í¬¸ß¶ÈµÄAccordionPaneÃæ°å¶ø±ä»¯¡£ÈôÊÇij¸öAccordionPaneµÄÄÚÈݸ߶ȳ¬¹ýÁËHeightÊôÐÔÉ趨ֵ£¬Ôò½«×Ô¶¯ÏÔʾ¹ö¶¯Ìõ
FadeTransitions Èô¸ÃÊôÐÔÖµÉèÖÃΪtrue£¬ÔòÔÚÇл»µ±Ç°Õ¹¿ªµÄAccordionPaneÃæ°åʱ£¬½«´øÓеÈëµ³öЧ¹û
TransitionDuration Õ¹¿ª/ÕÛµþÒ»¸öAccordionPaneÃæ°åµÄ¹ý³ÌËù»¨·ÑµÄʱ¼ä£¬µ¥Î»ÎªºÁÃë
FramesPerSecond ²¥·ÅÕ¹¿ª/ÕÛµþAccordionPaneÃæ°å¶¯»µÄÿÃëÖÓÖ¡Êý
DataSourceID Ò³ÃæÖÐij¸öDataSource¿Ø¼þµÄID£¬ÓÃÓÚͨ¹ýÊý¾Ý°ó¶¨×Ô¶¯Éú³ÉAccordionPaneÃæ°å
<Panes> ¸Ã±êÇ©ÄÚ½«°üº¬Ò»ÏµÁеÄ<ajaxToolkit:AccordionPane>±êÇ©£¬¼´Accordion- PaneµÄÉùÃ÷£¬ÓÃÀ´±íʾAccordionÖаüº¬µÄÃæ°å
<HeaderTemplate> ÔÚʹÓÃÊý¾Ý°ó¶¨¹¦ÄÜ×Ô¶¯Éú³ÉAccordionPaneÃæ°åʱ£¬¸Ã±êÇ©ÄÚ½«¶¨Òåÿ¸öÃæ°åµÄ±êÌâÇøÓòÖеÄÄÚÈÝÄ£°å
<ContentTemplate> ÔÚʹÓÃÊý¾Ý°ó¶¨¹¦ÄÜ×Ô¶¯Éú³ÉAccordionPaneÃæ°åʱ£¬¸Ã±êÇ©ÄÚ½«¶¨Òåÿ¸öÃæ°åµÄÕýÎÄÇøÓòÖеÄÄÚÈÝÄ£°å
AccordionPane¿Ø¼þʱµÄ³£ÓÃÊôÐÔ±êÇ©
ÊôÐÔ±êÇ©Ãû Ãè¡¡¡¡Êö
HeaderCssClass ¸ÃAccordionPaneÃæ°åµÄ±êÌâÇøÓòËùÓ¦ÓõÄCSS Class£¬½«¸²¸ÇÉùÃ÷ÔÚAccordionÖеÄͬÃûÊôÐÔ
ContentCssClass ¸ÃAccordionPaneÃæ°åµÄÄÚÈÝÇøÓòËùÓ¦ÓõÄCSS Class£¬½«¸²¸ÇÉùÃ÷ÔÚAccordionÖеÄͬÃûÊôÐÔ
<Header> ¸Ã±êÇ©ÄÚ½«¶¨Òå´ËAccordionPane±êÌâÇøÓòÖеÄÄÚÈÝ
<Content> ¸Ã±êÇ©ÄÚ½«¶¨Òå´ËAccordionPaneÕýÎÄÇøÓòÖеÄÄÚÈÝ
AlwaysVisibleControl¿Ø¼þʱµÄ³£ÓÃÊôÐÔ±êÇ©(¿Ø¼þÊʺÏ×ö¹ã¸æÌõ^_^)
TargetControlID – ¿Ø¼þµÄID
Horiz
Ïà¹ØÎĵµ£º
http://www.cnblogs.com/wyforumid/archive/2008/05/14/1196155.html
Ê×ÏȶÔÒÔÉϵÄÔ´´Õß˵¶Ô²»ÆðÏ£¬Î´¾Í¬Òâ¾Í¸ÄÁËËûµÄÔ´Â룬»¹°Ñ¸ÄºóµÄÔ´Âë·¢³öÀ´¡£
Ö÷Òª¸ÄµÄµØ·½¾ÍÊǵØÖ·À¸ÀïµÄ¶«¶«ÁË£¬ÔÎÄ¿ÉÒÔ¿´ÒÔÉϵģ¬ÎÒÌùÉÏ×Ô¼º¸ÄºóµÄÔ´Âë°É
Default.aspxÎļþ
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="D ......
using System.Security.Cryptography;
using System.IO;
using System.text;
/// <summary>
/// ¼ÓÃÜ
/// </summary>
/// <param name="str"> ......
Ò»¡¢´´½¨Îļþ¼Ð
#region ´´½¨Îļþ¼Ð
/// <summary>
/// Self_Function:´´½¨Îļþ¼Ð
/// </summary>
/// <param name="path">´´½¨Îļþ¼ÐµÄ·¾¶</param>
/// <param name="noyes">Òþ²ØÎ ......
½ñÌìÓöµ½ÁËÒ»¸öÎÊÌ⣬JS²»Äܸù¾ÝAjax·µ»ØµÄDataTable¶¯Ì¬Éú³Étable,¸ñʽÈçÏ£º
[Ajax.AjaxMethod()]
public DataTable GetDataTable(string tablename)
{
DataTable Table=new DataTable();
  ......
ÔÚÔçÆÚµÄASP.NET¿ò¼ÜÖУ¬Èç¹ûÄã·ÅÖÃÒ»¸ö¿Ø¼þÔÚÒ»¸öÈÝÆ÷ÖУ¬ÈçGridViewÄ£°åÁС¢µÇ¼ģ°å¡¢ÆäËü£¬ÔÚÔËÐÐʱÕâЩ¿Ø¼þµÄID½«±»Ìæ»»ÓÉASP.NET×ÔÉí²úÉúµÄËæ»úΨһID¡£
Ϊ¿ª·¢ÕßÌṩ·þÎñ·½·ÃÎʿؼþµÄPage.FindControl("controlid")ÒÔ¼°JavaScriptÖÐʹÓà µÄdocument ......