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.
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.
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
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