using System.Web.UI; namespace AyAEM.ExceptionManagement.Miscellaneous { /// /// Summary description for CallJSFunctions. /// public class CallJSFunctions { #region Constructors public CallJSFunctions() { // // TODO: Add constructor logic here // } #endregion #region Variables //private StringBuilder stbScript = new StringBuilder(""); //private NameValueCollection appSettings = ConfigurationManager.AppSettings; #endregion #region Custom Methods public void OpenWindow(System.Web.UI.Page pPage, string pStrExceptionCode) { //string webForm = appSettings["ExceptionWebFormFileName"]; ExceptionManagerReadResx reader = new ExceptionManagerReadResx(pStrExceptionCode); ScriptManager.RegisterStartupScript(pPage, typeof(string), "Excepción", "alert('" + reader.CodeDescription + "');", true); } #endregion } }