0 Replies - 2276 Views - Last Post: 16 March 2010 - 12:02 PM Rate Topic: -----

#1 vivekrane1986  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 102
  • Joined: 02-August 08

Set the value in Parent Form for master page

Posted 16 March 2010 - 12:02 PM

Hi All,

I am facing a problem while writing values in textbo x of parent window using javascript.

I have an application with master page. I am creating a find form for the same. On Click of find button I open a new window with search data in it.
Now when user clicks on the required data I add the first column value in Hidden field of Parent page.
My code is

here SearchId is HTML hidden field
<script language="javascript">

window.opener.document.getElementById('SearchId').value='1234';
window.close();

</script>



I am getting the value of "window.opener.document.getElementById('SearchId').value" as undefined.

I did try with ClientID but I don't know how to get the ClientID in child form (In this case in find form)

Please help its a bit urgent.

Thanks and Regards,
Vivek

Is This A Good Question/Topic? 0
  • +

Page 1 of 1