40 lines
977 B
C#
40 lines
977 B
C#
using System.Web.UI;
|
|
|
|
namespace AyAEM.ExceptionManagement.Miscellaneous
|
|
{
|
|
/// <summary>
|
|
/// Summary description for CallJSFunctions.
|
|
/// </summary>
|
|
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
|
|
}
|
|
}
|