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  |  

$4.95 Windows Hosting at Webhost4life.com
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
 


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.

 


ASP.NET Web Hosting for $3.95
3 Month FREE ASP.NET Hosting! FREE Setup! DNN Support! FREE Domain Name! FREE Components! Host multiple websites on 1 plan! 30 Days Money Back Guarantee!
www.dailyrazor.com
Cestus Websites
DotNetNuke websites en services in Nederland. Cestus Websites levert websites, projectmanagent, skins, modules, training en gespecialiseerde hosting op basis van het CMS DotNetNuke.
www.dotnetnuke-websites.nl
FREE Skins, Modules & Control Panel!
Choose how much you want to pay on our Skins, Modules, Containers and Control Panel - Starting from FREE!
www.dnngroup.com

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