凡事从积极的态度做起
记述技术(Web/BI/biztalk infopath/sharepoint)、人、事

SharePoint中使用 AjaxControlToolkit FAQ总结

星期三, 19 三月 2008 04:39 by cleo
  • 到哪里下载下载安装
  •  

  • AjaxControlToolkit 安装在SharePoint
    •  
      1. Download
        download the actual version from http://www.codeplex.com/AtlasControlToolkit (my dll-Version is 1.0.10920.30586). I unzipped the files to C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\AjaxControlToolkit

      2. Copy dll to virtual directory
        Delete dll from GAC if you allready have installed it there.
        If you run your WSS-Site on port 81 copy all files and directories from C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\AjaxControlToolkit\SampleWebSite\Bin to C:\Inetpub\wwwroot\wss\VirtualDirectories\81\_app_bin

      3. Add AjaxToolKit-dll to SafeControls in web.config
        Open C:\Inetpub\wwwroot\wss\VirtualDirectories\81\web.config.
        Add the AjaxToolKit-dll as Safe-Control. Your AJAX-part should look like this:
        <configuration>
            ...
            <SharePoint>
                ...
                <SafeControls>
                    ...
                    <SafeControl Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TypeName="*" Safe="True" />
              <SafeControl Assembly="AjaxControlToolkit, Version=1.0.10920.30586, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" Namespace="AjaxControlToolkit" TypeName="*" Safe="True" />
                </SafeControls>

      4. Add AjaxToolKit-dll to controls in web.config
        Open C:\Inetpub\wwwroot\wss\VirtualDirectories\81\web.config.
        Your AJAX-part should look like this:
        <system.web>
            ...
            <pages ...>
                ...
                <controls>
                    ...
                    <add tagPrefix="ajaxToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>
                </controls>
            </pages>

      5. Add ScriptManager to your default.master
        Instead of <asp:ScriptManager .../> add the ToolkitScriptManager to your default.master.
        <form runat="server" onsubmit="return _spFormOnSubmitWrapper();">
        <WebPartPages:SPWebPartManager id="m" runat="Server"/>
        <ajaxToolkit:ToolkitScriptManager ID="ScriptManager1" runat="server" />

      6. iisreset

      7. Open your WSS-Site and you should find somewhere at the bottom of the page:
        <!--
        Sys.Application.initialize();
        // -->
        </script>
        </form>

    • take the following steps if you have allready AJAX-fied your WSS-Site:

      This worked with me

  • QuickPart好像对AjaxControlToolkit 支持不好(我没有成功,可能是我使用不对),怎么办?
  • 如何讓 AjaxControlToolkit 中 Calendar 顯示中文

      您可以這樣做:

      1. 上網下載最新版的Ajax Control Toolkit, 換掉工具箱中的舊控制項, 重新為網頁加入Calendar控制項, 並設定好Calendar控制項

      2. 在網頁的Page標籤加入UICulture="auto" 設定

      3. 為ScriptManager加入以下的設定:

      EnableScriptGlobalization="true" EnableScriptLocalization="true"

      Done!

  • 第一个打分

    • Currently 0/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5
    Tags:   ,
    Categories:   Office/SharePoint | Ajax
    Actions:   E-mail | del.icio.us | Permalink | 评论 (0) | Comment RSSRSS comment feed

    添加评论


    (将显示你的Gravatar图标)  

      Country flag

    biuquote
    • 评论
    • 在线预览
    Loading



     
    酷站目录