不用.net,在.aspx页面上用javascript就行了,比如设为首页
<a onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://YourHomePage');" href='#' style='text-decoration: none'>Set as homepage</a>
<a onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://YourHomePage');" href='#' style='text-decoration: none'>Set as homepage</a>
<a href="mailto:YourEmail">联系我们</a>
<a href=# onclick="javascript:window.external.addFavorite('http://www.go.com','test');">
始终有个下划线,用css 控制a:link
{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
color: #003399;
text-decoration: none
}a:visited {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
color: #003399;
text-decoration: none;
}
a:hover
{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
color: #003399;
text-decoration:underline;
}
a:active {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
color: #6699CC;
text-decoration: none;
}