468,539 Members | 1,856 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,539 developers. It's quick & easy.

Error when listbox items are too long

I have a listbox that I fill with data from a stored proc. It's very
basic - the proc returns two columns, one is used for the
DataValueField of the listbox and the other is the DataTextField. The
problem I have is when there is data returned for the DataTextField
that is over a certain length (somwhere around 70 characters, I'm not
sure what the exact limit is), the page errors trying to fill the
listbox.

How can I make the listbox accept longer values? I've tried setting
the width but that doesn't make a difference.

Sep 4 '07 #1
1 1514
I determined that 69 characters are allowed and 70 characters causes
the error.
On Sep 4, 2:27 pm, Dennis <dbronst...@gmail.comwrote:
I have a listbox that I fill with data from a stored proc. It's very
basic - the proc returns two columns, one is used for the
DataValueField of the listbox and the other is the DataTextField. The
problem I have is when there is data returned for the DataTextField
that is over a certain length (somwhere around 70 characters, I'm not
sure what the exact limit is), the page errors trying to fill the
listbox.

How can I make the listbox accept longer values? I've tried setting
the width but that doesn't make a difference.


Sep 5 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Ali Chambers | last post: by
14 posts views Thread by Paul_Madden via DotNetMonster.com | last post: by
29 posts views Thread by =?Utf-8?B?SGVybWF3aWg=?= | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.