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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Javascript not working after .net2 migration.

Javascript not working after .net2 migration.

Scheduled Pinned Locked Moved ASP.NET
csharpjavascripthelpquestion
5 Posts 2 Posters 1 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.
  • I Offline
    I Offline
    imnotso
    wrote on last edited by
    #1

    Hi, I had a working popup from an input button at .net 1.0. We have recently converted the application to .net2 and now the pop-up does not fire. I have compared the view source on both frameworks, they are the same. I add the javascript at runtime as the button lives in a control along with all the other buttons. PreviewButton.Attributes.Add("OnClick", "window.open('"+ Preview +"','','toolbar=1,resizable=1,scrollbars=1')"); I have stepped through the code and all the same lines are executed. Am I missing some trick that .net2 will not fire this pop up? Any help welcome. Harvey

    Y 1 Reply Last reply
    0
    • I imnotso

      Hi, I had a working popup from an input button at .net 1.0. We have recently converted the application to .net2 and now the pop-up does not fire. I have compared the view source on both frameworks, they are the same. I add the javascript at runtime as the button lives in a control along with all the other buttons. PreviewButton.Attributes.Add("OnClick", "window.open('"+ Preview +"','','toolbar=1,resizable=1,scrollbars=1')"); I have stepped through the code and all the same lines are executed. Am I missing some trick that .net2 will not fire this pop up? Any help welcome. Harvey

      Y Offline
      Y Offline
      Yusuf
      wrote on last edited by
      #2

      do you have any pop-up blocker?

      Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

      I 1 Reply Last reply
      0
      • Y Yusuf

        do you have any pop-up blocker?

        Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

        I Offline
        I Offline
        imnotso
        wrote on last edited by
        #3

        I don't no, it just seems to be since the .net 2 upgrade.

        Y 1 Reply Last reply
        0
        • I imnotso

          I don't no, it just seems to be since the .net 2 upgrade.

          Y Offline
          Y Offline
          Yusuf
          wrote on last edited by
          #4

          Well, this one opens new pop up window for me. try it in your code. also notice return false; this will prevent postback Button1.Attributes.Add("onclick", "window.open('www.codeproject.com'); return false;");

          Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

          I 1 Reply Last reply
          0
          • Y Yusuf

            Well, this one opens new pop up window for me. try it in your code. also notice return false; this will prevent postback Button1.Attributes.Add("onclick", "window.open('www.codeproject.com'); return false;");

            Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

            I Offline
            I Offline
            imnotso
            wrote on last edited by
            #5

            thanks Yusuf, I'll try it out... I just wondered wether the conversion in Visual Studio worked correctly...

            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