Click here to Skip to main content
15,894,234 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have put linkbutton in repeater control. On clicking linkbutton popup will b displayed.... in popup i have textbox. i want to insert text entered into textbox into table, but i can't access the text entered in textbox on submit button's click event.....


Reply me.......
Posted

1 solution

Hiren,

You can access the parent window objects in the child window using the window.opener property. You can place a hidden field in your parent window (say with id - hidText), you set that field in click windows closing (or any event) like -
JavaScript
window.opener.document.getElementById('hidText').value = enteredtext;


you can get the value from hidden field on your submit button click.

for more - http://www.webreference.com/js/tutorial1/opener.html
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900