Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

ASP.net VB.net Build that looks like a button

Hi

In my ASP.net web app I use the following code to create a link that will appear in emails. I want the link to look more like a button, possibly with
a gradient affect. How would I do this? Thanks

            oLink = "http://xxxxx.azurewebsites.net/progressive_report?oLoadShaft=" & Replace(oShaft, " ", "%20")
            oHBody = oHBody & "<br>"
            oHBody = oHBody & "<a href=" & oLink & ">" & oShaftandRegion & "</a>"
            oHBody = oHBody & "<br>"

Open in new window

Avatar of Rikin Shah
Rikin Shah
Flag of India image

Hi,

You need to apply css on your link. Check this example from w3schools-
https://www.w3schools.com/css/tryit.asp?filename=trycss_link_advanced
Here is another example-

.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;
}
<a href="#" class="button">Example</a>

Open in new window

Avatar of Murray Brown

ASKER

Thanks. How would I change my link so that the css is inside it?
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ok will do. Thank you both