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. script error

script error

Scheduled Pinned Locked Moved ASP.NET
helptoolsquestion
4 Posts 4 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.
  • R Offline
    R Offline
    rajkumar 3
    wrote on last edited by
    #1

    Btn_CloseWindow.OnClientClick = "window.close();"; this line is not executing when pressing button first time ? it working from second click please help me in this. Regards Rajkumar.

    V R J 3 Replies Last reply
    0
    • R rajkumar 3

      Btn_CloseWindow.OnClientClick = "window.close();"; this line is not executing when pressing button first time ? it working from second click please help me in this. Regards Rajkumar.

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      What is the error?

      Vasudevan Deepak Kumar Personal Homepage
      Tech Gossips
      A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

      1 Reply Last reply
      0
      • R rajkumar 3

        Btn_CloseWindow.OnClientClick = "window.close();"; this line is not executing when pressing button first time ? it working from second click please help me in this. Regards Rajkumar.

        R Offline
        R Offline
        rahul net11
        wrote on last edited by
        #3

        use Btn_CloseWindowAttribute.add("Onclick", "javascript:window.close();") hope this help.

        People Laugh on me Because i am Different but i Laugh on them Because they all are same.

        1 Reply Last reply
        0
        • R rajkumar 3

          Btn_CloseWindow.OnClientClick = "window.close();"; this line is not executing when pressing button first time ? it working from second click please help me in this. Regards Rajkumar.

          J Offline
          J Offline
          J a a n s
          wrote on last edited by
          #4

          Can you please confirm where you wrote this code, on page load or click of the button itself?

          *jaans

          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