Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > DropDownList having no selected value "on occasion", typically during high load times

Reply
Thread Tools

DropDownList having no selected value "on occasion", typically during high load times

 
 
jhonz@etsmail.com
Guest
Posts: n/a
 
      06-24-2005
I have come across a strange circumstance. I have user controls with
dropdownlists that interact fine during times where the web server has
minimal load. But once things pick up and postbacks take longer, my
code behind will error out since I expect
"ddlSample.SelectedItem.Value" to have a value for a control that
exist. But sometimes it is set to "Nothing". I do think this comes
about when the user is a 'quick clicker' and clicks ahead of the
postback before it fully is rendered.

The ddl control isn't generated on the fly, it is a static control that
is sometimes not visible or within a panel that is not visible.

I am quite perplexed. I thought an object would always be accessible
and the load of the server or delay of the postbacks would not make a
difference.

Not sure where to start to fix this. I am just doing my best to
compensate for the chance that a dropdownlist won't have a selected
value. But this still leaves me guessing on what value really was
selected.



Jeff

 
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
Selected ListItem in DropDownList does not appear selected Nathan Sokalski ASP .Net Web Controls 0 10-05-2008 10:29 PM
Selected ListItem in DropDownList does not appear selected Nathan Sokalski ASP .Net 0 10-05-2008 10:29 PM
How is Java typically invoked from HTML? And Java Permissions question... Aaron J. Margosis Java 7 02-12-2008 11:09 PM
typically, how expensive is try catch? Nick Keighley C++ 5 03-22-2007 08:47 PM
DropDownList 2 always returns Selected = 0 for all items - even selected item Iain ASP .Net 3 12-11-2006 11:07 AM



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