I want to show a message box on the successful save of any item. I googled it and tried different solutions, but none of them worked. Here is the code I am using:
Make a method of MsgBox in your page.
public void MsgBox(String ex, Page pg,Object obj)
{
string s = "";
Type cstype = obj.GetType();
ClientScriptManager cs = pg.ClientScript;
cs.RegisterClientScriptBlock(cstype, s, s.ToString());
}
and when you want to use msgbox just put this line
MsgBox("! your message !", this.Page, this);