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. Using Javascript in ASP.NET 2.0

Using Javascript in ASP.NET 2.0

Scheduled Pinned Locked Moved ASP.NET
csharpjavascriptasp-nethelpcode-review
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
    mcgann
    wrote on last edited by
    #1

    I am quite new to using asp.net 2.0 and am only really beginning to get the hang of it, therefore i want to improve my client-side responses and to do so I have decided to add some client-side javascript to help in a calculation. I have the javascript created in a seperate file. The difficult part that i have now is trying to call this function whenever a button is clicked. So if anyone can help with some useful links/ articles on the subject please let me know.

    _ 1 Reply Last reply
    0
    • M mcgann

      I am quite new to using asp.net 2.0 and am only really beginning to get the hang of it, therefore i want to improve my client-side responses and to do so I have decided to add some client-side javascript to help in a calculation. I have the javascript created in a seperate file. The difficult part that i have now is trying to call this function whenever a button is clicked. So if anyone can help with some useful links/ articles on the subject please let me know.

      _ Offline
      _ Offline
      _AK_
      wrote on last edited by
      #2

      First you have to include that javascript file in web page and then you can call the function of that file by adding the onclick attribute to the button. Although what i have told here is the process do be done in asp.net 1.1 and i hope that it would be same in 2.0 also.

      Best Regards, Apurva Kaushal

      G 1 Reply Last reply
      0
      • _ _AK_

        First you have to include that javascript file in web page and then you can call the function of that file by adding the onclick attribute to the button. Although what i have told here is the process do be done in asp.net 1.1 and i hope that it would be same in 2.0 also.

        Best Regards, Apurva Kaushal

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        It's still the same browser that is used on the client side, where the Javascript is, so the process is still the same, regardless of the framework version used on the server. :)

        --- b { font-weight: normal; }

        _ 1 Reply Last reply
        0
        • G Guffa

          It's still the same browser that is used on the client side, where the Javascript is, so the process is still the same, regardless of the framework version used on the server. :)

          --- b { font-weight: normal; }

          _ Offline
          _ Offline
          _AK_
          wrote on last edited by
          #4

          Ya thats true but what I thought was there can be a change in calling the javascript file or adding the attribute to the button. Anyway thanks for clarifying. :)

          Best Regards, Apurva Kaushal

          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