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
PHP module for MySql will not load
How do I create a drop-down in MS Excel that allows a user to select a file path
Excel 2007 VBA Function returns as 'empty'
SBS 2008 Send eMail Settings ??
A comment triggers image display in IE6
Developing for W2K3 - Missing MSCVP100.DLL & MSVCR100.DLL
How do I change the screen resolution under Solaris 10 ?
Excel: Looping through all chart series of all charts on a worksheet
outlook logon help
raid 1+0 with 2 drives