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. how to enable javascript within a ajax control

how to enable javascript within a ajax control

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

    In my application I want to call a java script in a button click at the code behind.And the button is inside an update panel.But the java script is not working.If i place the button out side the update panel then it is working.My question is how to call the java script by placing the button inside the update panel?

    P 1 Reply Last reply
    0
    • B bunka84

      In my application I want to call a java script in a button click at the code behind.And the button is inside an update panel.But the java script is not working.If i place the button out side the update panel then it is working.My question is how to call the java script by placing the button inside the update panel?

      P Offline
      P Offline
      Paddy Boyd
      wrote on last edited by
      #2

      How are you registering your javascript call? You might want to try ScriptManager.RegisterStartupScript, as this will be called following a callback.

      B 1 Reply Last reply
      0
      • P Paddy Boyd

        How are you registering your javascript call? You might want to try ScriptManager.RegisterStartupScript, as this will be called following a callback.

        B Offline
        B Offline
        bunka84
        wrote on last edited by
        #3

        I have already used it but still not working.

        V 1 Reply Last reply
        0
        • B bunka84

          I have already used it but still not working.

          V Offline
          V Offline
          Vengatachalapathy Palanivel
          wrote on last edited by
          #4

          Have you added your button control inside the tag of the Update panel... and one more thing you also need to know whether it is a post back trigger or asynchronous trigger... If you are not aware of this, Just try this the following piece of code <Triggers> </Triggers >

          Regards, Vengat P

          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