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. call code behind code from java script

call code behind code from java script

Scheduled Pinned Locked Moved ASP.NET
javadatabasetoolstutorial
5 Posts 4 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi All, i need to call code from code behind from java script how to do this My Requirement is I have implement ajax extender to get the id so when t lose focus from text box it should query data base and fill it into the other text box such as name , address. Thanks, amit

    L N T 3 Replies Last reply
    0
    • L Lost User

      Hi All, i need to call code from code behind from java script how to do this My Requirement is I have implement ajax extender to get the id so when t lose focus from text box it should query data base and fill it into the other text box such as name , address. Thanks, amit

      L Offline
      L Offline
      lakshmichawala
      wrote on last edited by
      #2

      hi one way is u keep a button make it style display =none and in the click event u write the code which has to be executed when it is click.and the other thing is simple just call the button click event through javascript where ever u want .eb:document.getelementbyid('button').click();

      N 1 Reply Last reply
      0
      • L lakshmichawala

        hi one way is u keep a button make it style display =none and in the click event u write the code which has to be executed when it is click.and the other thing is simple just call the button click event through javascript where ever u want .eb:document.getelementbyid('button').click();

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #3

        Just handle one of the events for the input control such as onblur or onkeypress.


        I know the language. I've read a book. - _Madmatt

        1 Reply Last reply
        0
        • L Lost User

          Hi All, i need to call code from code behind from java script how to do this My Requirement is I have implement ajax extender to get the id so when t lose focus from text box it should query data base and fill it into the other text box such as name , address. Thanks, amit

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          Look at the autocomplete extender


          I know the language. I've read a book. - _Madmatt

          1 Reply Last reply
          0
          • L Lost User

            Hi All, i need to call code from code behind from java script how to do this My Requirement is I have implement ajax extender to get the id so when t lose focus from text box it should query data base and fill it into the other text box such as name , address. Thanks, amit

            T Offline
            T Offline
            Tej Aj
            wrote on last edited by
            #5

            You can use AutoCompleteExtender ajax control Also u can have a webservice to fetch the records from the DB it has "ServicePath" attribute where u provide the path of the WebService and "ServiceMethod" attribute takes the webmethod name which fetches the value from DB and displays it so u don't have to worry about handling blur events etc.. http://opexsolution.com/forum/[^]

            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