string Wkid = Request.QueryString["id"];
DateTime now = DateTime.Now;
DateTime d1 = new DateTime(now.Year, now.Month, 1);
int c = DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month);
for (int i = 0; i < c; i++)
{
string j = d1.AddDays(i).toFormatShortDate(); ScriptManager.RegisterStartupScript(UpdatePanel1, UpdatePanel1.Page.GetType(), " btn_check", "alert ('这个月还没安排的日期:" + j + "');", true); }
使用该方法可注册一个每次发生异步回发时都将包括的启动脚本块。所以就跳出了 ,你还是用js弹出吧
ScriptManager.RegisterStartupScript(UpdatePanel1, UpdatePanel1.Page.GetType(), " btn_check", "alert ('这个月还没安排的日期:" + j + "');", true);=======================》Response.Write("<script>alert ('这个月还没安排的日期:" + j + "');</script>");
这样就可以多次弹框提示了