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. problem in executing javascript from an update panel.

problem in executing javascript from an update panel.

Scheduled Pinned Locked Moved ASP.NET
javascripthelpannouncement
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.
  • S Offline
    S Offline
    souravghosh18
    wrote on last edited by
    #1

    Hi all, In my application i am opening a window through javascript from the code behind on the click event of an asp button. But the problem is when i am placing the button inside an update panel the window is not opening.otherwise it is working. Can anybody give me any way to solve it.

    V P B 3 Replies Last reply
    0
    • S souravghosh18

      Hi all, In my application i am opening a window through javascript from the code behind on the click event of an asp button. But the problem is when i am placing the button inside an update panel the window is not opening.otherwise it is working. Can anybody give me any way to solve it.

      V Offline
      V Offline
      Venkatesh Mookkan
      wrote on last edited by
      #2

      Are you Registering any startup event for the Button in the codebehind to open the window? If yes, ClientScript class would not work in UpdatePanel. You ScriptManager's Register function.

      Castle Rider

      What if I freeze??? Don't forget to breath...

      My: Website | Yahoo Group | Blog Spot

      /xml>

      1 Reply Last reply
      0
      • S souravghosh18

        Hi all, In my application i am opening a window through javascript from the code behind on the click event of an asp button. But the problem is when i am placing the button inside an update panel the window is not opening.otherwise it is working. Can anybody give me any way to solve it.

        P Offline
        P Offline
        Pranay Rana
        wrote on last edited by
        #3

        its because when postback occurs it removes javascript so to resolve this problem you require to register click event of the button again.

        For more help : pranayamr.blogspot.com

        1 Reply Last reply
        0
        • S souravghosh18

          Hi all, In my application i am opening a window through javascript from the code behind on the click event of an asp button. But the problem is when i am placing the button inside an update panel the window is not opening.otherwise it is working. Can anybody give me any way to solve it.

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

          Can you post your code snippet? This will help us in answering.. Cheers!! Brij Check my latest Article :URL Routing with ASP.NET 4.0

          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