• 遍历Request的信息


    代码:
    For i As Integer = 0 To Request.Params.Count - 1
        Response.Write(("<li>" & Request.Params.Keys(i).ToString() & " = ") + Request.Params(i).ToString())
    Next

    Response.Write("<hr>")
    For i As Integer = 0 To Request.Form.Count - 1
        Response.Write(("<li>" & Request.Form.Keys(i).ToString() & " = ") + Request.Form(i).ToString())
    Next

    Response.Write("<hr>")
    For i As Integer = 0 To Request.QueryString.Count - 1
        Response.Write(("<li>" & Request.QueryString.Keys(i).ToString() & " = ") + Request.QueryString(i).ToString())
    Next

    Response.Write("<hr>")
    For i As Integer = 0 To Request.Cookies.Count - 1
        Response.Write(("<li>" & Request.Cookies.Keys(i).ToString() & " = ") + Request.Cookies(i).ToString())
    Next
  • 相关阅读:
    flask笔记(引用)
    三元表达式(列表解析+if)
    生成器
    闭包、装饰器、高阶函数
    列表的解压和取值
    模块
    时间操作
    day16 css, dom
    day 15 html(2) css,javascript,dom
    day 14 html
  • 原文地址:https://www.cnblogs.com/flys5200/p/1636033.html
Copyright © 2020-2023  润新知