Hide DIV when certain item gets selected from Dropdownlist
i think the title explains it already.
can someone point me to the right direction? thanks!
EDIT:
Sor开发者_开发百科ry forgot to tell that it has to be client-side
You can see this question. Questioner wants to achieve the same thing you want
make div as run at server and access it on code behind as name. Set display property of style when dropdown list selection is posted back.
If you use client script you won't have to perform a server round trip.
This forum post does almost exactly what you want but for a text box instead of a div.
http://forums.asp.net/t/1224793.aspx/1?Javascript+for+onchange+event+in+asp+dropdownlist
精彩评论