>>>如果点取消或再点击编辑另一条时原有的脚本还存在你肯定么?>>>这样就会产生脚本错误
to avoid , you could doPage.RegisterStartupScript("Open","<script>function test(){ try{StoreChange(document.getElementById('"+ddlStore.ClientID+"').options[document.getElementById('"+ddlStore.ClientID+"').selectedIndex].value);} catch(){}}window.onload=test;</script>");but it is a hack