quote:Originally posted by putputty
I want to get value of dropdownlist when the page is loaded first time
The really for real first time? Like when someone types in www.yoursite.com
and they show up at this page? In that case, you don't need to retrieve the value you need to SET the value.
You need to pick a default value (I use Visual Studio Express, it let's you choose which one easily, do you or are you hand coding?) The default value will be automatically populated in the dropdown. And if you're trying to style the highlight (red?) you can do that from your CSS file, just reset the background color. I admit CSS is not the easiest in .NET, but just add a CssClass property name and keep playing til you find what works. You just make do with the tools you've got and hope the next generation is more useful for professional grade, web standards based development.
Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe
When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper
Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.