public static void ShowMessage(Page page, string text)Here is how to use:
{
Literal oLiteral = new Literal();
oLiteral.Text = "<script>alert('" + text + "')</script>";
page.Controls.Add(oLiteral);
}
protected void btnSave_Click(object sender, EventArgs e)
{
ShowMessage(this, "Success!");
}
No comments:
Post a Comment