We can create an atlas web site once we have atlas installed. But how about use atlas in our Web Project?

 

1.      Add reference for Microsoft.Web.Atlas.dll.

      Copy Microsoft.Web.Atlas.dll to \bin, add a reference.

2.      Modify the web.config:

a)     add a <microsoft.web> section

        <configSections>

            <sectionGroup name="microsoft.web" type="Microsoft.Web.Configuration.MicrosoftWebSectionGroup">

             ection name="converters" type="Microsoft.Web.Configuration.ConvertersSection"/>

          </sectionGroup>

  </configSections>

   

   <!--

      The microsoft.web section defines items required for the Atlas framework.

 -->

      <microsoft.web>

        <converters>

          <add type="Microsoft.Web.Script.Serialization.Converters.DataSetConverter"/>

          <add type="Microsoft.Web.Script.Serialization.Converters.DataRowConverter"/>

          <add type="Microsoft.Web.Script.Serialization.Converters.DataTableConverter"/>

        </converters>

  </microsoft.web>

b)     change <pages>, <httpHandlers>, and <httpModules> section under <system.web>:

    <pages>

      <controls>

        <add namespace="Microsoft.Web.UI" assembly="Microsoft.Web.Atlas" tagPrefix="atlas"/>

        <add namespace="Microsoft.Web.UI.Controls" assembly="Microsoft.Web.Atlas" tagPrefix="atlas"/>

      </controls>

    </pages>

 

        <httpHandlers>

              <remove verb="*" path="*.asmx"/>

                  <add verb="*" path="*.asmx" type="Microsoft.Web.Services.ScriptHandlerFactory" validate="false"/>

         </httpHandlers>

         <httpModules>

             <add name="ScriptModule" type="Microsoft.Web.Services.ScriptModule"/>

         </httpModules>

 

3.      Add Atlas ScriptLibrary:

Include the full folder into your project.

 

It’s quite easy to use Atlas framework in our web projects.

相关文章:

  • 2021-04-21
  • 2021-11-14
  • 2021-10-25
  • 2022-12-23
  • 2021-12-25
  • 2021-12-30
  • 2021-09-27
  • 2022-02-27
猜你喜欢
  • 2022-12-23
  • 2021-09-23
  • 2017-12-18
  • 2021-11-30
  • 2021-11-11
  • 2021-07-02
  • 2021-09-29
相关资源
相似解决方案