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. How to convert hexa color value into color like (Red)

How to convert hexa color value into color like (Red)

Scheduled Pinned Locked Moved ASP.NET
databasedockertutorial
7 Posts 3 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.
  • J Offline
    J Offline
    janani13
    wrote on last edited by
    #1

    Hi all, Im selecting a color for event in a color picker. it is saved into the db as hexa code.i want to rerive the values and bind that event into the corresponding color. please let me a way.

    <font color='<%# Container.DataItem["FontColor"] %>'>
    <%# Container.DataItem["EventDescription"]%>
    </font>

    FontColor is retrieved as hexa.

    C M 2 Replies Last reply
    0
    • J janani13

      Hi all, Im selecting a color for event in a color picker. it is saved into the db as hexa code.i want to rerive the values and bind that event into the corresponding color. please let me a way.

      <font color='<%# Container.DataItem["FontColor"] %>'>
      <%# Container.DataItem["EventDescription"]%>
      </font>

      FontColor is retrieved as hexa.

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

      The only way I can see, is to have a lookup that checks if the values entered match a known named color.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      1 Reply Last reply
      0
      • J janani13

        Hi all, Im selecting a color for event in a color picker. it is saved into the db as hexa code.i want to rerive the values and bind that event into the corresponding color. please let me a way.

        <font color='<%# Container.DataItem["FontColor"] %>'>
        <%# Container.DataItem["EventDescription"]%>
        </font>

        FontColor is retrieved as hexa.

        M Offline
        M Offline
        muniratnam
        wrote on last edited by
        #3

        hi please use this i think it may usefull for u controlname.Style.Add("color", "#4B4B4B");// "#4B4B4B" is an hexadecimal value from db Regs muni

        J C 2 Replies Last reply
        0
        • M muniratnam

          hi please use this i think it may usefull for u controlname.Style.Add("color", "#4B4B4B");// "#4B4B4B" is an hexadecimal value from db Regs muni

          J Offline
          J Offline
          janani13
          wrote on last edited by
          #4

          See im using a datacalendar control.it is downloaded from CP.it doesnt support what you said.

          1 Reply Last reply
          0
          • M muniratnam

            hi please use this i think it may usefull for u controlname.Style.Add("color", "#4B4B4B");// "#4B4B4B" is an hexadecimal value from db Regs muni

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

            "even a fool is considered wise, until he speaks'.

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            J 2 Replies Last reply
            0
            • C Christian Graus

              "even a fool is considered wise, until he speaks'.

              Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

              J Offline
              J Offline
              janani13
              wrote on last edited by
              #6

              ok thanks for your comments.

              1 Reply Last reply
              0
              • C Christian Graus

                "even a fool is considered wise, until he speaks'.

                Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                J Offline
                J Offline
                janani13
                wrote on last edited by
                #7

                Dont under estimate others.

                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