powered by simpleCommunicator - 2.0.49     © 2025 Programmizd 02
Форумы / SharePoint [игнор отключен] [закрыт для гостей] / Sharepoint & AjaxControlToolKit
2 сообщений из 2, страница 1 из 1
Sharepoint & AjaxControlToolKit
    #36543653
Фотография Drunechka
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Как сделать?

web.config
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
<SharePoint>
    ...
    <SafeControls>
       ...
       <SafeControl Assembly="AjaxControlToolkit, Version=3.0.31106.0, Culture=Neutral, PublicKeyToken=28f01b0e84b6d53e" Namespace="*" TypeName="*" Safe="True" />
       <SafeControl Assembly="System.Web.Ajax, Version=3.0.31106.0, Culture=Neutral, PublicKeyToken=28f01b0e84b6d53e" Namespace="*" TypeName="*" Safe="True" />
       ...
    </SafeControls>
    ...
</SharePoint>
<system.web>    
    ...
    <compilation batch="true" debug="true">
      <assemblies>
        <add assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
        <add assembly="AjaxControlToolkit, Version=3.0.31106.0, Culture=Neutral, PublicKeyToken=28f01b0e84b6d53e" />
        <add assembly="System.Web.Ajax, Version=3.0.31106.0, Culture=Neutral, PublicKeyToken=28f01b0e84b6d53e"/>
      </assemblies>
       ...
    <pages>
      <controls>
        <add tagPrefix="AjaxControlToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit, Version=3.0.31106.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" />
        <add tagPrefix="AjaxControlToolkit" namespace="System.Web.UI" assembly="System.Web.Ajax, Version=3.0.31106.0, Culture=Neutral, PublicKeyToken=28f01b0e84b6d53e"/>
      </controls>
    </pages>
    ...
</system.web>    


Сама страница:
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
...
<asp:Content ID="Content11" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    /*
    
        Ни один из этиз ScriptManager'ов не помогает
        
    <asp:ScriptManager ID="ScriptManager1" runat="server"/>
    <AjaxControlToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" /> - AjaxControlToolkit
    <AjaxControlToolkit:AjaxScriptManager ID="AjaxScriptManager1" runat="server" /> - System.Web.Ajax
    
    */
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:TextBox ID="NumberID" runat="server" Visible="true" Width="300" />
            <AjaxControlToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server"
                TargetControlID="NumberID" WatermarkText="Введите идент. номер" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>...

+ - + - + - + - + - + - +
Век живи, век учись!
...
Рейтинг: 0 / 0
Sharepoint & AjaxControlToolKit
    #36543684
Фотография Drunechka
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Drunechka,

Вопрос решен.

В web.config не хватало некоторых строк...
привожу полностью web.config:
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
<configuration>
  <configSections>
    <!-- Тест для Ajax на Sharepoint'e: НАЧАЛО -->
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
      </sectionGroup>
      <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
        <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere" />
        <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
        <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
      </sectionGroup>
    </sectionGroup>
    <!-- Тест для Ajax на Sharepoint'e: ОКОНЧАНИЕ -->
    ...
  </configSections>
  <SharePoint>
    ...
    <SafeControls>
      ...
      <!-- Тест для Ajax на Sharepoint'e: НАЧАЛО -->
      <SafeControl Assembly="AjaxControlToolkit, Version=3.0.31106.0, Culture=Neutral, PublicKeyToken=28f01b0e84b6d53e" Namespace="*" TypeName="*" Safe="True" />
      <SafeControl Assembly="System.Web.Ajax, Version=3.0.31106.0, Culture=Neutral, PublicKeyToken=28f01b0e84b6d53e" Namespace="*" TypeName="*" Safe="True" />
      <SafeControl Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TypeName="*" Safe="True" />
      <!-- Тест для Ajax на Sharepoint'e: ОКОНЧАНИЕ -->
    </SafeControls>
    ...
  </SharePoint>
  <system.web>
    ...
    <httpHandlers>
      ...
      <!-- Тест для Ajax на Sharepoint'e: НАЧАЛО -->
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
      <!-- Тест для Ajax на Sharepoint'e: ОКОНЧАНИЕ -->
    </httpHandlers>
    <customErrors mode="Off" />
    ...
    <httpModules>
      ...
      <!-- Тест для Ajax на Sharepoint'e: НАЧАЛО -->
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <!-- Тест для Ajax на Sharepoint'e: ОКОНЧАНИЕ -->
    </httpModules>
    ...
    <compilation batch="true" debug="true">
      <assemblies>
        ...
        <!-- Тест для Ajax на Sharepoint'e: НАЧАЛО -->
        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add assembly="AjaxControlToolkit, Version=3.0.31106.0, Culture=Neutral, PublicKeyToken=28f01b0e84b6d53e" />
        <add assembly="System.Web.Ajax, Version=3.0.31106.0, Culture=Neutral, PublicKeyToken=28f01b0e84b6d53e"/>
        <!-- Тест для Ajax на Sharepoint'e: ОКОНЧАНИЕ -->
      </assemblies>
      ...
    </compilation>
    <pages enableSessionState="false" enableViewState="true" enableViewStateMac="true" validateRequest="false" pageParserFilterType="Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" asyncTimeout="7">
      ...
      <controls>
        <!-- Тест для Ajax на Sharepoint'e: НАЧАЛО -->
        <add tagPrefix="AjaxControlToolkit" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add tagPrefix="AjaxControlToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit, Version=3.0.31106.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" />
        <add tagPrefix="AjaxControlToolkit" namespace="System.Web.UI" assembly="System.Web.Ajax, Version=3.0.31106.0, Culture=Neutral, PublicKeyToken=28f01b0e84b6d53e"/>
        <!-- Тест для Ajax на Sharepoint'e: ОКОНЧАНИЕ -->
      </controls>
    </pages>
    ...
  </system.web>
  ...
<!-- Тест для Ajax на Sharepoint'e: НАЧАЛО -->
  <system.web.extensions>
    <scripting>
      <!--<webServices>
        --><!-- Uncomment this line to enable the authentication service. Include requireSSL="true" if appropriate. --><!--
        --><!--
        <authenticationService enabled="true" requireSSL = "true|false"/>
      --><!--
        --><!-- Uncomment these lines to enable the profile service. To allow profile properties to be retrieved and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and writeAccessProperties attributes. --><!--
        --><!--
      <profileService enabled="true"
                      readAccessProperties="propertyname1,propertyname2"
                      writeAccessProperties="propertyname1,propertyname2" />
      --><!--
      </webServices>-->
      <!--
      <scriptResourceHandler enableCompression="true" enableCaching="true" />
      -->
    </scripting>
  </system.web.extensions>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules>
      <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    </modules>
    <handlers>
      <remove name="WebServiceHandlerFactory-Integrated" />
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode"
           type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </handlers>
  </system.webServer>
  <!-- Тест для Ajax на Sharepoint'e: ОКОНЧАНИЕ -->
</configuration>
...
Рейтинг: 0 / 0
2 сообщений из 2, страница 1 из 1
Форумы / SharePoint [игнор отключен] [закрыт для гостей] / Sharepoint & AjaxControlToolKit
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]