Show Alert Message from Code Behind(Server Side)
Show Alert Message from Code Behind(Server Side)
C#
I want to Show alert in page load
12345678910111213 protected void Page_Load(object sender, EventArgs e)
{
string message = "Hello! Mudassar.";
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("");
ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", sb.ToString());
}
Open (Show) BootStrap Modal Popup from Server Side in ASP.Net
Please refer this code.
Html Coding
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061Bootstrap 101 Template
123456protected void Page_Load(object sender, EventArgs e)
{
ClientScript.RegisterStartupScript(this.GetType(), "alert", "ShowPopup();", true);
this.lblMessage.Text = "Your Registration is done successfully. Our team will contact you shotly";
}
1
Show Alert Message from Code Behind(Server Side)
Reviewed by Rejeti Praveen Kumar
on
05:57
Rating:

No comments: