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.

35 lines
1005 B

  1. using Swift.web.Library;
  2. using System;
  3. using System.Text;
  4. namespace Swift.web
  5. {
  6. public partial class PrintMessage : System.Web.UI.Page
  7. {
  8. protected void Page_Load(object sender, EventArgs e)
  9. {
  10. PrintMsg();
  11. }
  12. private string GetMessage()
  13. {
  14. return GetStatic.ReadQueryString("msg", "");
  15. }
  16. private string GetErrorCode()
  17. {
  18. return GetStatic.ReadQueryString("errorCode", "");
  19. }
  20. private void PrintMsg()
  21. {
  22. var msg = GetMessage();
  23. var errorCode = GetErrorCode();
  24. var html = new StringBuilder();
  25. if (errorCode == "0" || errorCode.ToUpper() == "SUCCESS")
  26. html.Append("<div id=\"success\"><div>" + msg + "</div></div>");
  27. else
  28. html.Append("<div id=\"errorExplanation\" style='margin-top:230px'><div>" + msg + "</div></div>");
  29. divMsg.InnerHtml = html.ToString();
  30. }
  31. }
  32. }