把你的绑定dropdownlist的数据源的语句放到:
if (!page.ispostback)
{
 //绑定dropdownlist的数据源的语句;
}
然后把dropdownlist的autopostback属性设为true;
还是写dropdownlist的selectindexchanged事件实现超连接:
Response.Ridrect("网址“);

解决方案 »

  1.   

    to:chyich
    我的dropdownList中的网站名称是动态添加的,在数据库中可以删该,
    你说的Response.Ridrect("网址“);能实现吗?
      

  2.   

    dropdownList中的网站名称是动态添加的,那么它应该有一列对应它的网址,dropdownlist中的.text属性绑定网站名称,value属性绑定网址列。然后在写dropdownlist的selectindexchanged事件实现超连接:
    Response.Ridrect(dropdownlist.value.tostring());