| Dart Home | PowerWEB LiveControls for ASP.NET | Custom Development | Reply | PowerWEB LiveControls for ASP.NET Topics | Forums |
| Author | Forum: PowerWEB LiveControls for ASP.NET Topic: Error in LiveListbox |
| administrator weiner@parrotsoftware.com From: West Bloomfield, MI USA Posts: 55 Member Since: 12/12/05 |
posted June 16, 2006 3:15 PM Using version 1.5 If you click on an item in the livelistbox that contains commas, you get the following error: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index does not happen with the standard listbox. |
Jeff Cranford![]() From: Rome, NY USA Posts: 586 Member Since: 05/30/01 |
posted June 19, 2006 9:21 AM I cannot reproduce this. Can you enable the debug log (by setting the Debug=true property on one of your LiveControls). Rerun your test (be sure to take as few steps as possible while still reproducing the bug to limit the size of the JavaScript produced). Post the applicable script here, and that might give us some clues as to what is happening. |
| administrator weiner@parrotsoftware.com From: West Bloomfield, MI USA Posts: 55 Member Since: 12/12/05 |
posted June 19, 2006 11:04 AM OK, I have some more info. It seems that you cannot remove the default item (unbound) from the Items Collection dialog. It seems to be deleted but when you open it again, it is still there. Also: 1. When I set debug to true, the error does not occur. 2. The error occurs when I add the item with commas while the unbound item is displayed in the list and my comma entry is the second item in the list. 3. I can eliminate the error, if I do a LiveListbox1.items.clear before adding the comma entry. I guess I solved my own problem |
| administrator weiner@parrotsoftware.com From: West Bloomfield, MI USA Posts: 55 Member Since: 12/12/05 |
posted June 19, 2006 11:32 AM I spoke too soon. I went back to my original program changed the livelistbox.debug to true and I am still getting the error. The problem is that the debug window displays and disappears too quickly to see what it says. Is there any to generate a log for the error? |
John Talarico![]() From: Rome, NY USA Posts: 630 Member Since: 06/01/05 |
posted June 21, 2006 5:25 PM The debug window should just be another browser window. If you switch to it you should see the data sent between the client and server. |
| administrator weiner@parrotsoftware.com From: West Bloomfield, MI USA Posts: 55 Member Since: 12/12/05 |
posted June 21, 2006 7:51 PM I understand. But it closes. |
| administrator weiner@parrotsoftware.com From: West Bloomfield, MI USA Posts: 55 Member Since: 12/12/05 |
posted June 21, 2006 8:49 PM Ok. open an aspx page in VWD and put a LiveListBox on the page. Go to collections and add an item with commas in the text. Do not set selected index so that the text is unselected. Open the page and click on the text with commas. You should generate a server error or at the very least see an error icon in the status bar. If you set the debug to true on the listbox, you will briefly see the debug page and then it will dissappear and be replaced by the Server Error page. |
John Talarico![]() From: Rome, NY USA Posts: 630 Member Since: 06/01/05 |
posted June 26, 2006 10:59 AM While I have not been able to replicate the exception you are seeing in the current release of LiveControls (v1.5.1.0), I am seeing an issue with correctly retrieving the value of a list item that contains commas. This issue has been addressed and will be included in the next product update due in early July. |
| Reply | PowerWEB LiveControls for ASP.NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|