1

I have a field (in a GridView): If I change asp:LinkButton to asp:Button the code behind does not work. I want the appearance of the control to look like a button not a link but otherwise I want it to function as it does now. What should I do?

benjamin moskovits
  • 5,261
  • 1
  • 12
  • 22

1 Answers1

0

you can make LinkButton look like button using CSS:

.button {
font: bold 11px Arial;
text-decoration: none;
background-color: #EEEEEE;
color: #333333;
padding: 2px 6px 2px 6px;
border-top: 1px solid #CCCCCC;
border-right: 1px solid #333333;
border-bottom: 1px solid #333333;
border-left: 1px solid #CCCCCC;
}

See previous discussion on this subject here

Community
  • 1
  • 1
Yuri
  • 2,820
  • 4
  • 28
  • 40