Professional Web Applications Themes

Change Color of LinkButton - ASP.NET Data Grid Control

How does one go about changing the foreground color of a linkbutton like "Select"? continued...

  1. #1

    Default Change Color of LinkButton

    How does one go about changing the foreground color of a linkbutton like
    "Select"?


    Robert E. Flaherty Guest

  2. #2

    Default Re: Change Color of LinkButton

    Hi Robert,

    You can change the foreground color of a linkbutton by embedding style tags
    inside the Head portion of the HTML . For more information on this, I would
    request you to please go through the following site :
    [url]http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/a.asp[/url]

    Hope this helps.

    Regards,
    Mona [Grapecity]

    "Robert E. Flaherty" <Bobf@TimeVision.Com> wrote in message
    news:%23BiOMpJjFHA.2920@TK2MSFTNGP14.phx.gbl...
    > How does one go about changing the foreground color of a linkbutton like
    > "Select"?
    >
    >

    Mona Guest

  3. #3

    Default Re: Change Color of LinkButton

    I don't have a clue as to how to embed style tags inside the Head portion
    nor did reviewing the suggested site help.

    What I have is the following inside the definition of a datagrid:
    ,asp:ButtonColumn Text="Email" CommandName="Select" ></asp:ButtonColumn>. I
    would like the "Email" end up in blue and underlined like
    [email]mona@discussions.com[/email].

    "Mona" <mona@discussions.com> wrote in message
    news:%23Ncqb3JjFHA.2484@TK2MSFTNGP15.phx.gbl...
    > Hi Robert,
    >
    > You can change the foreground color of a linkbutton by embedding style
    > tags
    > inside the Head portion of the HTML . For more information on this, I
    > would
    > request you to please go through the following site :
    > [url]http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/a.asp[/url]
    >
    > Hope this helps.
    >
    > Regards,
    > Mona [Grapecity]
    >
    > "Robert E. Flaherty" <Bobf@TimeVision.Com> wrote in message
    > news:%23BiOMpJjFHA.2920@TK2MSFTNGP14.phx.gbl...
    >> How does one go about changing the foreground color of a linkbutton like
    >> "Select"?
    >>
    >>
    >
    >

    Robert E. Flaherty Guest

  4. #4

    Default Re: Change Color of LinkButton

    Hi Robert,

    There are two options you can use to change foreground of linkbutton:

    1) In page's HTML Design View, to set the linkbutton's ItemStyle-ForeColor
    property.

    2) Or in datagrid_ItemDataBound event, use code to change linkbutton's
    foreground:

    LinkButton selectBtn = (LinkButton)e.Item.Cells[select_index].Controls[0];
    selectBtn.ForeColor = Color.Red;

    HTH

    Elton Wang

    "Robert E. Flaherty" <Bobf@TimeVision.Com> wrote in message
    news:%23BiOMpJjFHA.2920@TK2MSFTNGP14.phx.gbl...
    > How does one go about changing the foreground color of a linkbutton like
    > "Select"?
    >
    >

    Elton Wang Guest

  5. #5

    Default Re: Change Color of LinkButton

    Hi Robert,

    There are two options you can use to change foreground of linkbutton:

    1) In page's HTML Design View, to set the linkbutton's ItemStyle-ForeColor
    property.

    2) Or in datagrid_ItemDataBound event, use code to change linkbutton's
    foreground:

    LinkButton selectBtn = (LinkButton)e.Item.Cells[select_index].Controls[0];
    selectBtn.ForeColor = Color.Red;

    HTH

    Elton Wang

    "Robert E. Flaherty" <Bobf@TimeVision.Com> wrote in message
    news:%23BiOMpJjFHA.2920@TK2MSFTNGP14.phx.gbl...
    > How does one go about changing the foreground color of a linkbutton like
    > "Select"?
    >
    >

    Elton Wang Guest

Similar Threads

  1. Change color of lines
    By Jon Bessant in forum Adobe Acrobat Macintosh
    Replies: 1
    Last Post: September 9th, 11:25 AM
  2. How to change text color in 7 Pro?
    By Cindi_Leeman@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 0
    Last Post: April 28th, 02:51 PM
  3. Color change value on different computer
    By Wayne_Michael@adobeforums.com in forum Adobe Photoshop Mac CS, CS2 & CS3
    Replies: 3
    Last Post: April 24th, 01:50 PM
  4. How to change the color of a row (Repeater)?
    By george d lake in forum ASP.NET General
    Replies: 0
    Last Post: July 8th, 04:02 PM
  5. Color Change
    By kab in forum Microsoft Access
    Replies: 2
    Last Post: July 2nd, 01:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139