在弹出页面上找不到父控件 [英] unable to find parent control on pop up page

查看:60
本文介绍了在弹出页面上找不到父控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我正在从父页面打开一个弹出页面.我需要将弹出页面控件的值获取到父页面控件.但是我无法在弹出页面上找到父控件.我所有的父控件都在内容占位符中这是我在弹出页面上用来查找父控件的代码....

Hello All,
I am opening a popup page from a parent page.I needs to get the popup page controls value to the parent page control.But I am unable to find the parent control on popup page.My all parent control are with in the content place holder.Here is my code thatI am using on popup page to find the parent control....

window.opener.document.getElementById("<%=lbl_priceir.ClientID %>").innerHTML = 5000;

 window.opener.document.getElementById("<%=lbl_priceir.ClientID %>").focus();



但是它显示错误消息lbl_priceir没有在弹出页面中定义,但是在我的父页面中可用....可以有人帮助我修复此问题吗?



but it showing the error that lbl_priceir are not defined in the popup page but in my parent page it is available....may anybody help me to fix this prob...

推荐答案

您好,

我不确定.请尝试,它对我有用.

Hi,

Iam not sure of this.Please try like,it worked for me.

window.opener.document.getElementById("ctl00_CRPPlaceHolder_lbl_priceir").value=5000;



希望这会有所帮助.



Hope this helps.


这篇关于在弹出页面上找不到父控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆