Using DotNetNuke RadAjaxManager to update a UserControl from a separate Module

1 posts, 0 answers
  1. David
    David avatar
    4 posts
    Member since:
    Aug 2012

    Posted 18 Jan 2013 Link to this post

    I've got a DNN application which has a "navigation bar" UserControl at the bottom of the page. There's a label inside a LinkButton on the bar that shows information about the current user's Shopping Cart.

                <asp:LinkButton ID="ShoppingCartLink" runat="server" CssClass="dummy" OnClick="ShoppingCartButton_Click"
                    Visible='<%# CurrentUserInRoles(Roles.Reseller, Roles.Customer)  %>'>
                    <asp:Image ID="ShoppingCartButton" runat="server" ImageUrl="~/TelerikSkins/Growll/Common/Icon_Cart.png" /> 
                    <asp:Label ID="ShoppingCartLabel" ForeColor="White" runat="server" OnPreRender="GetShoppingCartInfoText" />

    Now, in addition to that control, I have a module added on the same page which is defined in a separate code file, which allows the user to add a product to their Shopping Cart when a button is clicked.


    asp:Button ID="AddToCart" runat="server" Text="AddToCart" ClientIDMode="Static" OnClick="AddToCart_click" />

    AddToCart_click makes a service call which adds the product to their cart in the database.

    How would I use DNN's built-in RadAjaxManager to update the NavBar as well when this is clicked?

    Remember, the NavBar is outside of this module, so I won't be able to add AjaxSettings programmatically as described here:
Back to Top