Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. showmodaldialog

showmodaldialog

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    baselanfouqa
    wrote on last edited by
    #1

    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??

    A 1 Reply Last reply
    0
    • B baselanfouqa

      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??

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      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.

      B 1 Reply Last reply
      0
      • A Abhijit Jana

        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.

        B Offline
        B Offline
        baselanfouqa
        wrote on last edited by
        #3

        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

        B 1 Reply Last reply
        0
        • B baselanfouqa

          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

          B Offline
          B Offline
          Brij
          wrote on last edited by
          #4

          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

          B 1 Reply Last reply
          0
          • B Brij

            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

            B Offline
            B Offline
            baselanfouqa
            wrote on last edited by
            #5

            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)

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups