HttpHelper.cs 660 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Web;
  6. using Bowin.Common;
  7. namespace EMIS.Utility
  8. {
  9. public class HttpHelper
  10. {
  11. public static string GetMenuNo()
  12. {
  13. try
  14. {
  15. var menuNo = HttpContext.Current.Request["MNU"];
  16. if (string.IsNullOrEmpty(menuNo))
  17. {
  18. menuNo = HttpContext.Current.Request.UrlReferrer.GetQueryStringByPath("MNU");
  19. }
  20. return menuNo;
  21. }
  22. catch
  23. {
  24. return "WINFORM";
  25. }
  26. }
  27. }
  28. }