在body里面的获取到得值怎么写入session中
比如:
<body>
document.getElementById("txtDnValue").value = pluginobj.getSIPDN();//就是这个值怎么样写入session中???
</body>
[解决办法]
ajax
[解决办法]
Jquery 代码 需要引用Jquery文件
function test() { var id = document.getElementById("txtDnValue").value; $.ajax({ type: "POST", async: false, url: "Test.aspx/test", data: "{ID:" + id + "}", dataType: "json", contentType: "application/json; charset=utf-8", success: function(msg) { } });}