You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.0 KiB

  1. using Swift.web.Library;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Web;
  6. using System.Web.UI;
  7. using System.Web.UI.WebControls;
  8. namespace Swift.web.SwiftSystem.ApplicationLog
  9. {
  10. public partial class Manage : System.Web.UI.Page
  11. {
  12. private readonly SwiftLibrary _sl = new SwiftLibrary();
  13. private readonly SwiftLibrary sl = new SwiftLibrary();
  14. protected void Page_Load(object sender, EventArgs e)
  15. {
  16. sl.CheckSession();
  17. if (!IsPostBack)
  18. {
  19. if (GetId() != "")
  20. {
  21. PopulateErrorMsg();
  22. }
  23. }
  24. }
  25. private void PopulateErrorMsg()
  26. {
  27. string sql = "SELECT errorDetails FROM ErrorLogs WHERE id = '"+GetId()+"'";
  28. var res = _sl.GetSingleResult(sql);
  29. ErrorDiv.InnerHtml = res.ToString();
  30. }
  31. private string GetId()
  32. {
  33. return GetStatic.ReadQueryString("id", "");
  34. }
  35. }
  36. }