Hi,
I'm working on a webproject where I have several different user controls
loaded on a WebForm.
A problem arises when I in one webcontrol makes a change that should be
picked up by another user control.
For example a webshop. I have a datagrid of products in the shopping
cart in one user control. In another I have an overview of the shopping
cart (lists the products and a shows an order total).
When I remove a product from my datagrid I want the overview to reflect
the changes. The only solution I could think of was to do a
Server.Transfer() in the postback to "reload" the page, but it sounds to
me like a complete waste of resources to load the page twice for a
single postback.
Does anyone have any tips on how I could do it differently?
My shopping cart overview does not have an if(!IsPostBack) clause.
Re: Reload user control? ... The thing is that the other user control already has been added when the other one has parsed its postback... ... In another I have an overview of the shopping cart. ... When I remove a product from my datagrid I want the overview to reflect the changes. ... The only solution I could think of was to do a Server.Transferin the postback to "reload" the page, but it sounds to me like a complete waste of resources to load the page twice for a single postback.... (microsoft.public.dotnet.framework.aspnet)
How to load different user control - Call made from control being replaced ... I need to replace a user control on a page with a different user control. ... here's the unique scenario I'm working with now: The main (parent)... Now in the shoppingcart control a user clicked on ... the shopping cart control.... (microsoft.public.dotnet.framework.aspnet)
User Control Not Updating ... Working on a shopping cart app.... I've got a user control that appears on ... (microsoft.public.dotnet.framework.aspnet)
IPostBackDataHandler not working properly with DataGrid ... IPostBackDataHandler when it is placed inside a datagrid.... I have created a user control containing 1 TextBox ...public class MyUserControl: System.Web.UI.UserControl, ...private void Page_Load ... (microsoft.public.dotnet.framework.aspnet.datagridcontrol)