我想用popupWin弹出多个提示消息框,但是出错,提示:Stack overflow at line:332
我现在是在OnLoad中这样写的,
List <Msg> lst=GetMsg(); //Msg是消息类, foreach (Msg mymessage in lst)
{
PopupWin popupWin=new PopupWin();
PopupWinAnchor popupAnchor=new PopupWinAnchor(); // Add controls to page
placeHolder.Controls.Add(popupAnchor);
placeHolder.Controls.Add(popupWin); // Set anchor properties
popupAnchor.PopupToShow=popupWin.ClientID;
popupAnchor.LinkedControl="spanReopen";
popupAnchor.HandledEvent="onclick"; // Set popup win properties
popupWin.ActionType=EeekSoft.Web.PopupAction.MessageWindow;
popupWin.Title=Msg.Title;
popupWin.Message=Msg.Context;
// Show popup
popupWin.Visible=true;
popupWin.AutoShow=false;
}
请问是哪里搞错了,应该怎么写?谢谢!解决立即给分
我现在是在OnLoad中这样写的,
List <Msg> lst=GetMsg(); //Msg是消息类, foreach (Msg mymessage in lst)
{
PopupWin popupWin=new PopupWin();
PopupWinAnchor popupAnchor=new PopupWinAnchor(); // Add controls to page
placeHolder.Controls.Add(popupAnchor);
placeHolder.Controls.Add(popupWin); // Set anchor properties
popupAnchor.PopupToShow=popupWin.ClientID;
popupAnchor.LinkedControl="spanReopen";
popupAnchor.HandledEvent="onclick"; // Set popup win properties
popupWin.ActionType=EeekSoft.Web.PopupAction.MessageWindow;
popupWin.Title=Msg.Title;
popupWin.Message=Msg.Context;
// Show popup
popupWin.Visible=true;
popupWin.AutoShow=false;
}
请问是哪里搞错了,应该怎么写?谢谢!解决立即给分
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货