-1

在会话过期之前向用户显示弹出消息或警告消息的代码......以及在重定向到登录页面之前

4

1 回答 1

1
ClientScript.RegisterStartupScript(
      this.GetType(),
      Guid.NewGuid().ToString(),
      string.Format("alert('{0}');window.location.href = 'default.aspx'", 
        message.Replace("'", @"\'").Replace("\n", "\\n").Replace("\r", "\\r")),
        true);
于 2012-05-07T11:28:45.200 回答