Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Using ASP.NET 2.0 Ajax Toolkit with DNNUsing ASP.NET 2.0 Ajax Toolkit with DNN
Previous
 
Next
New Post
5/13/2008 1:10 PM
 

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 1:28 PM
 

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
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
5/13/2008 11:26 PM
 

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 10:30 AM
 

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
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Using ASP.NET 2.0 Ajax Toolkit with DNNUsing ASP.NET 2.0 Ajax Toolkit with DNN


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out