[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Angela

2/23/2004 6:11:00 PM

I have a ButtonColumn in my DataGrid and I used the ButtonColumnType LinkButton, however I would like to remove the underline from the button text

I tried

ButtonColumn butTemp = new ButtonColumn()
butTemp.ButtonType = ButtonColumnType.LinkButton
butTemp.CommandName = "EDIT"
butTemp.Text = <determined by a database entry
butTemp.HeaderText = "Document Description"
butTemp.ItemStyle.Font.Underline = false

But that doesn't remove the underline. Is there a way to remove the underline

I tried removing the line with a regular LinkButton on a WebForm and I was able to remove the underline on a regular LinkButton, but I haven't found a way to do it in the DataGrid

this is how I removed the underline on the LinkButton

LinkButton lb = new LinkButton()
lb.Attributes.Add("text-decoration", "none");
15 Answers

Alessandro Zifiglio

2/23/2004 6:59:00 PM

0

hi Angela,
The css style below will set the following styling to all anchor
elements(hyperlinks)
<STYLE TYPE="text/css">
<!--
A { color: red; text-decoration: none} /* unvisited link */
A:visited { color: blue;text-decoration: none } /* visited link */
A:active { color: green; text-decoration: none} /* active link */
A:hover { color: gold;text-decoration: none } /* hover or mousover link
*/
//-->
</STYLE>


whereas the example below will set style on a specific anchor element whose
class attribute is set to the following class.

<STYLE TYPE="text/css">
.Buttoncolumn { color: darkred; font-size:14pt; } /* unvisited link */
.Buttoncolumn:visited { color: indianred; text-decoration: none} /*
visited link */
.Buttoncolumn:active { color: gold;text-decoration: none } /* active
link */
.Buttoncolumn:hover { color: darkgreen; text-decoration: none} /*
hover or mousover link */
</STYLE>

now just pass the class to your bound column :

butTemp.ItemStyle.CssClass = "Buttoncolumn"


For a quick tutorial reference below :
http://www.w3schools.com/css/css_pseudo_c...
"Angela" <Angela.Spranger@globalcrossing.com> wrote in message
news:FAA952D7-9310-40D6-A001-84113CA798D1@microsoft.com...
> I have a ButtonColumn in my DataGrid and I used the ButtonColumnType
LinkButton, however I would like to remove the underline from the button
text.
>
> I tried:
>
> ButtonColumn butTemp = new ButtonColumn();
> butTemp.ButtonType = ButtonColumnType.LinkButton;
> butTemp.CommandName = "EDIT";
> butTemp.Text = <determined by a database
entry>
> butTemp.HeaderText = "Document Description";
> butTemp.ItemStyle.Font.Underline = false;
>
> But that doesn't remove the underline. Is there a way to remove the
underline?
>
> I tried removing the line with a regular LinkButton on a WebForm and I was
able to remove the underline on a regular LinkButton, but I haven't found a
way to do it in the DataGrid.
>
> this is how I removed the underline on the LinkButton:
>
> LinkButton lb = new LinkButton();
> lb.Attributes.Add("text-decoration", "none");


v-jetan

2/24/2004 2:56:00 AM

0


Hi Angela,

Thank you for posting in the community!

You can just follow Alessandro's reply to use CssClass to hide the
underline.

What I want to add is why ButtonColumn.ItemStyle.Font.Underline = false
does not work:
LinkButton will render as <a> html tag, and the default style for <a> will
have underline. So the underline is a part of the link element(<a>), not a
part of Font(Which will default has no underline, you can determine this
through Response.Write(ButtonColumn.ItemStyle.Font.Underline.ToString())),
so you should use css attribute "text-decoration: none" to hide the
underline.

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

v-jetan

2/27/2004 1:38:00 AM

0


Hi Angela,

Does my reply make sense to you?

If you have anything unclear, please feel free to feedback. I will help you.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

GOD

9/3/2010 2:46:00 AM

0


Va^.y thi` Quack Thien ddu'ng la` tha(`ng a(n ca('p sa'ch roa`i, ma`y
ne^n ddo.c nhie^`u News
truo*'c khi ddi a(n ca('p TuTuongHCM cu?a nguo*`i kha'c dde^? vie^'t
sa'ch ba'n dda^'y Thie^n o*i

Trong News, ca'c so^' S/N cu?a su'ng dda.n My~ cung ca^'p cho S-VN
thi` dda~ dduo*.c xu*? du.ng
ha`ng loa.t ta.i Republic of Nicaragua duo*'i tho*`i Daniel Ortega
va`o tha^.p nie^n 80 ro^`i ca'c su'ng o^'ng na`y ro*i va`o tay Rebel
cu?a Columbia cho dde^'n nay v.v...


On Sep 2, 7:06 pm, TrinhQuocThien <trinhquocth...@gmail.com> wrote:
> On Sep 2, 3:24 pm, Lichsu Vietnam <lichsuviet...@live.com> wrote:
>
..> > Hoang duc Nha MBA ? What a big joke, he can not estimate how much
the
> > US left with tanks and bullets with those enough to
> > fight Vietcong for years to come that's what after The.o left S-VN, VC
> > took all the weaponry to fight in Cambodia plus sold to the
> > South Latin America for money
>
..> Viet Cong was a weaponary exporter in the past to South Latin
> America!?
>
> What's an idiot Vee Khu`ng! ;-))))))))))))))))
>
> Ba'n sa('t phe^' lie^.u thi` co' ... chu+' lu'c ddo' chu'ng to+' ddo'i
> nha(n ra(ng, ga.o, khoai sa('n, bo bo co`n kho^ng co' ma` a(n!
>
> la`m gi` ma` VNCH co`n gi` dde^? ma` dde^? la.i ho+? tha(`ng Vee
> Khu`ng bo? cha.y kia ! kho ga.o cu?a VNCH ro^~ng tue^'ch.
>
> Kho Long Bi`nh ... thi` co`n ro^~ng ba.o tu+` sau 1973 !
>
> Xe ta(ng VNCH, ma'y bay  ... co`n la.i chi? dde^? la`m phe^' lie^.u
> tho^i Vee Khu`ng a` !
>
> 1 ca'i battery vo+'i ky~ thua^.t tho+`i ddo' chi? co' tuo^?i tho.
> 12-18 tha'ng. Ba mu+o+i na(m sau thi` tuo^?i tho. battery mo+'i le^n
> dde^'n 36 tha'ng - 48 tha'ng - 60 tha'ng dda^'y. Tu+` sau 1973, My~
> kho^ng co`n vie^.n tro+. nu+~a. Tu+` sau nga`y 31 tha'ng 03-1973 thi`
> qua^n so^' cu?a My~ o+? VN chi? co' 250 ngu+o+`i ma` tho^i.
>
> Battery ma` dead ro^`i thi` ca'c xe ta(ng, ma'y bay  ... chi? co'
> na(`m u. la`m sa('t vu.n. Dda^'y chi? la` 1 bo^. pha^.n battery tho^i.
> Chu+' co`n ma^'y thu+' kha'c hu+ ro^`i thi` chi? co' mua ddo^` chi'nh
> ha~ng tu+` Hue^ Ky` la('p vo^. Kho^ng co' thi` vu+'t xo'.
>
> Hay nhu+ dde`n pha ga('n tre^n xe ta(ng, bi. hu+ ro^`i la^'y gi` la('p
> vo^ dde^? la'i xe ta(ng ban dde^m Vee Khu`ng ? ddo^'t dde`n ca^`y
> a` ? ;-))))
>
> Hay nhu+ vo? ba'nh xe ma'y bay mo`n thi` la^'y gi` la('p vo^ ?
>
> thay ba(`ng vo? xe honda no^.i ddi.a ha? Vee Khu`ng ? ;-))))
>
> QTTT

ww

9/3/2010 3:03:00 AM

0

On Sep 2, 3:24 pm, Lichsu Vietnam <lichsuviet...@live.com> wrote:
> Hoang duc Nha MBA ? What a big joke, he can not estimate how much the
> US left with tanks and bullets with those enough to
> fight Vietcong for years to come that's what after The.o left S-VN,


trong nhu*~ng weaponry bo? la.i co' ca^y su'ng cu?a tha(`ng vee -do'm
khi no' bo? cha.y xin vo^ vatican o/ -du*o*.c ne^n bo? qua my~! :~)

GOD

9/3/2010 3:05:00 AM

0

That can be

>
..> trong nhu*~ng weaponry bo? la.i co' ca^y su'ng cu?a tha(`ng vee -
do'm
> khi no' bo? cha.y xin vo^ vatican o/ -du*o*.c ne^n bo? qua my~! :~)

TrinhQuocThien

9/3/2010 3:24:00 AM

0

O^'i zo+`i o+i Vee Khu`ng idiot !

Xin xem ba(`ng chu+'ng ng` ta (My~ + Israel) ba'n hoa? tie^~n Hawk va`
TOW (cho Iran) dde^? la^'y tie^`n cho chi Nicaragua
chu+' na`o co' la` ba'n thu+' su'ng dda.n ri? se't co^? lo^~ si~ tho
+`i VNCH dda^u.

http://en.wikipedia.org/wiki/Iran-Con...

Ddu'ng la` thu+' a(n ca('p roa`i ne^n idiot ! ;-)))

hay la` idiot ne^n pha?i a(n ca('p !? ;-))))))))))))))))))))))))))

QTTT

> Va^.y thi` Quack Thien ddu'ng la` tha(`ng a(n ca('p sa'ch roa`i, ma`y
> ne^n ddo.c nhie^`u News
> truo*'c khi ddi a(n ca('p TuTuongHCM cu?a nguo*`i kha'c dde^? vie^'t
> sa'ch ba'n dda^'y Thie^n o*i
>
> Trong News, ca'c so^' S/N cu?a su'ng dda.n My~ cung ca^'p cho S-VN
> thi` dda~ dduo*.c xu*? du.ng
> ha`ng loa.t ta.i Republic of Nicaragua  duo*'i tho*`i Daniel Ortega
> va`o tha^.p nie^n 80 ro^`i ca'c su'ng o^'ng na`y ro*i va`o tay Rebel
> cu?a Columbia cho dde^'n nay v.v...
>
> On Sep 2, 7:06 pm, TrinhQuocThien <trinhquocth...@gmail.com> wrote:> On Sep 2, 3:24 pm, Lichsu Vietnam <lichsuviet...@live.com> wrote:
>
> .> > Hoang duc Nha MBA ? What a big joke, he can not estimate how much
> the> > US left with tanks and bullets with those enough to
> > > fight Vietcong for years to come that's what after The.o left S-VN, VC
> > > took all the weaponry to fight in Cambodia plus sold to the
> > > South Latin America for money
>
> .> Viet Cong was a weaponary exporter in the past to South Latin
>
>
>
> > America!?
>
> > What's an idiot Vee Khu`ng! ;-))))))))))))))))
>
> > Ba'n sa('t phe^' lie^.u thi` co' ... chu+' lu'c ddo' chu'ng to+' ddo'i
> > nha(n ra(ng, ga.o, khoai sa('n, bo bo co`n kho^ng co' ma` a(n!
>
> > la`m gi` ma` VNCH co`n gi` dde^? ma` dde^? la.i ho+? tha(`ng Vee
> > Khu`ng bo? cha.y kia ! kho ga.o cu?a VNCH ro^~ng tue^'ch.
>
> > Kho Long Bi`nh ... thi` co`n ro^~ng ba.o tu+` sau 1973 !
>
> > Xe ta(ng VNCH, ma'y bay  ... co`n la.i chi? dde^? la`m phe^' lie^.u
> > tho^i Vee Khu`ng a` !
>
> > 1 ca'i battery vo+'i ky~ thua^.t tho+`i ddo' chi? co' tuo^?i tho.
> > 12-18 tha'ng. Ba mu+o+i na(m sau thi` tuo^?i tho. battery mo+'i le^n
> > dde^'n 36 tha'ng - 48 tha'ng - 60 tha'ng dda^'y. Tu+` sau 1973, My~
> > kho^ng co`n vie^.n tro+. nu+~a. Tu+` sau nga`y 31 tha'ng 03-1973 thi`
> > qua^n so^' cu?a My~ o+? VN chi? co' 250 ngu+o+`i ma` tho^i.
>
> > Battery ma` dead ro^`i thi` ca'c xe ta(ng, ma'y bay  ... chi? co'
> > na(`m u. la`m sa('t vu.n. Dda^'y chi? la` 1 bo^. pha^.n battery tho^i.
> > Chu+' co`n ma^'y thu+' kha'c hu+ ro^`i thi` chi? co' mua ddo^` chi'nh
> > ha~ng tu+` Hue^ Ky` la('p vo^. Kho^ng co' thi` vu+'t xo'.
>
> > Hay nhu+ dde`n pha ga('n tre^n xe ta(ng, bi. hu+ ro^`i la^'y gi` la('p
> > vo^ dde^? la'i xe ta(ng ban dde^m Vee Khu`ng ? ddo^'t dde`n ca^`y
> > a` ? ;-))))
>
> > Hay nhu+ vo? ba'nh xe ma'y bay mo`n thi` la^'y gi` la('p vo^ ?
>
> > thay ba(`ng vo? xe honda no^.i ddi.a ha? Vee Khu`ng ? ;-))))
>
> > QTTT- Hide quoted text -
>
> - Show quoted text -

GOD

9/3/2010 3:38:00 AM

0

Ma`y la.i dzo^'t ro^`i http://en.wikipedia.org/wiki/Nicaragu...
TT Daniel Ortega theo LienSo ne^n Regan ghe't va` VN support su'ng cho
Daniel Ortega nhu*ng nga`y
na`y so^' su'ng na`y ro*i va`o tay Rebel cu?a Columbia . Nga`y ho^m
nay Daniel Ortega la.i ta'i chu*'c TongThong
cu?a Nicaragua la^`n thu*' hai cha('c la` Obama support cho ha('n hay
support cho Nicaragua Rebel ??

Dzo^'t ma` vie^'t sa'ch ne^n bi` nguo*`i ta chu*?i la` pha?i

Video ThicQuangDuc bi. cha^m xa(ng bi. thui dda~ xua^'t hie^.n. Video
cu?a DuongVan Minh bi.
Vietcong ba('t bo' tay dda^`u ha`ng sau o't va` bi. ba('t quy` go^'i
truo*'c cu*?a Dinh Doc Lap se~ resurface 1 nga`y ga^`n
dda^y. Cho*` ddo' ma` a(n ca('p dde^? mang va`o LichsuViet post ba^.y
ba. cho FBI no' the?o ma^'t dze^'





On Sep 2, 8:24 pm, TrinhQuocThien <trinhquocth...@gmail.com> wrote:
> O^'i zo+`i o+i Vee Khu`ng idiot !
>
..> Xin xem ba(`ng chu+'ng ng` ta (My~ + Israel) ba'n hoa? tie^~n Hawk
va`
> TOW (cho Iran) dde^? la^'y tie^`n cho chi Nicaragua
> chu+' na`o co' la` ba'n thu+' su'ng dda.n ri? se't co^? lo^~ si~ tho
> +`i VNCH dda^u.
>
..> http://en.wikipedia.org/wiki/Iran-Con...
>
> Ddu'ng la` thu+' a(n ca('p roa`i ne^n idiot ! ;-)))
>
> hay la` idiot ne^n pha?i a(n ca('p !? ;-))))))))))))))))))))))))))
>
> QTTT
>
>
>
> > Va^.y thi` Quack Thien ddu'ng la` tha(`ng a(n ca('p sa'ch roa`i, ma`y
> > ne^n ddo.c nhie^`u News
> > truo*'c khi ddi a(n ca('p TuTuongHCM cu?a nguo*`i kha'c dde^? vie^'t
> > sa'ch ba'n dda^'y Thie^n o*i
>
> > Trong News, ca'c so^' S/N cu?a su'ng dda.n My~ cung ca^'p cho S-VN
> > thi` dda~ dduo*.c xu*? du.ng
> > ha`ng loa.t ta.i Republic of Nicaragua  duo*'i tho*`i Daniel Ortega
> > va`o tha^.p nie^n 80 ro^`i ca'c su'ng o^'ng na`y ro*i va`o tay Rebel
> > cu?a Columbia cho dde^'n nay v.v...
>
> > On Sep 2, 7:06 pm, TrinhQuocThien <trinhquocth...@gmail.com> wrote:> On Sep 2, 3:24 pm, Lichsu Vietnam <lichsuviet...@live.com> wrote:
>
> > .> > Hoang duc Nha MBA ? What a big joke, he can not estimate how much
> > the> > US left with tanks and bullets with those enough to
> > > > fight Vietcong for years to come that's what after The.o left S-VN, VC
> > > > took all the weaponry to fight in Cambodia plus sold to the
> > > > South Latin America for money
>
> > .> Viet Cong was a weaponary exporter in the past to South Latin
>
> > > America!?
>
> > > What's an idiot Vee Khu`ng! ;-))))))))))))))))
>
> > > Ba'n sa('t phe^' lie^.u thi` co' ... chu+' lu'c ddo' chu'ng to+' ddo'i
> > > nha(n ra(ng, ga.o, khoai sa('n, bo bo co`n kho^ng co' ma` a(n!
>
> > > la`m gi` ma` VNCH co`n gi` dde^? ma` dde^? la.i ho+? tha(`ng Vee
> > > Khu`ng bo? cha.y kia ! kho ga.o cu?a VNCH ro^~ng tue^'ch.
>
> > > Kho Long Bi`nh ... thi` co`n ro^~ng ba.o tu+` sau 1973 !
>
> > > Xe ta(ng VNCH, ma'y bay  ... co`n la.i chi? dde^? la`m phe^' lie^.u
> > > tho^i Vee Khu`ng a` !
>
> > > 1 ca'i battery vo+'i ky~ thua^.t tho+`i ddo' chi? co' tuo^?i tho.
> > > 12-18 tha'ng. Ba mu+o+i na(m sau thi` tuo^?i tho. battery mo+'i le^n
> > > dde^'n 36 tha'ng - 48 tha'ng - 60 tha'ng dda^'y. Tu+` sau 1973, My~
> > > kho^ng co`n vie^.n tro+. nu+~a. Tu+` sau nga`y 31 tha'ng 03-1973 thi`
> > > qua^n so^' cu?a My~ o+? VN chi? co' 250 ngu+o+`i ma` tho^i.
>
> > > Battery ma` dead ro^`i thi` ca'c xe ta(ng, ma'y bay  ... chi? co'
> > > na(`m u. la`m sa('t vu.n. Dda^'y chi? la` 1 bo^. pha^.n battery tho^i.
> > > Chu+' co`n ma^'y thu+' kha'c hu+ ro^`i thi` chi? co' mua ddo^` chi'nh
> > > ha~ng tu+` Hue^ Ky` la('p vo^. Kho^ng co' thi` vu+'t xo'.
>
> > > Hay nhu+ dde`n pha ga('n tre^n xe ta(ng, bi. hu+ ro^`i la^'y gi` la('p
> > > vo^ dde^? la'i xe ta(ng ban dde^m Vee Khu`ng ? ddo^'t dde`n ca^`y
> > > a` ? ;-))))
>
> > > Hay nhu+ vo? ba'nh xe ma'y bay mo`n thi` la^'y gi` la('p vo^ ?
>
> > > thay ba(`ng vo? xe honda no^.i ddi.a ha? Vee Khu`ng ? ;-))))
>
> > > QTTT- Hide quoted text -
>
> > - Show quoted text -

jupiterean

9/3/2010 3:48:00 AM

0

On Sep 2, 11:24 pm, TrinhQuocThien <trinhquocth...@gmail.com> wrote:
> O^'i zo+`i o+i Vee Khu`ng idiot !
>
> Xin xem ba(`ng chu+'ng ng` ta (My~ + Israel) ba'n hoa? tie^~n Hawk va`
> TOW (cho Iran) dde^? la^'y tie^`n cho chi Nicaragua
> chu+' na`o co' la` ba'n thu+' su'ng dda.n ri? se't co^? lo^~ si~ tho
> +`i VNCH dda^u.
>

Lo^.ng ru`i :-)))

Vu. Iran-contra la` My~ giu'p -do+~ phe Cho^'ng Ortega (Contras)

Co`n theo tin cu?a Dr Nach su'ng -da.n cu?a My~ cho VNCH thi` VC la^'y
-du+o+.c va` -du+a qua cho phe Ortega (tu+'c phe CS). Thu+.c hu+ ra
sao kho^ng ro~, nhu+ng tin na`y tui nho+' cu~ng -da~ -do.c -da^u -do'
la^u ru`i.

Ca'i point cu?a tui la` co' 2 phe: Ortega va` Contras, xin -du+`ng
la^'y ra^u o^ng ca('m ca(`m ba` nhe' :-))))

GOD

9/3/2010 3:56:00 AM

0


..> Ca'i point cu?a tui la` co' 2 phe: Ortega va` Contras, xin -du+`ng
> la^'y ra^u o^ng ca('m ca(`m ba` nhe'  :-))))

Quack Thien la^'y 1 so*.i lo^ng quy' tu*? na(`m giu*~a 2 ba('p ddu`i
cu?a Dr. Nach
ro^`i ca('m va`o bo^. ra^u cu?a Quack Thien dde^? hu` NhanDan
http://www.youtube.com/watch?v=Zu6idKmo11g&featu...