Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Hey Teemu

Reply
Thread Tools

Hey Teemu

 
 
zdrakec
Guest
Posts: n/a
 
      07-12-2005
Hey Teemu:

Can you explain to me why a WebForms ListBox control, with
SelectionMode set to Multiple, would lose some of the selections?

Here's what I mean. If I select, say, the first nine items of my
listbox (populated at page_load time, only if the page is not being
posted back), at post back time, it will consider items 0,1,2 to be
selected, items 3,4 not to be selected, items 5,6 to be selected, and
the rest not selected. This is one example, sometimes the distribution
is different. Since I used the shift key to select the first nine
elements in the list, I expected all items 0 through 8 to have selected
= true, but such is not the case. Sometimes, regardless of how many
items I have selected, it will regard only items 0 through 4 to be
selected, and occasionally if I select only one item, it will consider
that item not to be selected. Again, the list is populated ONLY if
page.IsPostBack = false, in the page_load event handler.

???

Thanks,
zdrakec

 
Reply With Quote
 
 
 
 
Teemu Keiski
Guest
Posts: n/a
 
      07-12-2005
With ASP.NET v1.0/1.1 or ASP.NET v2.0? Based on your description doesn't
seem to happen regularly. Does this occur on every page or just on a certain
one?

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke


 
Reply With Quote
 
 
 
 
zdrakec
Guest
Posts: n/a
 
      07-12-2005
Hello Teemu:

It's ASP.NET 1.1; I am only doing this on one page, so... just one. But
it happens every time I load the page on postback, with items selected.

I will probably, if I can't figure out why it's happening, delete the
blasted control from the page, and re-add it... just to see what
happens.

Thanks,
zdrakec

 
Reply With Quote
 
Teemu Keiski
Guest
Posts: n/a
 
      07-12-2005
And try the same with other Page, some empty dummy page etc so that you can
ensure it is reproducible and not by some setup on the specific Page.

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HEXUS.opinions :: Hey, take a look at my 15-inch $2,300 TV Silverstrand Front Page News 0 09-20-2005 03:34 AM
Hey Y'all, This is So easy, and 100% legal! Get a FREE Sony PSP,Theirs NO CATCH! Proof inside... read more Sarah Stewart Microsoft Certification 1 05-11-2005 04:56 AM
HEY HEY HEY hold up...... Ron Williams MCSA 0 08-11-2003 07:19 PM
Re: Hey Microsoft, hire some MCSDs! Davin Mickelson MCSD 0 07-28-2003 06:12 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57