把你的绑定dropdownlist的数据源的语句放到:
if (!page.ispostback)
{
//绑定dropdownlist的数据源的语句;
}
然后把dropdownlist的autopostback属性设为true;
还是写dropdownlist的selectindexchanged事件实现超连接:
Response.Ridrect("网址“);
if (!page.ispostback)
{
//绑定dropdownlist的数据源的语句;
}
然后把dropdownlist的autopostback属性设为true;
还是写dropdownlist的selectindexchanged事件实现超连接:
Response.Ridrect("网址“);
我的dropdownList中的网站名称是动态添加的,在数据库中可以删该,
你说的Response.Ridrect("网址“);能实现吗?
Response.Ridrect(dropdownlist.value.tostring());