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. Hyperlink in Asp.Net [modified]

Hyperlink in Asp.Net [modified]

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-net
2 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.
  • M Offline
    M Offline
    mahichandu
    wrote on last edited by
    #1

    Hi all.. i want to add stylesheet to the my hypeerlink value...i added hyperlink in codebehind..i want to change the color of the hyperlink,visited & Hover color like bwlow.. <pre>a.one:link {color: #ff0000} a.one:visited {color: #0000ff} a.one:hover {color: #ffcc00} </pre> How can i add that color in code behind..?? I just copied thte methos which am using...i underlined the hyperlink value below.. <pre> public String HideHeader(String sYear)       {             switch (sYear)             {                   case "Year1":                         if (lblYear1.Text != "0") return "display:block;";                         break;                   case "Year2":                         if (lblYear2.Text != "0") return "display:block;";                         break;                   case "Year3":                         if (lblYear3.Text != "0") return "display:block;";                         break;                   case "Year4":                         if (lblYear4.Text != "0") return "display:block;";                         break;                   case "Year5":                         if (lblYear5.Text != "0") return "display:block;";                         break;                   case "Year6":

    C 1 Reply Last reply
    0
    • M mahichandu

      Hi all.. i want to add stylesheet to the my hypeerlink value...i added hyperlink in codebehind..i want to change the color of the hyperlink,visited & Hover color like bwlow.. <pre>a.one:link {color: #ff0000} a.one:visited {color: #0000ff} a.one:hover {color: #ffcc00} </pre> How can i add that color in code behind..?? I just copied thte methos which am using...i underlined the hyperlink value below.. <pre> public String HideHeader(String sYear)       {             switch (sYear)             {                   case "Year1":                         if (lblYear1.Text != "0") return "display:block;";                         break;                   case "Year2":                         if (lblYear2.Text != "0") return "display:block;";                         break;                   case "Year3":                         if (lblYear3.Text != "0") return "display:block;";                         break;                   case "Year4":                         if (lblYear4.Text != "0") return "display:block;";                         break;                   case "Year5":                         if (lblYear5.Text != "0") return "display:block;";                         break;                   case "Year6":

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

      This looks very messy. So messy that it made a mess of the forums., If you're posting HTML, then check the box to show the tags, otherwise no-one can read your post, and it can mess with the forums.

      Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

      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