关于popupWin的一个问题
我想用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;
}
请问是哪里搞错了,应该怎么写?谢谢!解决立即给分