当运行到下面的程序时:
if (((Button)sender).Text == "启用(&F)")
{
ci.delmode = "1";
}
报错:Unable to cast object of type 'X.001' to type 'System.Windows.Forms.Button'.注明:X.001是页面的名称,请高手帮忙。
if (((Button)sender).Text == "启用(&F)")
{
ci.delmode = "1";
}
报错:Unable to cast object of type 'X.001' to type 'System.Windows.Forms.Button'.注明:X.001是页面的名称,请高手帮忙。
FindControl("") as Button