Tuesday, June 7, 2022

Javascript alert in ASP.NET C#

    System.Text.StringBuilder sb = new System.Text.StringBuilder();

                sb.Append(@"<script language='javascript'>");

                sb.Append(@"alert('Batch End Date cannot be National Holiday...');");

                sb.Append(@"</script>");

                ScriptManager.RegisterStartupScript(this, this.GetType(), "JSCR", sb.ToString(), false);

No comments:

Post a Comment