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. passing parameters to web service

passing parameters to web service

Scheduled Pinned Locked Moved Web Development
questiondatabasedata-structureslearning
4 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.
  • M Offline
    M Offline
    mrcooll
    wrote on last edited by
    #1

    hi, m learning Auto completion Ajax control , i wort a web service execute a query and sends back array of string to the page, how can i passing criteria to this web service by a parameter?

    M V F 3 Replies Last reply
    0
    • M mrcooll

      hi, m learning Auto completion Ajax control , i wort a web service execute a query and sends back array of string to the page, how can i passing criteria to this web service by a parameter?

      M Offline
      M Offline
      mrcooll
      wrote on last edited by
      #2

      i guess every body is sleep now i will try later :wtf: :wtf:

      1 Reply Last reply
      0
      • M mrcooll

        hi, m learning Auto completion Ajax control , i wort a web service execute a query and sends back array of string to the page, how can i passing criteria to this web service by a parameter?

        V Offline
        V Offline
        Vengatachalapathy Palanivel
        wrote on last edited by
        #3

        Basically the web method signature should not be altered. It should be only of the form public static string[] GetCompletionList(string prefixText, int count, string contextKey) { .... } Here prefixText = field value (on which the details has to be filtered) count = number of values to be returned in the array contextKey = the Column name on which the prefixText has to be applied. And moreover, if you want to pass more parameter to this web service - you have two options, 1. Pass using Session variables by enabling the Session in web method 2. You can append values to the contextKey with some delimitters and in the web method you can make use of a split function to read the parameters passed. Hope this helps you. Regards, Vengat

        1 Reply Last reply
        0
        • M mrcooll

          hi, m learning Auto completion Ajax control , i wort a web service execute a query and sends back array of string to the page, how can i passing criteria to this web service by a parameter?

          F Offline
          F Offline
          Frank Kerrigan
          wrote on last edited by
          #4

          Create a proxy of the webservice and then create an instance of that proxy class.

          DEVELOPER DAY SCOTLAND 2009 Watch this space http://www.developerdayscotland.com/[^]

          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