Click here to Skip to main content
15,905,323 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have option in my dropdown as

--select--
option1
option2

when i click on dropdown
--select--
option1
option2

shown in dropdown item
i want dropdown to show only
option1
option2
and select should remain intact @ its place

Please help
many thanks..
Posted
Updated 22-Nov-11 17:36pm
v2

1 solution

use ddlname.selectedindex = 0;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900