showmodaldialog
-
hi there, am using showmodaldialog to open a page to validate password, the thing is i want it to take the oldpassword and check if its right after putting it in a textbox, how clud i pass parameters (tbPassword.text)so that i can validate it on new page , and how to return value to the main page??
-
hi there, am using showmodaldialog to open a page to validate password, the thing is i want it to take the oldpassword and check if its right after putting it in a textbox, how clud i pass parameters (tbPassword.text)so that i can validate it on new page , and how to return value to the main page??
Why are you trying to validate password in popup window. you can validate the same in your parent window itself. Is there any special requirement for that. You can access the parent control...
window.opener.FormName.control.value
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
Why are you trying to validate password in popup window. you can validate the same in your parent window itself. Is there any special requirement for that. You can access the parent control...
window.opener.FormName.control.value
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
how, am having truoble to passing parameters?? 2 be more clear the showmodaldialog opens a page with 3 textboxes(oldpassword, newpassword, confirmnew) and i want it to check if oldpassword valid then adding the newpassword and return it to main page
-
how, am having truoble to passing parameters?? 2 be more clear the showmodaldialog opens a page with 3 textboxes(oldpassword, newpassword, confirmnew) and i want it to check if oldpassword valid then adding the newpassword and return it to main page
-
you can validate the passowrd at popup and have some hidden field/textbox(anything where you want the new password) in parent form as Abhijit suggested to access the control of parent window from popup.. Does it solve your problem?
Cheers!! Brij
but i stilll dont know how to pass parameters throw showmodaldialog which am writing like main:- function show() { window.showmodaldialog("Password.aspx", "","resizable:off;dialogheight:10cm); var ss = document.getelementbyID("tbPassword").text; } child:- function showParam() { alert(window.dialogArguments); } is this valid, or some thing missing because on childpage (object expected)