Drag and Drop ASP.NET 2.0 Web Parts in Firefox with ATLAS
This Article is for the users who are still using ATLAS and have not yet moved to AJAX. The known issue in ATLAS is that there is no direct drag and drop support for FireFox and Netscape Browsers, in this Article I have explained how you can make it possible for Firefox browser.
To add this functionality to your existing pages, do the following:
1. Copy the "Atlas" run-time assembly (Microsoft.Web.Atlas.dll) from its installation folder to the application's Bin folder.
2. Copy these elements as children of the
<!-- ASP.NET Atlas support-->
<configSections>
<sectionGroup name="microsoft.web" type="Microsoft.Web.Configuration.MicrosoftWebSectionGroup">
<section name="converters" type="Microsoft.Web.Configuration.ConvertersSection"/>
</sectionGroup>
</configSections>
<!-- 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>
3. Copy these elements as children of the <system.web> element:
<!-- Atlas support -->
<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>
<tagMapping>
<add tagType="System.Web.UI.WebControls.WebParts.WebPartManager"
mappedTagType="Microsoft.Web.UI.Controls.WebParts.WebPartManager"/>
<add tagType="System.Web.UI.WebControls.WebParts.WebPartZone"
mappedTagType="Microsoft.Web.UI.Controls.WebParts.WebPartZone"/>
</tagMapping>
</pages>
4. <!-- ASMX is mapped to a new handler so that proxy javascripts can also be served. -->
<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>
5. Add the Atlas ScriptManager control to the page:
<atlas:ScriptManager ID="ScriptManager1" runat="server" />

No comments:
Post a Comment