前端
<script>
function btnclick(){
$.ajax({
url:"WebForm1.aspx",
data:
{
orderId:"2",
commant:"commnat",
} ,
type: "Post",
dataType: "Json",
success:function(result){
}
})
}
<script>
后台程序:
protected void Page_Load(object sender, EventArgs e)
{
string id = Request["orderId"];
string cc = Request["commant"];
if (!string.IsNullOrEmpty(id))
{
}
}
可以观察到,id=2,cc=commnat,ok~