you can go for it like this...
1) first of all decalre two css calss like this...
.showDiv
{
display: block;
}
.hideDiv
{
display:none;
}
and attache one javascript function with your dropdown that will do your remaining work for show hide div..
the function will look like this...
<script type="text/javascript">
function showhide(ddl) {
var div1 = document.getElementById('div1');
var div2 = document.getElementById('div2');
if (ddl.value == "DIV1") {
div1.className = "showDiv";
div2.className = "hideDiv";
}
else{
div1.className = "hideDiv";
div2.className = "showDiv";
}
}
</script>
here i have done some demo it will like this.
<asp:dropdownlist id="ddlTest" runat="server" xmlns:asp="#unknown">
<asp:listitem value="DIV1">DIV1</asp:listitem>
<asp:listitem value="DIV2">DIV2</asp:listitem>
</asp:dropdownlist>
<div id="div1" style="background:#FF00FF;" class="showDiv">
<br />
</div>
<div id="div2" style="background:#0000FF;" class="hideDiv">
<br />
</div>
and attache onchange javascript function like this in
page load
event
ddlTest.Attributes.Add("onchange", "showhide(this);");