不用.net,在.aspx页面上用javascript就行了,比如设为首页
<a onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://YourHomePage');" href='#' style='text-decoration: none'>Set as homepage</a>

解决方案 »

  1.   

    加入收藏我忘了,等别人告诉你吧,联系我们:
    <a href="mailto:YourEmail">联系我们</a>
      

  2.   

    <a href=# onclick="javascript:window.external.addFavorite('http://www.go.com','test');">加入收藏</a>
      

  3.   


    <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;



    }