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. javascript and asp.net

javascript and asp.net

Scheduled Pinned Locked Moved Web Development
questioncsharpjavascriptasp-netsysadmin
4 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.
  • B Offline
    B Offline
    bfis108137
    wrote on last edited by
    #1

    I am still relatively new to programming especially asp. I am curious what is the recommended way or perhaps ways to integrate Javascript with Asp.net? I guess I should clarify this. I am working on a test project of a calculator where I would have all of the buttons except for the operation buttons work on javascript. The operation buttons (i.e. add subtract sqrt etc) would run on asp on the server. I have written a complete Javascript calculator and a complete asp calculator but this one seems to me a lot more challenging.

    E N T 3 Replies Last reply
    0
    • B bfis108137

      I am still relatively new to programming especially asp. I am curious what is the recommended way or perhaps ways to integrate Javascript with Asp.net? I guess I should clarify this. I am working on a test project of a calculator where I would have all of the buttons except for the operation buttons work on javascript. The operation buttons (i.e. add subtract sqrt etc) would run on asp on the server. I have written a complete Javascript calculator and a complete asp calculator but this one seems to me a lot more challenging.

      E Offline
      E Offline
      Expert Coming
      wrote on last edited by
      #2

      AJAX.NET could be a nice way to do this.

      The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

      1 Reply Last reply
      0
      • B bfis108137

        I am still relatively new to programming especially asp. I am curious what is the recommended way or perhaps ways to integrate Javascript with Asp.net? I guess I should clarify this. I am working on a test project of a calculator where I would have all of the buttons except for the operation buttons work on javascript. The operation buttons (i.e. add subtract sqrt etc) would run on asp on the server. I have written a complete Javascript calculator and a complete asp calculator but this one seems to me a lot more challenging.

        N Offline
        N Offline
        NeverHeardOfMe
        wrote on last edited by
        #3

        I agree that you would do well to look at AJAX, but not necessarily AJAX.NET. It's very good, but (like other "black box" solutions such as jQuery) is a) all too often used in a way that is like using a sledgehammer to crack a nut (as in this sort of scenario) and b) you won't really learn very much. As your stated goal is to learn, I would suggest you research how to write your own AJAX scripts for this exercise. Here[^] might be a good place to start.

        1 Reply Last reply
        0
        • B bfis108137

          I am still relatively new to programming especially asp. I am curious what is the recommended way or perhaps ways to integrate Javascript with Asp.net? I guess I should clarify this. I am working on a test project of a calculator where I would have all of the buttons except for the operation buttons work on javascript. The operation buttons (i.e. add subtract sqrt etc) would run on asp on the server. I have written a complete Javascript calculator and a complete asp calculator but this one seems to me a lot more challenging.

          T Offline
          T Offline
          T M Gray
          wrote on last edited by
          #4

          The buttons that do stuff on the server should be server controls asp:Button. The buttons that do something only on the client should be <button>. Anything that needs to be reference by both, like the calculator readout should be server controls and your javascript functions can refer to them using document.getElementById('<%=yourControlName.ClientID %>').

          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