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. Calling server side method through java script

Calling server side method through java script

Scheduled Pinned Locked Moved ASP.NET
javasysadmintoolshelpquestion
3 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.
  • A Offline
    A Offline
    alok_2k3
    wrote on last edited by
    #1

    Hi All, I have button on my aspx page and I want to call the button click event through java script method without any page postback. How can I do this. I am trying to do this as follows document.getElementById('buttonid').onClick; but it is not in my case. Please help me. Thanks in Advance Alok...

    E N 2 Replies Last reply
    0
    • A alok_2k3

      Hi All, I have button on my aspx page and I want to call the button click event through java script method without any page postback. How can I do this. I am trying to do this as follows document.getElementById('buttonid').onClick; but it is not in my case. Please help me. Thanks in Advance Alok...

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      Well the state of your page will change if you run a piece of javascript code

      The answers posted by me are suggestions only and cannot be used in anyway against me.

      1 Reply Last reply
      0
      • A alok_2k3

        Hi All, I have button on my aspx page and I want to call the button click event through java script method without any page postback. How can I do this. I am trying to do this as follows document.getElementById('buttonid').onClick; but it is not in my case. Please help me. Thanks in Advance Alok...

        N Offline
        N Offline
        NikoTanghe
        wrote on last edited by
        #3

        Alok, maybe you can do an Ajax page method call. http://www.google.com/search?hl=en&q=ajax+page+method

        << Nearly all men can stand adversity, but if you want to test a man's character, give him power. >>

        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