Need pop up page values in the parent page
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?



Krishna GaradRank #191 · 12.8K reputationPosted Aug 1, 2011, 2:45 AM EDT
B M SuchitraRank #2,922 · 492 reputationPosted Aug 1, 2011, 3:02 AM EDT
The file u have attached i tried to run it in VS 2008. It gives me an error that onclick is not a valid attribute. Thats y i said in previous reply that its not working.. Also i have to pass dropdown selected values from pop up page to parent page.
@Suthish,
Sir where have u passed the openpopup function in the 1st page?
Krishna GaradRank #191 · 12.8K reputationPosted Aug 1, 2011, 3:19 AM EDT
B M SuchitraRank #2,922 · 492 reputationPosted Aug 1, 2011, 3:30 AM EDT
I did exactly the same as you told but its not working. Is there any other alternative to my requirement.
I really got exhausted
Krishna GaradRank #191 · 12.8K reputationPosted Aug 1, 2011, 3:41 AM EDT
If popup not getting open check your browser allows popup windows.
If you are using button control on popup window and providing OnClick="javascript:f2();" as attribute then it will give the error it's server side event for client side you need to provide like for button control onclientclick="javascript:f2();" which is client side event.
if your are using hyperlink then onclick is valid.
Please elaborates what's the error is occuring?.
Suthish NairRank #92 · 22.8K reputationPosted Aug 1, 2011, 12:28 PM EDT
Page1:
Page2:
protected void Page_Load(object sender, EventArgs e)
Try this sample..