Microsoft
Software
Hardware
Network
Question : Default selected item for drop down list box
Hello guys,
I am new to asp.net I am not trying to achieve anythign fancy but just trying to set default selected value for one of the dropdown that I am using. for that I am doing Items>selected= true for whatever item I want selected when i load the page. In my case, it is a month dropdows and I am selecting date 14 as selected default value out of all 30 values but somehow, out of the blue .NEt decides to show me 29 instead of 14. I am not sure if there is some another setting that is overwritting this value.
Any ideas?
Answer : Default selected item for drop down list box
Probably something like:
DropDownList.DataBind()
DropDownList.SelectedIndex
= 3
But you may need list count...
See also:
http://www.velocityreviews
.com/forum
s/t75681-d
ropdown-li
st-
default
-selected-
item.html
or
http://forums.asp.net/t/12
19729.aspx
Random Solutions
What are the different RAID options for SAS
C++
OnCtlColor and multiline edit - odd behaviour
Internal domain is company.com so requests for public
www.company.com
are not found
Server (Apache?) Issue: RAR file opens up in browser rather then saving
pros and cons of GWT
Can MS Excel 2007 design the same layout image (See below) using scalable framed cells and embed fields text or images for use by web developers
How do I best print on screen with JavaScript a specification of a filled-in form?
firefox and thunderbird displaying text/font funny
electrical potential energy - q1