为什么弹出窗口不返回值?
程序是这样的,一窗口有病人编号,病历编号等,点击选择弹出一个窗口,从中选择一个病历,通过js将这个病历的病人编号与病历编号返回给上一个窗口,为什么,返回去的是空值呢?
第一个窗口
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ResultAdd.aspx.cs" Inherits="ExamResult_ResultAdd" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>添加检查结果</title>
</head>
<script language="javascript" type="text/javascript">
function newpage(htmlurl,nh,nw) {
window.open(htmlurl,"newWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=20,left=200,width="+nw+",height="+nh);
}
</script>
<body>
<form id="form1" runat="server">
<div>
<table border=0 cellpadding=0 cellspacing=0 style="width: 773px">
<tr>
<td style="width: 100px; height: 24px;">
<asp:Label ID="Label1" runat="server" Text="病历摘要编号" Font-Size="10pt"></asp:Label></td>
<td style="width: 45px; height: 24px;">
<asp:TextBox ID="TxtDocID" runat="server"></asp:TextBox></td>
<td style="width: 45px; height: 24px;">
<span style="color: #0000ff; text-decoration: underline"><a href="#" onclick="return newpage('../Pub/SelectDoc.aspx',500,800);">选择</a></span></td>
<td style="width: 100px; height: 24px;">
<asp:Label ID="Label2" runat="server" Text="病人编号" Font-Size="10pt"></asp:Label></td>
<td style="width: 69px; height: 24px;">
<asp:TextBox ID="TxtPID" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 100px">
<asp:Label ID="Label12" runat="server" Font-Size="10pt" Text="病人姓名"></asp:Label></td>
<td style="width: 45px">
<asp:TextBox ID="TxtPName" runat="server"></asp:TextBox></td>
<td style="width: 45px">
</td>
<td style="width: 100px">
<asp:Label ID="Label11" runat="server" Font-Size="10pt" Text="病人权限"></asp:Label></td>
<td style="width: 69px">
<asp:CheckBox ID="CheckBox1" runat="server" Width="119px" /></td>
</tr>
<tr>
<td style="width: 100px">
<asp:Label ID="Label3" runat="server" Text="检查日期" Font-Size="10pt"></asp:Label></td>
<td style="width: 45px">
<input id="Text5" ty