[thelist] .NET: drop down selected item

Anthony Baratta anthony at baratta.com
Wed Mar 14 16:05:26 CDT 2007

I fudge it by using the Value property....

     oSelect.Value = sSelectedValue.Trim();

Works both in MS and Firefox for me this way. Your mileage may vary. ;-)

-----Original message-----
From: "Casey Crookston" caseyc at IntelliSoftmn.com
Date: Wed, 14 Mar 2007 13:52:22 -0700
To: thelist at lists.evolt.org
Subject: [thelist] .NET: drop down selected item

> I'm setting the value of a dropdown list as follows:
> drpSelectMonthTo.SelectedValue = (intMonth).ToString
> This is the HTML that is returned: <option selected="selected"
> value="2">2</option>
> This works in IE but not FireFox.  Any idea how to make it work in
> firefox?

More information about the thelist mailing list