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 call trigger server side button click from client side javascript code?

How to call trigger server side button click from client side javascript code?

Scheduled Pinned Locked Moved ASP.NET
javascriptdatabasesysadminhelptutorial
3 Posts 2 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.
  • X Offline
    X Offline
    xiao bin bin
    wrote on last edited by
    #1

    hello, there, I want to trigger a server side button click from client side javascript code. I searched the Internet, but I could not find a solution. I learned it seems I need to call _postback function. But I could not find more details. function Button2_onclick() { __doPostBack('<%=Button1.UniqueID%>', 'onclick'); } I put this in the client side code. but I got server side errors. Please let me know that how to solve this problem. Thank you very much in advance.

    T 1 Reply Last reply
    0
    • X xiao bin bin

      hello, there, I want to trigger a server side button click from client side javascript code. I searched the Internet, but I could not find a solution. I learned it seems I need to call _postback function. But I could not find more details. function Button2_onclick() { __doPostBack('<%=Button1.UniqueID%>', 'onclick'); } I put this in the client side code. but I got server side errors. Please let me know that how to solve this problem. Thank you very much in advance.

      T Offline
      T Offline
      thomas_joyee
      wrote on last edited by
      #2

      hi, http://www.xefteri.com/articles/show.cfm?id=18 this article is a simple one. follow this

      Thomas

      X 1 Reply Last reply
      0
      • T thomas_joyee

        hi, http://www.xefteri.com/articles/show.cfm?id=18 this article is a simple one. follow this

        Thomas

        X Offline
        X Offline
        xiao bin bin
        wrote on last edited by
        #3

        It is really a good article and it is very easy. Thank you so much.

        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