Hi,
I have attached the files. The startup page is frmcontacts. When users checks a checkbox opo up page opens. User enters the data and clicks ok. At the ok button click on pop up page all the textbox values should be displayed in the frmcontacts txtaddress.text.. How to do it?
Loading


Krishna GaradPosted Aug 2, 2011, 3:13 AM
B M SuchitraPosted Aug 2, 2011, 2:27 AM
Then what is the solution for my problem?
Krishna GaradPosted Aug 2, 2011, 2:13 AM
B M SuchitraPosted Aug 2, 2011, 2:05 AM
In your attachment u r hard coding the dropdown control.
But i have loaded the control from database table. Is it because of that i am not able to get the values in parent page?
B M SuchitraPosted Aug 2, 2011, 12:16 AM
Its must work. Ur attachment does not open it is giving some error.
Plzz can u go through this attachment and correct me..
Thanks
Krishna GaradPosted Aug 2, 2011, 12:08 AM
B M SuchitraPosted Aug 2, 2011, 12:03 AM
I replaced it and called the function like this:
But still not working. Dont know where it is going wrong
Krishna GaradPosted Aug 1, 2011, 11:56 PM
with
window.opener.document.getElementById('txtaddress').value = address;
and call the function on your ok button onclientclick.
B M SuchitraPosted Aug 1, 2011, 11:51 PM
This is the SubmitPage() function i have written:
But don`t know y it is not working
Krishna GaradPosted Aug 1, 2011, 11:44 PM
it will pass the values of popup window to perrent window i.e frmcontacts.aspx
B M SuchitraPosted Aug 1, 2011, 11:34 PM
Pop up is opening but values from pop up page are not getting passed to the parent page. In the pop up page i have drop down controls who`s values also should be passed to parent page..
Like this. In the pop up page user enters street,city,state,country,zipcode. All these values should get passed to txtaddress.text of the parent page
@Suthish,
Sir where have u passed the openpopup() function in the 1st page.. I want it at the checkbox checked
Suthish NairPosted Aug 1, 2011, 4:28 PM
Page1:
Page2:
protected void Page_Load(object sender, EventArgs e)
Try this sample..