Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 27th, 2007, 03:52 AM
Authorized User
 
Join Date: Jan 2007
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aliirfan84
Default ListBox problem

I m loading data in to ListBox.I have performed event on SelectedIndexChnaged.It works well for data upto 255 or so characters. But as data length increases, it throws exception. Please tell me how can I load data of length 1000 into listbox Items.

Regards


__________________
Regards,
Ali Irfan
 
Old May 28th, 2007, 12:15 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Default

man what do u mean by loading data up to 255 charachters!! i don't think there such a thing in .net :)anyway y don't you post the exception? it will help a lot :)

Nothing is impossible. The impossible only takes longer. "Digital Fortress, Dan Brown"
 
Old May 28th, 2007, 06:38 AM
Authorized User
 
Join Date: May 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Actully friend your Question is somewhat ambiguious, let it be but if you want to load items up 1000 in listbox then that should not be the problem. Your exception is surly not due to that so try to catch that exception.

good luck.

Amol Chikurte
 
Old May 28th, 2007, 06:45 AM
Authorized User
 
Join Date: Jan 2007
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aliirfan84
Default

Friend, I know that there is no problem in loading 1000 items. I m talking about lenght of each item.

 
Old May 28th, 2007, 07:14 AM
Authorized User
 
Join Date: May 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes Friend,

I have just tried out your Query and i got that there is no such type of problem occurance. i have taken 1020 characters line and successfully populated it in to listbox.
So now i am sure that u r facing some another kind of problem. if i got i'll surly help u out.

Bye .

regards
AMOL

Amol Chikurte
 
Old May 28th, 2007, 08:39 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Default

MATE SEND US THE EXCEPTION! :) there shouldn't be any problem with the size of the iteam :) not as far as I know at least :)




Nothing is impossible. The impossible only takes longer. "Digital Fortress, Dan Brown"





Similar Threads
Thread Thread Starter Forum Replies Last Post
Listbox Problem Brendan Bartley Access 4 November 26th, 2007 01:34 PM
listbox problem faizee36 Access VBA 4 April 27th, 2006 09:58 AM
ListBox Problem spacy ASP.NET 1.x and 2.0 Application Design 2 October 18th, 2004 05:45 AM
A ListBox problem csc820203 C# 6 June 15th, 2004 06:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.