Login  
Search All Forums
Dart Home | PowerWEB LiveControls for ASP.NET | Custom Development Reply | PowerWEB LiveControls for ASP.NET Topics | Forums   
AuthorForum: PowerWEB LiveControls for ASP.NET
Topic: LiveRadioButtonList disappears
nthnprmn

From: Rome, GA USA
Posts: 3
Member Since: 08/24/06
posted March 5, 2007 5:10 PM

I'm using version 1.6.0.0 of the PowerWEB LiveControls in a new ASCX (User Control) project with ASP.NET/.NET FW 1.1 with SP1. During testing, I've experienced an unexpected phenomena with the LiveRadioButtonList control disappearing. I have absolutely no code that references or sets the Visible property of the LiveRadioButtonList control.

In addition to the LiveRadioButtonList control, I have three core LiveControls that are utilized when the problem occurs: LiveListBox, LiveButton, and a LiveDropDownList. These three controls are contained within a LivePanel whose Visible property is set to True or False to control the visibility of the three core controls as a group.

The LiveDropDownList is populated with Text/Value pairs of "1", "2", "3", "4", and "5". The LiveListBox is initially empty. When I click on the LiveButton the first time, the currently selected ListItem in the LiveDropDownList is inserted into the LiveListBox if it is not currently in the LiveListBox. The LiveRadioButtonList continues to be visible at this point. The second and subsequent times I select a value from the LiveDropDownList and click the LiveButton to insert the selected ListItem into the LiveListBox, the LiveRadioButtonList disappears. It reappears when I select another item in the LiveDropDownList, but then disappears again when I click the LiveButton to insert the selected ListItem into the LiveListBox.

Here is the click event code for the LiveButton:
  Private Sub lbtnRemoveFromInList_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lbtnRemoveFromInList.Click
    Dim itemTemp As System.Web.UI.WebControls.ListItem = llbInList.SelectedItem
    llbInList.Items.Remove(itemTemp)
    If llbInList.Items.Count = 0 Then
      If lbtnRemoveFromInList.Enabled = True Then
        lbtnRemoveFromInList.Enabled = False
      End If
    End If
  End Sub

Is this a bug (I think so), or a side-effect of something I'm doing wrong?


nthnprmn

From: Rome, GA USA
Posts: 3
Member Since: 08/24/06
posted March 5, 2007 5:14 PM

Whoops, I posted the code for another LiveButton's click event. Here's the code for the LiveButton that inserts the ListItem into the LiveListBox:

  Private Sub lbtnAddToInList_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lbtnAddToInList.Click
    Dim itemTemp As System.Web.UI.WebControls.ListItem = lddlInListLookUp.SelectedItem
    If Not llbInList.Items.Contains(itemTemp) Then
      llbInList.Items.Add(itemTemp)
    End If
    If llbInList.Items.Count > 0 Then
      If lbtnRemoveFromInList.Enabled = False Then
        lbtnRemoveFromInList.Enabled = True
      End If
    End If
  End Sub

K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 6, 2007 11:22 AM

Hi,
The best way for us to handle this is for you to send in a webform that behaves in the way you describe.

Please make sure the webform is as simple and streamlined as possible, while still showing the problem.

Please zip it up and send it to support@dart.com, referencing this thread.

Thanks,
-ken
Reply | PowerWEB LiveControls for ASP.NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX