有一个datagrid:<asp:datagrid id="dgrdReqLine">
<Columns>
<asp:TemplateColumn HeaderText="物资编码">
<ItemTemplate>
<asp:Label id="lblPartNo" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.物资编码") %>'></asp:Label>
</ItemTemplate>
<FooterTemplate>
<asp:TextBox id="txtPartNo" MaxLength="14" Width="120" runat="server"></asp:TextBox>
<img src="..\Images\Find.gif" onclick="Javascript:window.open('ValueList.aspx');">
</FooterTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid>点击image后打开了ValueList.aspx页面,我在选取了一个值后就关闭这个页面返回,并需要把值赋给原来页面中页脚FooterTemplate里的id为txtPartNo的textbox控件。在下面的语句中
<script language=JavaScript>window.opener.document.all.*.value='" & e.Item.Cells(1).Text & "';window.close();</script>"
* 处我应该怎么写?
<Columns>
<asp:TemplateColumn HeaderText="物资编码">
<ItemTemplate>
<asp:Label id="lblPartNo" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.物资编码") %>'></asp:Label>
</ItemTemplate>
<FooterTemplate>
<asp:TextBox id="txtPartNo" MaxLength="14" Width="120" runat="server"></asp:TextBox>
<img src="..\Images\Find.gif" onclick="Javascript:window.open('ValueList.aspx');">
</FooterTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid>点击image后打开了ValueList.aspx页面,我在选取了一个值后就关闭这个页面返回,并需要把值赋给原来页面中页脚FooterTemplate里的id为txtPartNo的textbox控件。在下面的语句中
<script language=JavaScript>window.opener.document.all.*.value='" & e.Item.Cells(1).Text & "';window.close();</script>"
* 处我应该怎么写?
解决方案 »
- 谁知道这个网站原理,100分是你的了。。解决马上结贴
- 外部获取Repeater当前行的索引,提示未将对象初始化
- ASP.net的服务器控件和javascript之间的问题?
- w3wp.exe 进程占用50%,甚至于100% CPU资源,服务器2个CPU
- |M| 第二贴: 更新数据库表问题:让表中一个日期型的字段为空""
- 高分求解有关字符中取字符的问题?
- 一个框架页面被window.navigate后的转向问题?
- 从数据库提取时间的问题,请大家帮忙
- 国际双语版:呆呆在受与恨的锑刀边缘,该如何抉择?选择为什么这么难。。。
- 请问这些功能怎么实现呀?
- 我想将web页面里的东西转成JPG文件,保存到客户机器上,怎么作
- 请问这样的要求用哪种技术实现最好?
如果你想用第二种办法,那你发e_mail给我[email protected]
strScript += "window.parent.close()" + vbCrLf