473,395 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Hey Teemu

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

Nov 19 '05 #1
3 863
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
Nov 19 '05 #2
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

Nov 19 '05 #3
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
Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Catalin Porancea | last post by:
Whenever I try this: ____________________________________________________________________ Dim cmd_sp_payments As SqlCommand = New SqlCommand("sp_payments", con) cmd_sp_payments.CommandType =...
7
by: Shaul Feldman | last post by:
Hello, the question is how can I masquerade ASPX files behind HTML extension? Thank you in advance. -- With the best wishes, Shaul Feldman
6
by: Tee | last post by:
in ASP.NET 1.1, I created a Class, and the class Inherits System.Web.UI.Page ... I write my common error handling code there, under Protected Overrides Sub OnError(ByVal e As System.EventArgs)...
7
by: James P. | last post by:
Hello there, In my asp.net page using VB, I have a date text field in mm/dd/yyyy format. When a date is entered, I'd like to validate it to make sure the date is greater than or equal to the...
5
by: Andy Lim | last post by:
Hello all, I just moved one of my ASP.NET application to a new hosting. But the same application that used to work perfectly before now returns this error: System.IO.DirectoryNotFoundException...
6
by: Ben Fidge | last post by:
Is there any way of configuring VS2005's Publish Web Site feature to ignore certain files? During day to day testing of our web-site, log files are created that I don't want to deploy to the...
14
by: Bruno | last post by:
We are attempting to automatically log users off from the Session_End event in global.asax. It is not a critical task, more of a housekeeping task so that we know if users have closed down their...
20
by: tshad | last post by:
I had posted this problem earlier and just noticed that the Hyperlink is the problem. Apparently, it doesn't figure out the path correctly. It uses the path of the file it is in, even if it is...
6
by: =?Utf-8?B?UmJydA==?= | last post by:
I am trying to figure out how to do a postback that updates only changed controls without having the entire page refresh and flash on the screen. Seems to me this was available in ASP.NET 1.1, but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.