help on popup window
-
i have a popup window with ok button. on parent window i have getValue button. when i click on get value button popup window is shown. on ok button click of popup window i want the values of the text box to be asigned to the textbox in parent window. popup window is a user control. and i use this user control with many pages. please help
-
i have a popup window with ok button. on parent window i have getValue button. when i click on get value button popup window is shown. on ok button click of popup window i want the values of the text box to be asigned to the textbox in parent window. popup window is a user control. and i use this user control with many pages. please help
Are you using javascript modal dialog?
Arun Jacob http://codepronet.blogspot.com/
-
i have a popup window with ok button. on parent window i have getValue button. when i click on get value button popup window is shown. on ok button click of popup window i want the values of the text box to be asigned to the textbox in parent window. popup window is a user control. and i use this user control with many pages. please help
There are several ways to do this,You can access the control of parent window from popup.So you can assign the value to parent window. For making it generic,Have some property in your popup usercontrol assign the id control on parent window to it and access it as you want.
Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators
-
i have a popup window with ok button. on parent window i have getValue button. when i click on get value button popup window is shown. on ok button click of popup window i want the values of the text box to be asigned to the textbox in parent window. popup window is a user control. and i use this user control with many pages. please help
on parent page
</pre>
on your user control
<pre>
<script language="javascript">function GetTextboxValue(val)
{
// hardcoded value used to minimize the code. // ControlID can instead be passed as query string to the popup window window.opener.document.getElementById("ctl00\_ContentPlaceHolder1\_TextBox2").value = val; window.close();
}
-
Are you using javascript modal dialog?
Arun Jacob http://codepronet.blogspot.com/
-
There are several ways to do this,You can access the control of parent window from popup.So you can assign the value to parent window. For making it generic,Have some property in your popup usercontrol assign the id control on parent window to it and access it as you want.
Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators
in windows what we do if we display a popup window with showdialog() method, after returning control to parent window code starts execution from there so it becomes easy to asign the value of popup window controls to parent window controls. how to do it here in web
-
in windows what we do if we display a popup window with showdialog() method, after returning control to parent window code starts execution from there so it becomes easy to asign the value of popup window controls to parent window controls. how to do it here in web
On click of OK button of your popup window you can pass the value in parent control from popup itself
Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators
-
i have a popup window with ok button. on parent window i have getValue button. when i click on get value button popup window is shown. on ok button click of popup window i want the values of the text box to be asigned to the textbox in parent window. popup window is a user control. and i use this user control with many pages. please help