dynamically load controls on web page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sudagnr
    New Member
    • Feb 2008
    • 5

    dynamically load controls on web page

    when my javascript function is executed then, it should dynamically load controls on my web page, using java script and asp.net...

    can cany one help me on this........
  • hsriat
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    #2
    Originally posted by sudagnr
    when my javascript function is executed then, it should dynamically load controls on my web page, using java script and asp.net...

    can cany one help me on this........

    explain properly what do you actually want to do......

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Please remember to provide a meaningful Title for any threads started (see the FAQ entry Use a Good Thread Title).

      This helps to ensure that other members, and also the general public, will have a better chance of finding answers to any similar questions.

      MODERATOR

      Comment

      • sudagnr
        New Member
        • Feb 2008
        • 5

        #4
        Originally posted by hsriat
        explain properly what do you actually want to do......
        when i click on a button(i need to write client side script for th click event of button) then it should load one text box control dynamically on the page ...

        how can i get using asp.net and javascript.

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          Originally posted by sudagnr
          when i click on a button(i need to write client side script for th click event of button) then it should load one text box control dynamically on the page
          There are two ways: either hide a text box and display when the button is clicked, or dynamically create each time. Which one do you want? Also post what code you have so far.

          Comment

          • tswaters
            New Member
            • Feb 2007
            • 19

            #6
            [code=javascript]
            var inputText = document.create Element("INPUT" ); inputText.type= "text"
            [/code]

            Comment

            • acoder
              Recognized Expert MVP
              • Nov 2006
              • 16032

              #7
              Originally posted by tswaters
              [code=javascript]
              var inputText = document.create Element("INPUT" ); inputText.type= "text"
              [/code]
              That would be the second option (once you've appended the element, of course).

              Comment

              Working...