亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

ディレクトリ 検索
ASP 基礎(chǔ)教程 在自己的 PC 上運行 ASP ASP 基本語法規(guī)則 ASP 變量 ASP 子程序 ASP 表單和用戶輸入 ASP Cookies ASP Session 對象 ASP Application 對象 ASP 引用文件 ASP Global.asa 文件 ASP 使用 CDOSYS 發(fā)送電子郵件 ASP 對象 ASP Response 對象 ASP Cookies 集合 ASP Buffer 屬性 ASP CacheControl 屬性 ASP Charset 屬性 ASP ContentType 屬性 ASP Expires 屬性 ASP ExpiresAbsolute 屬性 ASP IsClientConnected 屬性 ASP PICS 屬性 ASP Status 屬性 ASP AddHeader 方法 ASP AppendToLog 方法 ASP BinaryWrite 方法 ASP Clear 方法 ASP End 方法 ASP Flush 方法 ASP Redirect 方法 ASP Write 方法 ASP Request 對象 ASP Cookies 集合 ASP Form 集合 ASP QueryString 集合 ASP ServerVariables 集合 ASP 教程 ASP TotalBytes 屬性 ASP BinaryRead 方法 ASP Application 對象 ASP Contents 集合 ASP StaticObjects 集合 ASP Contents.RemoveAll 方法 ASP Lock 和 Unlock 方法 ASP Application OnStart 和 Application OnEnd 事件 ASP Session 對象 ASP Contents 集合 ASP StaticObjects 集合 ASP CodePage 屬性 ASP LCID 屬性 ASP SessionID 屬性 ASP Timeout 屬性 ASP Abandon 方法 ASP Contents.Remove 方法 ASP Contents.RemoveAll 方法 ASP Session OnStart 和 Session OnEnd 事件 ASP ScriptTimeout 屬性 ASP CreateObject 方法 ASP Execute 方法 ASP Server 對象 ASP GetLastError() 方法 (ASP 3.0) ASP HTMLEncode 方法 ASP MapPath 方法 ASP Transfer 方法 ASP URLEncode 方法 ASP ASPError 對象 ASP ASPError 對象的屬性 ASP FileSystemObject 對象 ASP Drives 屬性 ASP BuildPath 方法 ASP CopyFile 方法 ASP CopyFolder 方法 ASP CreateFolder 方法 ASP CreateTextFile 方法 ASP DeleteFile 方法 ASP DeleteFolder 方法 ASP DriveExists 方法 ASP FileExists 方法 ASP FolderExists 方法 ASP GetAbsolutePathName 方法 ASP GetBaseName 方法 ASP GetDrive 方法 ASP GetDriveName 方法 ASP GetExtensionName 方法 ASP GetFile 方法 ASP GetFileName 方法 ASP GetFolder 方法 ASP GetParentFolderName 方法 ASP GetSpecialFolder 方法 ASP GetTempName 方法 ASP MoveFile 方法 ASP MoveFolder 方法 ASP OpenTextFile 方法 ASP TextStream 對象 ASP AtEndOfLine 屬性 ASP AtEndOfStream 屬性 ASP Column 屬性 ASP Line 屬性 ASP Close 方法 ASP Read 方法 ASP ReadAll 方法 ASP ReadLine 方法 ASP Skip 方法 ASP SkipLine 方法 ASP Write 方法 ASP WriteLine 方法 ASP WriteBlankLines 方法 ASP Drive 對象 ASP AvailableSpace 屬性 ASP DriveLetter 屬性 ASP DriveType 屬性 ASP FileSystem 屬性 ASP FreeSpace 屬性 ASP IsReady 屬性 ASP Path 屬性 ASP RootFolder 屬性 ASP SerialNumber 屬性 ASP ShareName 屬性 ASP TotalSize 屬性 ASP VolumeName 屬性 ASP File 對象 ASP Attributes 屬性 ASP DateCreated 屬性 ASP DateLastAccessed 屬性 ASP DateLastModified 屬性 ASP Drive 屬性 ASP Name 屬性 ASP ParentFolder 屬性 ASP Path 屬性 ASP ShortName 屬性 ASP ShortPath 屬性 ASP Size 屬性 ASP Type 屬性 ASP Copy 方法 ASP Delete 方法 ASP Move 方法 ASP OpenAsTextStream 方法 ASP Folder 對象 ASP Files 集合 ASP SubFolders 集合 ASP Attributes 屬性 ASP DateCreated 屬性 ASP DateLastAccessed 屬性 ASP DateLastModified 屬性 ASP Drive 屬性 ASP IsRootFolder 屬性 ASP Name 屬性 ASP ParentFolder 屬性 ASP Path 屬性 ASP ShortName 屬性 ASP ShortPath 屬性 ASP Size 屬性 ASP Type 屬性 ASP Copy 方法 ASP Delete 方法 ASP Move 方法 ASP CreateTextFile 方法 ASP Dictionary 對象 ASP CompareMode 屬性 ASP Count 屬性 ASP Item 屬性 ASP Key 屬性 ASP Add 方法 ASP Exists 方法 ASP Items 方法 ASP Keys 方法 ASP Remove 方法 ASP RemoveAll 方法 ASP ADO ASP 組件 ASP AdRotator 組件 ASP Browser Capabilities 組件 ASP Content Linking 組件 ASP Content Rotator 組件 (ASP 3.0) ASP 與 AJAX AJAX 簡介 ASP - AJAX 與 ASP AJAX 數(shù)據(jù)庫實例 ASP 實例 ASP 實例 ASP 快速參考
テキスト

ASP Content Linking 組件



在線實例

Content Linking 組件
本例構(gòu)建一個內(nèi)容列表。

<!DOCTYPE?html>
<html>
<body>

<p>
The?example?below?builds?a?table?of?contents.
</p>

<%
dim?c
dim?i
set?nl=server.createobject("MSWC.Nextlink")
c?=?nl.GetListCount("text\links.txt")
i?=?1
%>
<ul>
<%do?while?(i?<=?c)?%>
<li><a?href="<%=nl.GetNthURL("text\links.txt",?i)%>">
<%=nl.GetNthDescription("text\links.txt",?i)%></a>
<%
i?=?(i?+?1)
loop
%>
</ul>
<p>
The?text?file?contains?a?list?of?page?urls
and?link?descriptions.?It?contains?one?line?of?text?for?each?page.?Note?that?the?url?and
description?MUST?be?separated?by?the?TAB?character.
</p>
<p>
<a?href="text/links.txt"><img?src="/images/btn_view_text.gif"></a>
</p>
</body>
</html>

Content Linking 組件 2
本例使用 Content Linking 組件在一個文本文件所列的頁面間進行導(dǎo)航。

<!DOCTYPE?html>
<html>
<body>

<h1>
This?is?page?1!
</h1>

<%
Set?nl=Server.CreateObject("MSWC.NextLink")
If?(nl.GetListIndex("text/links2.txt")>1)?Then
%>
<a?href="<%Response.Write(nl.GetPreviousURL("text/links2.txt"))%>">Previous?Page</a>
<%End?If%>

<a?href="<%Response.Write(nl.GetNextURL("text/links2.txt"))%>">Next?Page</a>

<p>The?example?uses?the?Content?Linking?Component?
to?navigate?between?the?pages?in?a?text?file.</p>

<p>
<a?href="text/links2.txt"><img?src="/images/btn_view_text.gif"></a>
</p>
</body>
</html>

ASP Content Linking 組件

ASP Content Linking 組件用于創(chuàng)建快捷便利的導(dǎo)航系統(tǒng)!

Content Linking 組件會返回一個 Nextlink 對象,這個對象用于容納需要導(dǎo)航網(wǎng)頁的一個列表。

語法

<%
Set nl=Server.CreateObject("MSWC.NextLink")
%>

ASP Content Linking 實例

首先,我們會創(chuàng)建一個文本文件 - "links.txt":

asp_intro.asp ASP 簡介
asp_syntax.asp ASP 語法
asp_variables.asp ASP 變量
asp_procedures.asp ASP 程序

上面的文本文件包含需要導(dǎo)航的頁面。頁面的排列順序應(yīng)該與它們的顯示順序相同,并包含對每個文件名的描述(使用制表符來分隔文件名和描述信息)。

注釋:如果您希望向列表添加頁面,或者改變在列表中的頁面順序,那么您需要做的僅僅是修改這個文本文件而已!導(dǎo)航會自動更新!

然后我們創(chuàng)建一個引用文件,"nlcode.inc"。.inc 文件創(chuàng)建一個 NextLink 對象來在 "links.txt" 中列出的頁面間進行導(dǎo)航。

"nlcode.inc":

<%
dim nl
Set nl=Server.CreateObject("MSWC.NextLink")
if (nl.GetListIndex("links.txt")>1) then
Response.Write("<a href='" & nl.GetPreviousURL("links.txt"))
Response.Write("'>Previous Page</a>")
end if
Response.Write("<a href='" & nl.GetNextURL("links.txt"))
Response.Write("'>Next Page</a>")
%>

請在文本文件 "links.txt" 列出的每個 .asp 頁面中放置一行代碼:<!-- #include file="nlcode.inc"-->。這行代碼會在 "links.txt" 中列出每個頁面上引用 "nlcode.inc" 中的代碼,這樣導(dǎo)航就可以工作了。


ASP Content Linking 組件的方法

方法 描述 實例
GetListCount 返回內(nèi)容鏈接列表文件中所列項目的數(shù)量。 <%
dim nl,c
Set nl=Server.CreateObject("MSWC.NextLink")
c=nl.GetListCount("links.txt")
Response.Write("There are ")
Response.Write(c)
Response.Write(" items in the list")
%>

輸出:

There are 4 items in the list

GetListIndex 返回在內(nèi)容鏈接列表文件中當前條目的索引號。第一個條目的索引號是 1。如果當前頁面不在內(nèi)容鏈接列表文件中,則返回 0。 <%
dim nl,c
Set nl=Server.CreateObject("MSWC.NextLink")
c=nl.GetListIndex("links.txt")
Response.Write("Item number ")
Response.Write(c)
%>

輸出:

Item number 3

GetNextDescription 返回在內(nèi)容鏈接列表文件中所列的下一個條目的文本描述。如果在列表文件中沒有找到當前文件,則返回列表中最后一個頁面的文本描述。 <%
dim nl,c
Set nl=Server.CreateObject("MSWC.NextLink")
c=nl.GetNextDescription("links.txt")
Response.Write("Next ")
Response.Write("description is: ")
Response.Write(c)
%>

輸出:

Next description is: ASP Variables

GetNextURL 返回在內(nèi)容鏈接列表文件中所列的下一個條目的 URL。如果在列表文件中沒有找到當前文件,則返回列表中最后一個頁面的 URL。 <%
dim nl,c
Set nl=Server.CreateObject("MSWC.NextLink")
c=nl.GetNextURL("links.txt")
Response.Write("Next ")
Response.Write("URL is: ")
Response.Write(c)
%>

輸出:

Next URL is: asp_variables.asp

GetNthDescription 返在內(nèi)容鏈接列表文件中所列的第 N 個頁面的描述信息。 <%
dim nl,c
Set nl=Server.CreateObject("MSWC.NextLink")
c=nl.GetNthDescription("links.txt",3)
Response.Write("Third ")
Response.Write("description is: ")
Response.Write(c)
%>

輸出:

Third description is: ASP Variables

GetNthURL 返回在內(nèi)容鏈接列表文件中所列的第 N 個頁面的 URL。 <%
dim nl,c
Set nl=Server.CreateObject("MSWC.NextLink")
c=nl.GetNthURL("links.txt",3)
Response.Write("Third ")
Response.Write("URL is: ")
Response.Write(c)
%>

輸出:

Third URL is: asp_variables.asp

GetPreviousDescription 返回在內(nèi)容鏈接列表文件中所列的前一個條目的文本描述。如果在列表文件中沒有找到當前文件,則返回列表中第一個頁面的文本描述。 <%
dim nl,c
Set nl=Server.CreateObject("MSWC.NextLink")
c=nl.GetPreviousDescription("links.txt")
Response.Write("Previous ")
Response.Write("description is: ")
Response.Write(c)
%>

輸出:

Previous description is: ASP Variables

GetPreviousURL 返回在內(nèi)容鏈接列表文件中所列的前一個條目的 URL。如果在列表文件中沒有找到當前文件,則返回列表中第一個頁面的 URL。 <%
dim nl,c
Set nl=Server.CreateObject("MSWC.NextLink")
c=nl.GetPreviousURL("links.txt")
Response.Write("Previous ")
Response.Write("URL is: ")
Response.Write(c)
%>

輸出:

Previous URL is: asp_variables.asp


前の記事: 次の記事: