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 include a javascript file in aspx ?

how to include a javascript file in aspx ?

Scheduled Pinned Locked Moved ASP.NET
questionjavascripttutorial
5 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.
  • D Offline
    D Offline
    dbn831
    wrote on last edited by
    #1

    How can i include a javascript file in aspx? also how can we add textbox in aspx during runtime?

    N C 2 Replies Last reply
    0
    • D dbn831

      How can i include a javascript file in aspx? also how can we add textbox in aspx during runtime?

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      TextBox myTextbox = new TextBox(); Page.Controls.Add(myTextbox); <div class="ForumSig"><hr>only two letters away from being an asset</div></x-turndown>

      1 Reply Last reply
      0
      • D dbn831

        How can i include a javascript file in aspx? also how can we add textbox in aspx during runtime?

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        What Mark said, except 1 - the script tag needs to be closed, and 2 - if you want to access the textbox in code behind, you need to add it before the page load event, so that viewstate is restored to the control.

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        N 1 Reply Last reply
        0
        • C Christian Graus

          What Mark said, except 1 - the script tag needs to be closed, and 2 - if you want to access the textbox in code behind, you need to add it before the page load event, so that viewstate is restored to the control.

          Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          Christian Graus wrote:

          1 - the script tag needs to be closed

          Oh sure if you want to be technical about it :-D


          only two letters away from being an asset

          C 1 Reply Last reply
          0
          • N Not Active

            Christian Graus wrote:

            1 - the script tag needs to be closed

            Oh sure if you want to be technical about it :-D


            only two letters away from being an asset

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            *grin*

            Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

            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