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. Accessing code behind method ( of C#) from a javascripts method.

Accessing code behind method ( of C#) from a javascripts method.

Scheduled Pinned Locked Moved ASP.NET
csharpjavascript
3 Posts 3 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
    Shahdat Hosain
    wrote on last edited by
    #1

    I have a javascript method named function onOk() and a code behind c# method public viod messege(). I want to access messege() from onOk(). Please...........

    shahdat

    N C 2 Replies Last reply
    0
    • S Shahdat Hosain

      I have a javascript method named function onOk() and a code behind c# method public viod messege(). I want to access messege() from onOk(). Please...........

      shahdat

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      You can use AJAX[^] and send request to server from JS.

      Navaneeth How to use google | Ask smart questions

      1 Reply Last reply
      0
      • S Shahdat Hosain

        I have a javascript method named function onOk() and a code behind c# method public viod messege(). I want to access messege() from onOk(). Please...........

        shahdat

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        I suggest you buy a book on ASP.NET and read it. Once you understand the seperation between client and server, buy a good book on AJAX, and read that. AJAX is how your client can contact the server and grab information it returns.

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        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