Last post Oct 05, 2006 08:29 AM by mattbug
Oct 04, 2006 01:37 PM|mattbug|LINK
I want to set one of the data bound locations, in the LocationDropDown user control, as the default for when a user goes to post a new ad (PostAd.aspx). I've been struggling with this for a few days and so far (short of typing an underscore before the name
of my location in the database--so it sorts to the first position) have no solution.
Oct 04, 2006 02:03 PM|DarrellNorton|LINK
Check out this article:
Oct 04, 2006 04:43 PM|mattbug|LINK
Thanks for the link.
The part I'm having trouble with is trying to access the methods and properties of the LocationList dropdownlist, inside the LocationDropDown user control, from PostAd.aspx.
Oct 05, 2006 08:29 AM|mattbug|LINK
I was able to use the CurrentLocation property of the LocationDropDown user control to set the default location:
LocationDropDown.CurrentLocation = ConfigurationManager.AppSettings("DefaultLocation")