//前台脚本
function showpic()
{
var picvalue=document.getElementById("HaedSelect").options[document.getElementById("HaedSelect").selectedIndex].value;
document.getElementById("haedimg").src=picvalue;
}
<asp:DropDownList ID="HaedSelect" runat="server" >
<asp:ListItem Value="image/haed/01.jpg" Selected="True">01</asp:ListItem>
<asp:ListItem Value="image/haed/02.jpg">02</asp:ListItem>
<asp:ListItem Value="image/haed/03.jpg">03</asp:ListItem>
<asp:ListItem Value="image/haed/04.jpg">04</asp:ListItem>
</asp:DropDownList></td>
//后台代码
this.HaedSelect.Attributes.Add("OnChange", "showpic();");