请教一个关于消息框的问题 请教大家一个关于ASP。NET的问题,我有没有办法在服务器端得到javascript中弹出消息框后用户所按的按钮是什么 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ajax没学会前,可以试试改变一个隐藏控件的值,然后在服务器端获取这个值 http://topic.csdn.net/u/20100405/14/226b9ce0-20a3-4c33-9dbf-72ea9ab83699.html看看这贴子,口口加一的回复 使用jQ或者prototype.jsif(confirm('确定导出?')==true) { var body="参数="+exhid;new Ajax.Request('一个页面.aspx', { method:'post', postBody:body, onComplete:function(response) { var t=response.responseText; if(t=="1") { //alert('成功!'); } else if(t=="2") { //alert('失败!'); } } } ) } else { //类似上面......... } 其实就是 在点击 js弹出框 中的 确定 或 取消 按钮时。将所要执行的操作用ajax方式 传送到某页面处理。 if(confirm('确定导出?')==true) { var body="参数="+exhid;new Ajax.Request('一个页面.aspx', { method:'post', postBody:body, onComplete:function(response) { var t=response.responseText; if(t=="1") { //alert('成功!'); } else if(t=="2") { //alert('失败!'); } } } ) } else { //类似.. } Ajax不会 看来需要学习一下了 排队程序 帮忙设计一个数据库表 关于gridview里使用radiobutton 如何在我的网站上读取另一网站上的文本文件的内容? 二级联动 用ajax如何实现 显示天气预报的代码~~~~ 如何使DataView变得美观 datagrid的问题:如何显示性别(0为女,1为男) 已知一个System.Data.DataRow对象 如何此对象的视图状态 即 System.Data.DataRowView? 在c#中,请问()和[]有什么区别 为什么GridView分页以后,每次点击新页码需要点两次? App_Code文件夹下的类里面的static方法若不操作static变量还需lock么?
{
var body="参数="+exhid;
new Ajax.Request('一个页面.aspx',
{
method:'post',
postBody:body,
onComplete:function(response)
{
var t=response.responseText;
if(t=="1")
{
//alert('成功!');
}
else
if(t=="2")
{
//alert('失败!');
}
}
}
)
}
else
{
//类似上面.........
}
{
var body="参数="+exhid;
new Ajax.Request('一个页面.aspx',
{
method:'post',
postBody:body,
onComplete:function(response)
{
var t=response.responseText;
if(t=="1")
{
//alert('成功!');
}
else
if(t=="2")
{
//alert('失败!');
}
}
}
)
}
else
{
//类似..
}