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 Sever side function from client side

Calling Sever side function from client side

Scheduled Pinned Locked Moved ASP.NET
htmlsysadminhelptutorial
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.
  • M Offline
    M Offline
    Member 4102171
    wrote on last edited by
    #1

    I have a server side function download() and i want to call it from client side.You can say on HTML button click.The purpose of using html button is I don't want to refresh my page. role of download() function is it download file from FTP server. Can any body help me how to call server side function from client side.PLease do reply. Thanks in advance.

    M E 2 Replies Last reply
    0
    • M Member 4102171

      I have a server side function download() and i want to call it from client side.You can say on HTML button click.The purpose of using html button is I don't want to refresh my page. role of download() function is it download file from FTP server. Can any body help me how to call server side function from client side.PLease do reply. Thanks in advance.

      M Offline
      M Offline
      Mohamad Kaifi
      wrote on last edited by
      #2

      friend u can use ajax..ur page wont be post backed and ur download function will also be executed..

      1 Reply Last reply
      0
      • M Member 4102171

        I have a server side function download() and i want to call it from client side.You can say on HTML button click.The purpose of using html button is I don't want to refresh my page. role of download() function is it download file from FTP server. Can any body help me how to call server side function from client side.PLease do reply. Thanks in advance.

        E Offline
        E Offline
        eyeseetee
        wrote on last edited by
        #3

        If the download is to run using server side code you need to send a request to the server therefore refreshing your page

        We are not a Code Charity

        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