Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
FCKeditor Project
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Using ASP.NET 2.0 Ajax Toolkit with DNN
Previous Previous
 
Next Next
New Post 5/13/2008 10:10 AM
Unresolved
User is offline r_honey
105 posts
9th Ranked


Using ASP.NET 2.0 Ajax Toolkit with DNN 

I want to use ASP.NET Ajax toolkit, in my DNN modules. I installed ASP.NET Ajax extensions, and then put the AjaxControlToolkit.dll in the "Bin" folder.

Then, I used Ajax's TabControl on my module's View control. I get an error saying "There cannot be more than 1 instance of ToolkitScriptManager on a Page".

However, in my Control, I only have one instance of ToolkitScriptManager. Removing that instance does not render the TabControl on the page, but there is no error either.

Can you tell me precise steps for using Ajax Toolkit with DNN???

 
New Post 5/13/2008 10:28 AM
User is offline Brian Dukes
359 posts
www.engagesoftware.com
8th Ranked


Re: Using ASP.NET 2.0 Ajax Toolkit with DNN 

DNN handles the injection of script managers so that you avoid the issue of having multiple modules putting the control on the page multiple times.  In your control's Init event, call DotNetNuke.Framework.AJAX.RegisterScriptManager to get a script manager put on the page for you.

Hope that helps,


Brian Dukes
Engage Software
St. Louis, MO
314.966.4000

The leading provider of DotNetNuke support, training and custom module development.
 
New Post 5/13/2008 8:26 PM
User is offline r_honey
105 posts
9th Ranked


Re: Using ASP.NET 2.0 Ajax Toolkit with DNN 

I am using the following markup to get a TabPanel inside my control:

<ajax:TabContainer runat="server" ID="tabContainer" Height="138px" ActiveTabIndex="0">
    <ajax:TabPanel runat="server" ID="Panel1" HeaderText="Signature and Bio">
        <ContentTemplate>
            <asp:UpdatePanel ID="updatePanel1" runat="server">
                <ContentTemplate>
                    <table>
                        <tr>
                            <td>
                                Signature:</td>
                            <td>
                                <asp:TextBox ID="signatureText" runat="server" /></td>
                        </tr>
                        <tr>
                            <td>
                                Bio:</td>
                            <td>
                                <asp:TextBox ID="bioText" runat="server" /></td>
                        </tr>
                    </table>
                    <asp:Button ID="Button3" runat="Server" Text="Save" />
                    <br /><br />
                    Hit Save to cause a postback from an update panel inside the tab panel.<br />
                </ContentTemplate>
            </asp:UpdatePanel>
        </ContentTemplate>
    </ajax:TabPanel>

    <ajax:TabPanel runat="server" ID="Panel3" HeaderText="Email" >
        <ContentTemplate>
            Email: <asp:TextBox ID="emailText" runat="server" />
            <br /><br />
            <asp:Button ID="Button1" runat="server" Text="Save" />
            <br /><br />
            Hit Save to cause a full postback.
        </ContentTemplate>
    </ajax:TabPanel>

    <ajax:TabPanel runat="server" ID="Panel2" HeaderText="Controls">
        <ContentTemplate>
            <div>Controls authored by Toolkit User (read-only - demo purposes):</div>
            <ul>
                <li>Calendar</li>
                <li>MaskedEdit</li>
                <li>Accordion</li>
                <li>Calendar</li>
                <li>Calendar</li>
            </ul>
            <br />
        </ContentTemplate>
    </ajax:TabPanel>
</ajax:TabContainer>

Everything else is fine, just that the headers of the control are not being rendered properly, as shown below:

 

What could be the possible reason???

 
New Post 5/14/2008 7:30 AM
User is offline Brian Dukes
359 posts
www.engagesoftware.com
8th Ranked


Re: Using ASP.NET 2.0 Ajax Toolkit with DNN 

This looks like your site might not be using an XHTML doctype.  The AJAX Control Toolkit requires XHTML doctypes to render correctly.  We have an article in our support wiki on how to do that here: www.engagemodules.com/Modules/EngagePublish/PublishDocumentation/tabid/66/Default.aspx.

Hope it helps,


Brian Dukes
Engage Software
St. Louis, MO
314.966.4000

The leading provider of DotNetNuke support, training and custom module development.
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Using ASP.NET 2.0 Ajax Toolkit with DNN
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DNNCovered.com - Your Offshore Dotnetnuke Partner
Dnncovered.com is the only Dotnetnuke offshore outsourcing center specializes in DNN skinning and module development with lowest pricing and quality service. Our staff is dedicated to websites based on DNN and our graphic designers are creative and imaginative well enough to provide customers the complete set of skinning solutions and packages
www.dnncovered.com
PointClick.Net DNN Solutions
DotNetNuke Hosting Platform for Business and personal use.
PointClick.Net Hosted Solutions
Advanced Web Portals by Infoscaler
Infoscaler is a California based company that provides advanced Web Portals, E-commerce Sites, Database Applications and Intranet Solutions on the DotNetNuke and Microsoft.NET platforms.
www.infoscaler.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP