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. What's going on with this javascript?

What's going on with this javascript?

Scheduled Pinned Locked Moved Web Development
questionjavascript
7 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.
  • M Offline
    M Offline
    Mundo Cani
    wrote on last edited by
    #1

    Can someone let me know what is going on with this statement? I'm new to javascript. I don't understand what's between the quotes. document.getElementById("<%=imagetag.ClientID %>") what does <%= mean? Thanks!

    Ian

    E G L 3 Replies Last reply
    0
    • M Mundo Cani

      Can someone let me know what is going on with this statement? I'm new to javascript. I don't understand what's between the quotes. document.getElementById("<%=imagetag.ClientID %>") what does <%= mean? Thanks!

      Ian

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

      Not 100% sure but I have seen this used two ways. One is to do data binding, the other is to find control programmatically. See if that points you in the right direction.

      The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.

      M 1 Reply Last reply
      0
      • M Mundo Cani

        Can someone let me know what is going on with this statement? I'm new to javascript. I don't understand what's between the quotes. document.getElementById("<%=imagetag.ClientID %>") what does <%= mean? Thanks!

        Ian

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

        The <%=...%> tag is a server tag to output a value. It's almost equivalent to Response.Write(...). The ClientID property of a server control contains the id that the control uses for the html element that it renders. When server controls are inside a container (like a user control) the id is prepended with the id of the container to keep it unique in the form. You use the ClientID property to get this generated id.

        --- single minded; short sighted; long gone;

        M 1 Reply Last reply
        0
        • M Mundo Cani

          Can someone let me know what is going on with this statement? I'm new to javascript. I don't understand what's between the quotes. document.getElementById("<%=imagetag.ClientID %>") what does <%= mean? Thanks!

          Ian

          L Offline
          L Offline
          Lalafaraz
          wrote on last edited by
          #4

          that means you are trying to access the server variable on client side.. hope so it will clear the problem Sarfaraz Nazir Solution Developer Accentys Inc

          M 1 Reply Last reply
          0
          • E Expert Coming

            Not 100% sure but I have seen this used two ways. One is to do data binding, the other is to find control programmatically. See if that points you in the right direction.

            The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.

            M Offline
            M Offline
            Mundo Cani
            wrote on last edited by
            #5

            Thanks!

            Ian

            1 Reply Last reply
            0
            • G Guffa

              The <%=...%> tag is a server tag to output a value. It's almost equivalent to Response.Write(...). The ClientID property of a server control contains the id that the control uses for the html element that it renders. When server controls are inside a container (like a user control) the id is prepended with the id of the container to keep it unique in the form. You use the ClientID property to get this generated id.

              --- single minded; short sighted; long gone;

              M Offline
              M Offline
              Mundo Cani
              wrote on last edited by
              #6

              Thank you!

              Ian

              1 Reply Last reply
              0
              • L Lalafaraz

                that means you are trying to access the server variable on client side.. hope so it will clear the problem Sarfaraz Nazir Solution Developer Accentys Inc

                M Offline
                M Offline
                Mundo Cani
                wrote on last edited by
                #7

                Thanks!

                Ian

                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