Announcement

Collapse
No announcement yet.

Hyperlink in table cell

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Hyperlink in table cell

    Is it possible to put a hyperlink in a table cell in asp? I'm pulling what remains of my hair out and am getting nowhere very quickly. Any help would be hugely appreciated.

    Thanks!

    -Rob

    #2
    There shouldn't be any difference between a link inside a cell and a link anywhere else on the page.

    <pre class="ip-ubbcode-code-pre">
    Response.Write "&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;a href=""your link""&gt;Link Text&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;"
    </pre>
    --
    Jeff Farmer
    HS 3, HSPhone
    My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
    Other Plugins In Use: APCUPSD, BLOnkyo, Device History, EasyTrigger, HSTouch Server, PHLocation2, Pushover, RFXCom, UltraGCIR3, UltraMon3, UltraPioneerAVR3, X10, Z-Wave

    Hardware: GoControl Irrigation Controler, Schlage Lever Lock, Schlage Deadbolt, Way2Call Hi-Phone, RFXCom RFXrec433 Receiver, WGL 800, TI-103, Z-Net, Pioneer 1120, Pioneer 1021, Pioneer LX302, Panasonic BDT-110, Panasonic BDT-210 x2

    Comment


      #3
      Yeah, that's what I thought. What's messing me up is that I'm throwing a variable in as the link and am having problems as below:

      Response.Write "&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;a href=""your link""&gt;StrVar&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;"

      Do I need to treat the variable differently?

      -Rob

      Comment


        #4
        Yep, should be something like:

        Response.Write "&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;a href=""your link""&gt;" <span class="ev_code_GREEN">+ StrVar +</span> "&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;"

        otherwise the StrVar is treated as literal text.

        Richard

        Comment


          #5
          Ah! That was it. Many thanks.

          -Rob

          Comment

          Working...
          X