• .aspx.cs传值与取值


    1:.aspx中post传值

    $.post("ABP_ExchangeRatelz.aspx", { option: "isdelete", Ori_Currency: Ori_Currency, Year_Month: Year_Month, Region: Region, time: new Date().getMilliseconds() },

    .aspx.cs中post取值(通过Request.Form["参数名称"].ToString()来取值)

    string Year_Month = Request.Form["Year_Month"].ToString();

    2: .aspx中url传值

    location.href = "ABP_ExchangeRatelz_Edit.aspx?op=edit&Region=" + Region + "&Ori_Currency=" + Ori_Currency + "&Year_Month=" + Year_Month;

    .aspx.cs中url取值(通过Request.QueryString["参数名称"])

    string Year_Month = Request.QueryString["Year_Month"];

    3:.aspx中传值到WebService

    提交方法"get"

    提交地址url: '/Webservice/Monthly_Basic_Data/MBD_ABP_Monthly_basislz.asmx/ABP_Monthly_basislz_List'

    WebService中取值

                    var queryString = this.Context.Request.QueryString;
                    var pagenum = int.Parse(queryString.GetValues("pagenum")[0]);

  • 相关阅读:
    常用基础命令
    Vim
    Linux目录结构
    稀疏数组
    数据结构概述
    天天用的命令
    Mysql和redis的安装
    回文排列
    URL化
    在word中做复选框打对勾钩
  • 原文地址:https://www.cnblogs.com/rookie-26/p/4566843.html
Copyright © 2020-2023  润新知