Friday, May 1, 2015

asp.net javascript alert and redirect

  public static void jsAlertAndRedirect(System.Web.UI.Page instance, string Message, string url)
        {
            instance.Response.Write(@"<script language='javascript'>alert('" + Message + "');document.location.href='" + url + "'; </script>");
        }

No comments:

Post a Comment