模态窗口的页面;;
<%@ import namespace="SophiaOffice.OperationService.EvaService"%>
<%@ Page language="c#" Codebehind="EditEvaDeptIndexColle.aspx.cs" AutoEventWireup="false" Inherits="SophiaOffice.EvaLution.EditEvaDeptIndexColle" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
<title>指标打分窗口,请您仔细填写各个指标项目...................................................................................................................</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="../Sophiaoffice.css" type="text/css" rel="stylesheet">
<%        string EvaType="";
string EvaPlanGuid="";
string ObjectGuid="";
          if ((Request.QueryString["EvaType"] != null) && (Request.QueryString["EvaType"] != "")) 
{
EvaType=Request.QueryString["EvaType"].ToString ();
}
           if ((Request.QueryString["EvaPlanGuid"] != null) && (Request.QueryString["EvaPlanGuid"] != "")) 
{
EvaPlanGuid=Request.QueryString["EvaPlanGuid"].ToString ();
}           if ((Request.QueryString["ObjectGuid"] != null) && (Request.QueryString["ObjectGuid"] != "")) 
{
ObjectGuid=Request.QueryString["ObjectGuid"].ToString ();
}

%>
<script language="javascript">
function GetIndeList()
{
 var SysGuid;
 SysGuid=InedexCollSel.value;
 if (InedexCollSel.value =='ALL')
 {
    GsInput.value ='现实全部指标体系以及相应的指标项目.......';    
 }
 else
 {
    if(InedexCollSel.value =='1')
     {
        GsInput.value ='您选择了指标体系一,将现实具体的指标体系一下面的所有的指标项目.......';
     }
   
 }
 window.frames['fraIndexList'].location = 'GetIndex_List.aspx?IndexSysGuid='+SysGuid+'&EvaType=<%=EvaType%>&EvaPlanGuid=<%=EvaPlanGuid%>&ObjectGuid=<%=ObjectGuid%>';

}
function Search()
{
window.frames['fraIndexList'].location = 'GetIndex_List.aspx';
}
function NextStep()
{
var r;
if (window.frames['fraIndexList'].document.all.length>4)
{
r = window.frames['fraIndexList'].window.GetSelection();

if (r == '')
{
alert ('请在列表中选择一个用户。');
return;
}
window.parent.returnValue = r;
window.parent.close();
}
else
{
alert('请选择人员。');
}
}
</script>
</HEAD>
<body MS_POSITIONING="GridLayout">
<table height="100%" cellSpacing="0" width="100%" border="0">
<tr bgColor="slategray" height="50">
<td colSpan="2"><font color="white" size="3">&nbsp;&nbsp;<STRONG>请选择需要的指标体系</STRONG></font>&nbsp;
</td>
</tr>
<tr height="1%">
<td noWrap align="center" width="30%">指标体系
</td>
<td><select id="InedexCollSel" style="WIDTH: 100%" align="top" onchange='GetIndeList()'>
<option value="ALL" selected>显示全部指标</option>
<option value="1">指标体系二</option>
<option value="2">指标体系三</option>
<option value="3">指标体系四</option>
</select>
</td>
</tr>
<tr height="1%">
<td noWrap align="center" width="30%">指标体系概述
</td>
<td><TEXTAREA id="GsInput" title="指标体系简介" style="WIDTH: 100%; CURSOR: crosshair; BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BACKGROUND-COLOR: transparent; BORDER-BOTTOM-STYLE: none"
rows="3" readOnly></TEXTAREA>
</td>
</tr>
<tr height="10">
<td colSpan="2">&nbsp;</td>
</tr>
<tr height="99%">
<td align="center" colSpan="2"><iframe id="fraIndexList" width="100%" height="100%" style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none"></iframe>
</td>
</tr>

</table>
</body>
</HTML>
模态窗口中fraindexlist中间调用的页面<%@ Page language="c#" Codebehind="GetIndex_List.aspx.cs" AutoEventWireup="false" Inherits="SophiaOffice.EvaLution.GetIndex_List" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>指标打分页面</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="../Sophiaoffice.css" type="text/css" rel="stylesheet">
</HEAD>
<body leftMargin="0" topMargin="0" rightMargin="0" MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<TABLE id="Table1" cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR>
<TD align="center" height="1"></TD>
</TR>
<TR>
<TD align="left"><FONT face="宋体">
<TABLE id="Table2" style="BORDER-COLLAPSE: collapse" cellSpacing="0" cellPadding="2" width="100%"
border="1">
<TR bgColor="#e0e0e0">
<TD noWrap align="center">指标体系</TD>
<TD noWrap align="center">体系权重</TD>
<TD noWrap align="center">指标项</TD>
<TD noWrap align="center">指标项权重</TD>
<TD noWrap align="center">指标等级选择</TD>
<TD noWrap align="center">指标销售分数</TD>
<TD noWrap align="center">打分备注</TD>
</TR>
<TR>
<TD noWrap align="center">送货科指标体系</TD>
<TD noWrap align="center">50%</TD>
<TD noWrap align="center">送货满意度</TD>
<TD noWrap align="center">30%</TD>
<TD noWrap align="center">
<select id="SELE_1" style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" onchange ='selectchenge(2)' >
<option value="A">A等级</option>
<option value="B">B等级</option>
<option value="C">C等级</option>
<option value="D" selected>D等级</option>
</select>
</TD>
<TD noWrap align="center"><input type="text" id="textbox_1" value="90" size="5"  disabled=true ></TD>
<TD noWrap align="center"><textarea name="textarea" cols="20" rows="2"></textarea></TD>
</TR>
<TR>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
</TR>
</TABLE>
</FONT>
</TD>
</TR>
<TR>
<TD align="center"><asp:label id="Label1" runat="server"></asp:label><asp:button id="Button1" runat="server" Text="提交打分结果"></asp:button></TD>
</TR>
</TABLE>


</form>
<script language ="javascript" >
  function selectchenge(indexid)
{
 textox_1.value=SELE_1.value ;

 

}
</script>
</body>
</HTML>

解决方案 »

  1.   

    你看看里面的源代码
    http://fason.nease.net/zhuanti/tree/dtree/dtree.htm
      

  2.   

    // textox_1.value=SELE_1.value ;
      ~~~~~~~~~~
     textbox_1.value = SELE_1.value;对象名写错了
      

  3.   

    >>>会弹出一个新窗口if you are using IE5.5/6, add this line to your page
    <base target="_self">
      

  4.   

    这个问题,我已经搞定了,原来就是范了一个小错误,就是我在javascript里面,忘记加form1这个对象了,所以总是找不到对象了噢!呵呵,,,sorry!!!大家我准备揭帖了噢。。