public void SetMessage(string title, string message, string type, string js) { if (!string.IsNullOrEmpty(title) || !string.IsNullOrEmpty(message)) { _js += "dialog(\"" + title.Replace("\n", "<br />").Replace("\r", "") + "\",\"" + Splosno.JsSafe(message) + "\",\"" + type + "\");" + js; } }