日期:2014-05-18  浏览次数:20430 次

唉,剩下10分了, 想请教一个关于Dropownlist的问题.
protected   void   DropDownList1_SelectedIndexChanged(object   sender,   EventArgs   e)
{
        执行代码
}
protected   void   Button_edit_Click(object   sender,   EventArgs   e)
{
        请问一下我想在这个按钮事件里面,调用:  
DropDownList1_SelectedIndexChanged应当怎么办啊?
}



------解决方案--------------------
protected void Button1_Click(object sender, EventArgs e)
{
DropDownList1_SelectedIndexChanged(sender, e);
}
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
Response.Write( " <script> alert( '123 '); </script> ");
}