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. Problem in getting class variable value in javascript/html [modified]

Problem in getting class variable value in javascript/html [modified]

Scheduled Pinned Locked Moved ASP.NET
helpjavascripthtmlcomsysadmin
4 Posts 2 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.
  • K Offline
    K Offline
    kmuthuk
    wrote on last edited by
    #1

    Hi: Following is the sample code. The problem is I have a class called Test and a static variable testString="Hotmail" in it. I am refering this variable using <%> tag in my page. The text is not displayed in my page when I run it. But when the text is available in View-Source. I am getting the value of the static variable in tag. But not in <a></a> tag. Can anybody help on this? Thanks in advance. Muthu. <html xmlns="http://www.w3.org/1999/xhtml"> <body> <head runat="server"> <title><%=Test.testString %>

    -- modified at 15:57 Friday 16th February, 2007

    G 1 Reply Last reply
    0
    • K kmuthuk

      Hi: Following is the sample code. The problem is I have a class called Test and a static variable testString="Hotmail" in it. I am refering this variable using <%> tag in my page. The text is not displayed in my page when I run it. But when the text is available in View-Source. I am getting the value of the static variable in tag. But not in <a></a> tag. Can anybody help on this? Thanks in advance. Muthu. <html xmlns="http://www.w3.org/1999/xhtml"> <body> <head runat="server"> <title><%=Test.testString %>

      -- modified at 15:57 Friday 16th February, 2007

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

      Do you mean the string that you don't output between the start tag and the end tag of the link? Gee... I wonder why that isn't showing up on the page... ;)

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

      K 1 Reply Last reply
      0
      • G Guffa

        Do you mean the string that you don't output between the start tag and the end tag of the link? Gee... I wonder why that isn't showing up on the page... ;)

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

        K Offline
        K Offline
        kmuthuk
        wrote on last edited by
        #3

        Yes. But it shows up in the page title tag. :( Not in link title tag. Muthu

        G 1 Reply Last reply
        0
        • K kmuthuk

          Yes. But it shows up in the page title tag. :( Not in link title tag. Muthu

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

          I tried hour code. This is the result: Hotmail

          As you see, the string is both in the page title and the link title. --- single minded; short sighted; long gone;

          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