Public Property Update Mode() As Update Panel Update Mode Get Return Me. Update Mode End Get Set(By Val value As Update Panel Update Mode) Me. Update Mode = value End Set End Property Public Sub Update() Me. Update() End Sub You can now can add the user controls to an ASP.
This enables you to set properties of the inner Update Panel control from outside the user control, as shown in the following example.
One user control uses a Grid View control to display a list of employee names and to support selecting, paging, and sorting.
You can then make sure that the Enable Partial Rendering property has been set to before you add an Update Panel control to the user control.
For an example that shows how to do this in a Web server control, see Using the Update Panel Control with Data-Bound Controls.
Hi, using vb.net/vs 2003/sql server 2000 Working on a shopping cart app.
I've got a user control that appears on every page to give a summary of the users shopping cart, eg You have 12 items in your cart, the total is 123.45, this is populated with a stored procedure that just returns itemcount and itemtotal as output params. On the shopping cart page itself I use a datagrid to list out the users cart contents and allow him to update quantity or delete an item from the cart(set quantity to 0).
If the user views a page of the Grid View control that does not include the selected employee, the employee-detail user control is not displayed and the update panel is not updated.
The first step in creating the user controls that refresh independently is to include an Update Panel control in the user control, as shown in the following example.
The update panel is refreshed when an employee is selected.
It is also refreshed when the user moves away from the Grid View control page that displays the selected employee.
I'm very new to - obviously :-) Cheers, Jon Hi, Jon, If you have a reference to the usercontrol and you can access this reference in the method that updates the cart then use this reference to call some method that will update the usercontrol.