W
Winshent
How do you update a user control after a button click event.
I have a simple shopping basket user control. If a customer updates
their basket, then user control should reflect the number of items and
value of the basket.
My code for the basket control is as follows:
'###################################################
Namespace Web.controls.User
Public Class Header
Inherits System.Web.UI.UserControl
Protected WithEvents lblBasket As System.Web.UI.WebControls.Label
Private Sub Page_Load
SetControls()
End Sub
Public Sub SetControls()
'code to output the basket info to lblBasket
End Sub
End Class
End Namespace
'###################################################
Surely this must be an easy task?
Thanks, Vincent
I have a simple shopping basket user control. If a customer updates
their basket, then user control should reflect the number of items and
value of the basket.
My code for the basket control is as follows:
'###################################################
Namespace Web.controls.User
Public Class Header
Inherits System.Web.UI.UserControl
Protected WithEvents lblBasket As System.Web.UI.WebControls.Label
Private Sub Page_Load
SetControls()
End Sub
Public Sub SetControls()
'code to output the basket info to lblBasket
End Sub
End Class
End Namespace
'###################################################
Surely this must be an easy task?
Thanks, Vincent