hello,
it is good, can i define it in a class file.
public enum MessageType { Success, Error, Info, Warning };
protected void ShowMessage(string Message, MessageType type)
{
ScriptManager.RegisterStartupScript(this, this.GetType(), System.Guid.NewGuid().ToString(), "ShowMessage('" + Message + "','" + type + "');", true);
}
and on page i can just this method so it looks clean
ShowMessage("Record submitted successfully", MessageType.Success);
pls advice