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. how to add javascript to webapplication and how to use it

how to add javascript to webapplication and how to use it

Scheduled Pinned Locked Moved ASP.NET
csharpjavascriptasp-netcomtutorial
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.
  • A Offline
    A Offline
    ashraf hakiem
    wrote on last edited by
    #1

    hello dears i want to add javascript to webapplication(asp.net) and how to use it ashrafhakiem ashraf_23_2005@yahoo.com

    J P M 3 Replies Last reply
    0
    • A ashraf hakiem

      hello dears i want to add javascript to webapplication(asp.net) and how to use it ashrafhakiem ashraf_23_2005@yahoo.com

      J Offline
      J Offline
      Jakob Farian Krarup
      wrote on last edited by
      #2

      Hi Ashrafhakiem :) Here are a couple of links: http://www.ondotnet.com/pub/a/dotnet/2003/09/15/aspnet.html[^] http://www.youcanlearnseries.com/Programming%20Tips/CSharp/ClientSideCode.aspx[^]

      Kind regards - Jakob :cool: ********************************************* Three kinds of people in the world: - Those who can count.. - Those who can't! 10 kinds of people in the world: - Those who understand binary - Those who don't

      1 Reply Last reply
      0
      • A ashraf hakiem

        hello dears i want to add javascript to webapplication(asp.net) and how to use it ashrafhakiem ashraf_23_2005@yahoo.com

        P Offline
        P Offline
        parveen_banuk
        wrote on last edited by
        #3

        Hi... What kind of javascript you have to add... we can add javascript easily in asp.Net page. you can add like this in HTML page// function test() { alert('This is a test Page'); } and you can call this function in ..Onclick or Page load or what ever it is.. here i have give you the example for calling function in onclick btnSubmit = it is a button name btnSubmit.attributes.add("onclick","javascript:return test()";) TRY THIS AND GIVE ME YOUR FEEDBACK. Rame..

        1 Reply Last reply
        0
        • A ashraf hakiem

          hello dears i want to add javascript to webapplication(asp.net) and how to use it ashrafhakiem ashraf_23_2005@yahoo.com

          M Offline
          M Offline
          Meax
          wrote on last edited by
          #4

          parveen_banuk, has given you the code how to call a java scrip onclick event of a button. here is how to call that script in page load. Dim MyString as String = "test()" Page.RegisterStartupSvript("MyScript", MyScript) hope this give you some ideas. cheers

          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