How to call JavaScript Alert box from Code behind in Asp.net

The following is the sample code which is used  to call JavaScript Alert box from Code behind in Asp.net

ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('This is C#corner')", true);

Summary
I hope this code snippet is useful ,if you have any suggestion regarding this article then please contact me.

Post a Comment

www.CodeNirvana.in

Protected by Copyscape
Copyright © Compilemode