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

  • 相关阅读:
    webpack打包的项目,如何向项目中注入一个全局变量
    移动端微信H5兼容ios的自动播放音视频
    移动端H5解决键盘弹出时之后滚动位置发生变化的问题
    微信网页开发,如何在H5页面中设置分享的标题,内容以及缩略图
    React实现组件缓存的一种思路
    React编写一个移动H5的纵向翻屏组件
    如何手写一个react项目生成工具,并发布到npm官网
    Puppeteer爬取单页面网站的数据示例
    modelsim中objects窗口为空的解决办法
    Lattice Diamond与modelsim联合仿真环境设置
  • 原文地址:https://www.cnblogs.com/macil/p/2220552.html
Copyright © 2011-2022 走看看