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. Popup Control

Popup Control

Scheduled Pinned Locked Moved ASP.NET
helpquestionannouncement
11 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.
  • J Offline
    J Offline
    jonhbt
    wrote on last edited by
    #1

    I am using a Ajax Modal Popup control for displaying error messages. it is a simple panel with a lable and a button. I am setting the .Text option of the label = to the error message string version but when I show the popup the .Text of the label is not shown. The property is filed because I 've made a watch on it an it contains the error but it is not displayed. Can someone help please?

    S 1 Reply Last reply
    0
    • J jonhbt

      I am using a Ajax Modal Popup control for displaying error messages. it is a simple panel with a lable and a button. I am setting the .Text option of the label = to the error message string version but when I show the popup the .Text of the label is not shown. The property is filed because I 've made a watch on it an it contains the error but it is not displayed. Can someone help please?

      S Offline
      S Offline
      saanj
      wrote on last edited by
      #2

      Are you using partial updates with AJAX? Just check whether the label control is inside the update panel and whether the trigger is set properly if update mode is set to conditional.

      Either you love IT or leave IT...

      J A 2 Replies Last reply
      0
      • S saanj

        Are you using partial updates with AJAX? Just check whether the label control is inside the update panel and whether the trigger is set properly if update mode is set to conditional.

        Either you love IT or leave IT...

        J Offline
        J Offline
        jonhbt
        wrote on last edited by
        #3

        the button which is calling the popup is insid the update panel while the popup is outside the update panel. May be this is the cause? How can I solve it?

        S 1 Reply Last reply
        0
        • S saanj

          Are you using partial updates with AJAX? Just check whether the label control is inside the update panel and whether the trigger is set properly if update mode is set to conditional.

          Either you love IT or leave IT...

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

          saanj, late to wish.. Congrats for Sharepoint Forum:) . BTW: I think you have missed out Fossils name in your favorite music band list. Am i correct ? ;)

          cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net

          S 1 Reply Last reply
          0
          • A Abhijit Jana

            saanj, late to wish.. Congrats for Sharepoint Forum:) . BTW: I think you have missed out Fossils name in your favorite music band list. Am i correct ? ;)

            cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net

            S Offline
            S Offline
            saanj
            wrote on last edited by
            #5

            Hey Abhijeet, Congrats to you as well and thanks for your wish and support. Cactus is the band which I might have missed in my list but I am quite sure that Fossils is in your list right? It feels great to hear from you. :-\ Regards Saanj

            Either you love IT or leave IT...

            A 1 Reply Last reply
            0
            • J jonhbt

              the button which is calling the popup is insid the update panel while the popup is outside the update panel. May be this is the cause? How can I solve it?

              S Offline
              S Offline
              saanj
              wrote on last edited by
              #6

              Do you set the text property of the label control on the button click event?

              Either you love IT or leave IT...

              J 1 Reply Last reply
              0
              • S saanj

                Do you set the text property of the label control on the button click event?

                Either you love IT or leave IT...

                J Offline
                J Offline
                jonhbt
                wrote on last edited by
                #7

                Yes. does that affect the update panel?

                S 1 Reply Last reply
                0
                • S saanj

                  Hey Abhijeet, Congrats to you as well and thanks for your wish and support. Cactus is the band which I might have missed in my list but I am quite sure that Fossils is in your list right? It feels great to hear from you. :-\ Regards Saanj

                  Either you love IT or leave IT...

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

                  Ya.. I like both of them even many more in the list. ;) Keep in touch.

                  cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net

                  1 Reply Last reply
                  0
                  • J jonhbt

                    Yes. does that affect the update panel?

                    S Offline
                    S Offline
                    saanj
                    wrote on last edited by
                    #9

                    Please correct me if I got anything wrong. You are doing two tasks on button submit. One is setting the text of the label control on server side. The second one is to show the modal popup on client side. If the second one is true, then you will never be able to set the text property of the label control because the server side code to set the text will never be executed. :( If I got the right situation then I may suggest you to call the ModalPopup from code-behind so that you can also set the text of the label control in one go: ModalPopupExtender1.Show(); Label1.Text = "Yeppi, blah, blah, blah"; But showing the modal popup on a server side event may not be a best case. Check it and revert back to me in case of any confusion. Regards Saanj

                    Either you love IT or leave IT...

                    J 1 Reply Last reply
                    0
                    • S saanj

                      Please correct me if I got anything wrong. You are doing two tasks on button submit. One is setting the text of the label control on server side. The second one is to show the modal popup on client side. If the second one is true, then you will never be able to set the text property of the label control because the server side code to set the text will never be executed. :( If I got the right situation then I may suggest you to call the ModalPopup from code-behind so that you can also set the text of the label control in one go: ModalPopupExtender1.Show(); Label1.Text = "Yeppi, blah, blah, blah"; But showing the modal popup on a server side event may not be a best case. Check it and revert back to me in case of any confusion. Regards Saanj

                      Either you love IT or leave IT...

                      J Offline
                      J Offline
                      jonhbt
                      wrote on last edited by
                      #10

                      I am currently doing like that but it is not working

                      S 1 Reply Last reply
                      0
                      • J jonhbt

                        I am currently doing like that but it is not working

                        S Offline
                        S Offline
                        saanj
                        wrote on last edited by
                        #11

                        Post the code.

                        Either you love IT or leave IT...

                        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