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. ajax modal popup

ajax modal popup

Scheduled Pinned Locked Moved ASP.NET
regexhelpquestion
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.
  • M Offline
    M Offline
    m dhu
    wrote on last edited by
    #1

    Hi im using ajax modal popupextender.. panel consisting of a captcha image,textbox and a button control.. How can i display error message in modal popup itself. if the condition is false i.e, if textbox value doesnt match with captcha...

    B 1 Reply Last reply
    0
    • M m dhu

      Hi im using ajax modal popupextender.. panel consisting of a captcha image,textbox and a button control.. How can i display error message in modal popup itself. if the condition is false i.e, if textbox value doesnt match with captcha...

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

      Have a label to show the error message.Initially hide it, and show the when there is an error.. Are you asking something else?

      Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators

      M 1 Reply Last reply
      0
      • B Brij

        Have a label to show the error message.Initially hide it, and show the when there is an error.. Are you asking something else?

        Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators

        M Offline
        M Offline
        m dhu
        wrote on last edited by
        #3

        once i click on the button in modal up it disappears whether textbox value is matches or not... I want to display in modal pop up itself if textbox value is false....

        B M 2 Replies Last reply
        0
        • M m dhu

          once i click on the button in modal up it disappears whether textbox value is matches or not... I want to display in modal pop up itself if textbox value is false....

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

          there must be postback on button click,after postback the modelpop will hide.Do one thing ,Attach a clientside event, validate the request if there is an error, show from javascript itself. and if there is no error continue with postback.

          Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators

          1 Reply Last reply
          0
          • M m dhu

            once i click on the button in modal up it disappears whether textbox value is matches or not... I want to display in modal pop up itself if textbox value is false....

            M Offline
            M Offline
            michaelschmitt
            wrote on last edited by
            #5

            You can also solve this "issue" by calling the Show Method of the extender again within you button click-event (when you're also setting your error-message). This prevents the modal-popup from hiding. Example:

            if (error)
            {
            lblError.Text ="Something is wrong";
            myPopupExtender.Show();
            }
            else
            {
            // doing nothing hides the popup automatically during postback
            }

            Michael

            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