比如:
<body>
document.getElementById("txtDnValue").value = pluginobj.getSIPDN();//就是这个值怎么样写入session中???
</body>
<body>
document.getElementById("txtDnValue").value = pluginobj.getSIPDN();//就是这个值怎么样写入session中???
</body>
解决方案 »
- *****如何小数点后保留一位?
- 帮忙
- 保存页面接收过来的参数 菜鸟奉100分以谢高手,表达敬意
- asp.net 利用HttpModule实现的伪静态页的Gzip压缩
- vs2005(asp.net)TreeView动态添加删除子节点
- C# 得到服务器的虚拟目录~!
- 关于VS2003中排版的问题 ,请问各位高手如何解决?
- 请问asp.net中如何使得程序在某一时间自动执行某个特定的操作,
- 我有源码,但是不知道怎么用?帮帮忙
- 在一页(A)中有个公共函数,用来邦定dataGrid,并有个服务器端按钮。我想实现点击按钮后弹出另一页(B),在页(B)中调用页(A)中那个函数。请
- 目前做网站还用数据源控件吗
- 自动解压文件【马上接帖】
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) {
}
});
}
C# 代码、 [WebMethod()]
public static void test(string id)
{
//这里前台的id已经传过来
}
[WebMethod()]
public static void test(string ID) //这个ID应该是大写
{
//这里前台的id已经传过来
}