alter()一下返回的值,看是不是空
解决方案 »
- 有人帮我把ASP里的服务器端脚本改成asp.net中放在<%%>中的后台代码吗?
- 关于GridView或者其他控件能实现都行。
- System.Web.Mail发邮件出错,求救!!SOS
- count(*)达到300多万条的时候会很慢......
- 小弟没分了,但是有一个 很紧手的Ajax问题,希望大家帮助
- 在DataGrid中,如何改变自定分页样式?
- 传递参数的问题,帮个忙!!!!!!!!!!!!!!!
- 请教:Web页面上弹出带逻辑处理的窗体???
- fineui添加的按钮实现关闭当前窗口遇到问题
- 为什么我建的Web应用程序执行后无法显示页面上的控件?一定给分
- 下面的net代码什么意思,请大侠解释下!
- ConnectionString属性尚未初始化
<input type='button' onclick='window.returnValue="add";window.close();'/>
父窗口前台:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript">
function refreshAddData()
{
document.getElementById("<%=txbQuery.ClientID %>").value = "刷新后的值";
}
function ShowWindow()
{
var returnValue = showModalDialog('child.aspx');
if(returnValue == 'add'){refreshAddData();}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="btnAdd" runat="server" Text="新 增" OnClientClick="ShowWindow();return false;" />
<asp:Button ID="txbQuery" Text="aaa" runat="server" />
</div>
</form>
</body>
</html>子窗口前台:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript">
function bb()
{
if (confirm('您确定关闭吗')){window.returnValue = 'add';window.close();}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="btnExit" runat="server" Text="关 闭" OnClientClick=" bb();return false;"/>
</div>
</form>
</body>
</html>