可以放在控制器的入口函数中,这样载入就会被调用

 

asp.net mvc,get+post:

public ActionResult Index()
        {
            if (Request.QueryString.Count > 0)
            {
                foreach (var item in Request.QueryString)
                {
                    Console.WriteLine(item);
                }
            }

            if (Request.Form.Count > 0)
            {
                foreach (var item in Request.Form)
                {
                    Console.WriteLine(item);
                }
            }

            return null;
        }
View Code

相关文章:

  • 2022-12-23
  • 2021-09-30
  • 2022-12-23
  • 2021-10-30
猜你喜欢
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2022-03-07
  • 2022-12-23
相关资源
相似解决方案