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. calling web service using javascript [modified]

calling web service using javascript [modified]

Scheduled Pinned Locked Moved ASP.NET
javascripthelpjavasysadmintools
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.
  • S Offline
    S Offline
    samrat net
    wrote on last edited by
    #1

    Hello Friend! I want to call a web service from java script. the web service exits in different solution i.e., java script and web service are in different project/solution. the following code i use . . . Server Time the script file i.e.,CallWebServiceMethods.js function GetTime() { WebService.GetServerTime(SucceededCallback); } when i execute the program a java script error occurs- 'WebService' is undefined. if web service is in same solution, then it executes correctly please help me

    modified on Thursday, April 24, 2008 6:10 AM

    S 1 Reply Last reply
    0
    • S samrat net

      Hello Friend! I want to call a web service from java script. the web service exits in different solution i.e., java script and web service are in different project/solution. the following code i use . . . Server Time the script file i.e.,CallWebServiceMethods.js function GetTime() { WebService.GetServerTime(SucceededCallback); } when i execute the program a java script error occurs- 'WebService' is undefined. if web service is in same solution, then it executes correctly please help me

      modified on Thursday, April 24, 2008 6:10 AM

      S Offline
      S Offline
      Spunky Coder
      wrote on last edited by
      #2

      Is this the same you are looking for? Calling webservice from javascript[^]

      .....

      S 1 Reply Last reply
      0
      • S Spunky Coder

        Is this the same you are looking for? Calling webservice from javascript[^]

        .....

        S Offline
        S Offline
        samrat net
        wrote on last edited by
        #3

        :rose: thank you the code is working, but if the web method returns any dataset then how can i bind the dataset to data grid

        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