zoukankan      html  css  js  c++  java
  • asp.net mvc controller 获取数据

    Request.QueryString           NameValueCollection                        GET variables sent with this request


    Request.Form                     NameValueCollection                        POST variables sent with this request


    Request.Cookies                 HttpCookieCollection                        Cookies sent by the browser with this request


    Request.Http                      Method string                                 The HTTP method (verb, such as GET or POST) used for this request


    Request.Headers                 NameValueCollection                        The full set of HTTP headers sent with this request


    Request.Url                        Uri                                                 The URL requested

    Request.UserHostAddress   string                                             The IP address of the user making this request


    RouteData.Route                RouteBase                                      The chosen RouteTable.Routes entry for this request


    RouteData.Values               RouteValueDictionary                       Active route parameters (either extractedfrom the URL or default values)


    HttpContext.Application      HttpApplicationStateBase                  Application state store


    HttpContext.Cache             Cache                                             Application cache store


    HttpContext.Items             IDictionary                                       State store for the current request


    HttpContext.Session          HttpSessionStateBase                      State store for the visitor’s session


    User                                 IPrincipal                                          Authentication information about the logged-in user


    TempData                         TempDataDictionary                         Temporary data items stored for the current user

  • 相关阅读:
    Java编程的逻辑 (62)
    float示例
    如何避免在短时间内按钮被多次重复点击
    前端(jQuery)(9)-- jQuery菜单
    前端(jQuery)(8)-- jQuery元素遍历
    前端(jQuery)(6)-- jQuery的扩展与noConflict
    前端(jQuery)(5)-- jQuery AJAX异步访问和加载片段
    xampp中tomcat服务器无法启动
    前端(jQuery)(4)-- jQuery隐藏显示与淡入淡出、滑动、回调
    自定义事件总结
  • 原文地址:https://www.cnblogs.com/macil/p/2220552.html
Copyright © 2011-2022 走看看