This is a migrated thread and some comments may be shown as answers.

Using DotNetNuke RadAjaxManager to update a UserControl from a separate Module

0 Answers 34 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 18 Jan 2013, 09:21 PM
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.

NavBar.ascx
            <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" />
            </asp:LinkButton>



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.

ProductConfiguration.ascx

<
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: http://www.telerik.com/help/aspnet-ajax/ajax-add-ajaxsettings-programmatically.html

No answers yet. Maybe you can help?

Tags
Ajax
Asked by
David
Top achievements
Rank 1
Share this question
or