想做的是,要点击一个div,将其ID传递给style/Newind.aspx这个页。
下面是代码,一直是:网页有错误
<head runat="server">
<title>无标题页</title>
<link href="style/genl.css" rel="Stylesheet" type="text/css" />
<script>
function openModal()
{
var id = this.id;
var xmlhttp=new ActiveXObject("microsoft.xmlhttp")
xmlhttp.send("style/Newind.aspx?id="+id);
window.showModalDialog("style/Newind.aspx");
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div> <div id="dividad" onclick="openModal()" runat="server">
</div> <div id="dividasdf" onclick="openModal()" runat="server">
</div>
</div>
</form>
</body>
下面是代码,一直是:网页有错误
<head runat="server">
<title>无标题页</title>
<link href="style/genl.css" rel="Stylesheet" type="text/css" />
<script>
function openModal()
{
var id = this.id;
var xmlhttp=new ActiveXObject("microsoft.xmlhttp")
xmlhttp.send("style/Newind.aspx?id="+id);
window.showModalDialog("style/Newind.aspx");
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div> <div id="dividad" onclick="openModal()" runat="server">
</div> <div id="dividasdf" onclick="openModal()" runat="server">
</div>
</div>
</form>
</body>
解决方案 »
- Flash如何与ASP。net进行交互
- 一說到求助,咱csdn的人最熱情
- 数据库的增加和查询问题,在线等!!!
- DataGrid嵌套问题:如何将一个表中的大标题和对应的另一个表中的小标题分组显示出来并进行编辑操作?
- 用DataGrid显示记录,但分页写在存储过程里面,在程序里调用。这样的源码哪里有啊??
- 未能在设计视图中打开,在<%..."值"...%>块中,以不同方式将值括起来.
- Http下载文件名不一致问题,怎么解决
- 不放在app_code里的话应该怎么办
- 在哪里可以找关于微软发布的控件iewebcontrols的详细使用方法,而不只是viewtree
- B/S下面的票据套打,帮个帮
- 求一个在线HTML WORD编辑器
- 用for如何达到同时循环
{
var xmlhttp=new ActiveXObject("microsoft.xmlhttp")
xmlhttp.send("style/Newind.aspx?id="+id);
window.showModalDialog("style/Newind.aspx");
} <div id="dividad" onclick="openModal(this.id)" runat="server">
</div>
字符:7
错误:未指定的错误这个页面,就写了一个<script>脚本,
我想是不是这句:
window.showModalDialog("style/Newind.aspx");
产生一个模拟对话框的问题
另外style/Newind.aspx页,是这样接收数据么?
string strid = Request.QueryString["id"];