Show Alert Box From Serverside in Asp.net

Thank you for reading this post, don't forget to subscribe!

//Fuction for Alert Box

protected void jsCall(string alertmessage)
{

string script = @”alert( “”” + alertmessage+ @””” );”;
ScriptManager.RegisterStartupScript(this, this.GetType(), “jsCall”, script, true);
}
//Call “jsCall” Function with message where u want.

jsCall(“Alert successfully.”);