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. Can ICallbackEventhandler be implemented and invoked with Asp.net button's click event

Can ICallbackEventhandler be implemented and invoked with Asp.net button's click event

Scheduled Pinned Locked Moved ASP.NET
helpcsharpjavascriptasp-netsysadmin
2 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.
  • K Offline
    K Offline
    K Safvi
    wrote on last edited by
    #1

    Hi, I have implemented the ICallbackEventhander interface and successfully updating the page asynchroniously on keydown on a textbox. I tried to implement the same with the click event of the asp.net button or imagebutton's click event but RaiseCallback is invoked and then the GetCallbackResult() is called but the last client side javascript function is not called that infact updates the page, hence the page not updates. Also once the page is partially updated on keydown of textbox, after that no server side event is triggers. What could be the issue. Any code or reference url for the solution of this problem will be much appreciated. Thanks, Safvi

    S 1 Reply Last reply
    0
    • K K Safvi

      Hi, I have implemented the ICallbackEventhander interface and successfully updating the page asynchroniously on keydown on a textbox. I tried to implement the same with the click event of the asp.net button or imagebutton's click event but RaiseCallback is invoked and then the GetCallbackResult() is called but the last client side javascript function is not called that infact updates the page, hence the page not updates. Also once the page is partially updated on keydown of textbox, after that no server side event is triggers. What could be the issue. Any code or reference url for the solution of this problem will be much appreciated. Thanks, Safvi

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      Have a look at this article: ClientCallback custom control for web applications[^] Treeview's node click event is the trigger for callback. Similar approach for button click can be implemented.

      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