请第二次调用用户控件为什么不执行控件中的脚体 如下
private void loadmap(string file,string ConUserId )
{
UserControl theUC = (UserControl)LoadControl(file);//
theUC.ID = ConUserId;
PanMap.Controls.Add(theUC);
}
脚体 :var TheMap=document.getElementById("TheMap");//这句话第二次调用不执行了
private void loadmap(string file,string ConUserId )
{
UserControl theUC = (UserControl)LoadControl(file);//
theUC.ID = ConUserId;
PanMap.Controls.Add(theUC);
}
脚体 :var TheMap=document.getElementById("TheMap");//这句话第二次调用不执行了
private 改为public 看看呢