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. Passing parameters between Java Script and C#

Passing parameters between Java Script and C#

Scheduled Pinned Locked Moved ASP.NET
csharpjavatoolsquestion
4 Posts 3 Posters 1 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.
  • G Offline
    G Offline
    Gary Hyslop at home
    wrote on last edited by
    #1

    I have written a mathematical application in C# that I wish to be made available to a classic ASP application that relies heavily on client side Java Script. The concept of my application is that of a proprietary web service. It appears now that the client side Java Script in the ASP application must pass two parameters to my application. Does anyone have an idea of the easiest way to do this? Gary Hyslop

    S A G 3 Replies Last reply
    0
    • G Gary Hyslop at home

      I have written a mathematical application in C# that I wish to be made available to a classic ASP application that relies heavily on client side Java Script. The concept of my application is that of a proprietary web service. It appears now that the client side Java Script in the ASP application must pass two parameters to my application. Does anyone have an idea of the easiest way to do this? Gary Hyslop

      S Offline
      S Offline
      sukesh g
      wrote on last edited by
      #2

      Hi, U mean that from the javascript you need the values to you C# application right....! Tell me whether you are insterested to keep that javascript into the server side code and execute it...! If you are really insterested to keep tha javascript code in to the server side then it will be possible for sending the parameters to your application. .Net provides fexibility to writting the javascript at server side code. tell me your response to this...! regards, Sukesh.g

      1 Reply Last reply
      0
      • G Gary Hyslop at home

        I have written a mathematical application in C# that I wish to be made available to a classic ASP application that relies heavily on client side Java Script. The concept of my application is that of a proprietary web service. It appears now that the client side Java Script in the ASP application must pass two parameters to my application. Does anyone have an idea of the easiest way to do this? Gary Hyslop

        A Offline
        A Offline
        Asim N
        wrote on last edited by
        #3

        You can save the information in a hidden file; and then later on you can get and use that value from there. I hope this would help you. Asim Regards, Asim

        1 Reply Last reply
        0
        • G Gary Hyslop at home

          I have written a mathematical application in C# that I wish to be made available to a classic ASP application that relies heavily on client side Java Script. The concept of my application is that of a proprietary web service. It appears now that the client side Java Script in the ASP application must pass two parameters to my application. Does anyone have an idea of the easiest way to do this? Gary Hyslop

          G Offline
          G Offline
          Gary Hyslop at home
          wrote on last edited by
          #4

          It seems that is what is needed is that code in the classic ASP server process needs to call the method in my .NET dll. The literature refers to the process whereby a COM object invokes a method in a .NET assembly which has been duly registered using REGASM. I have no experience with pre- ASP.NET web development. I haven't seen any of their server side code but I know it is written in lightwieght languages (e.g. VBScript or at best VB v.6). Exactly what would I have to provide in their classic ASP server space to allow them to call my method with parameters they have obtained from their "client-side" JavaScript? I should not be necessary that an ASPNET server process be running when the call is made -- just that my dll be duly regsisterd. Gary Hyslop

          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