- 在CS面页里定义一个全局变量.
protected string str_NoticeMsg ;
给str_NoticeMsg 赋值
str_NoticeMsg ="onload=\"javascript:window.open ('ScheduleNotice.aspx','','top=1000,left=1000')\"";
2. 在HTML页面里调用这个全局变量.
<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0" MS_POSITIONING="GridLayout" ALINK="#0000ff" VLINK="#0000cc" <%=str_NoticeMsg %>>
<%=str_noticemsg%>