Hi, I am using a database query to setup a series of dynamic sliders within a panel. In the PreRender, the following code successfully generates the sliders:
The problem is that the event, LocationSlider_ValueChanged never gets triggered:
Why? How can I capture the valuechanged event?
Thanks.
For Each LocRec In LocRecs Dim LocationSlider As New RadSlider() Dim LocationLabel As New Literal LocationLabel.Text = "<br />" & LocRec.LocationName & "<br />" LocationSlider.ID = "LocationSlider" & CStr(LocRec.LocationID) LocationSlider.Width = 300 LocationSlider.AutoPostBack = True LocationSlider.MinimumValue = 0 LocationSlider.MaximumValue = 1000 LocationSlider.OnClientSlide = "OnClientSlide" LocationSlider.OnClientValueChanging = "OnClientValueChanging" LocationSlider.AnimationDuration = 400 AddHandler LocationSlider.ValueChanged, AddressOf LocationSlider_ValueChanged Panel1.Controls.Add(LocationLabel) Panel1.Controls.Add(LocationSlider) Next The problem is that the event, LocationSlider_ValueChanged never gets triggered:
Public Sub LocationSlider_ValueChanged(ByVal sender As Object, ByVal e As System.EventArgs) 'Write slider settings to the database 'This routine never gets executed End Sub Why? How can I capture the valuechanged event?
Thanks.