网络编程
位置:首页>> 网络编程>> Asp编程>> asp如何自动更新导航栏?

asp如何自动更新导航栏?

  发布时间:2010-07-07 12:10:00 

标签:导航,asp,组件

如何自动更新导航栏?

下面看看如何具体使用Content Linking组件:
    

< html>
    < head>
    < meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    < title>Content Linking组件应用 -www.aspxhome.com< /title>
    < /head>
    < body>
    < center>< font color=red>Content Linking组件应用示范< /font>< /center>
    < ul>
    < %
    Set Link=Server.CreateObject("MSWC.NextLink")
    lcount=Link.GetListCount("conlink.txt") 
' 用GetListCount方法确定在conlink.txt中有多少条超链
    Dim i
    For i=1 to lcount
      < li>< a href="< % =Link.GetNthURL("conlink.txt", i) %>" >
< %=Link.GetNthDescription("conlink.txt", i) %>< /a>
    < % Next %>
' 用GetNthURL、GetNthDescription方法逐一将存储在conlink.txt 文件的URL和文本信息读出并显示给客户端浏览器,循环执行
    < /ul>
    < /body>
    < /html>

   
    
 
    
   

0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com