ASP ကျူတိုရီရယ်များ

ASP ပင်မစာမျက်နှာ

WP ကျူတိုရီရယ်

ဝဘ်စာမျက်နှာများ နိဒါန်း ဝဘ်စာမျက်နှာများ သင်တုန်းဓား ဝဘ်စာမျက်နှာများ အပြင်အဆင် ဝဘ်စာမျက်နှာများ ဖိုဒါများ WebPages Global ဝဘ်စာမျက်နှာများ ပုံစံများ ဝဘ်စာမျက်နှာများ အရာဝတ္ထုများ WebPages ဖိုင်များ ဝဘ်စာမျက်နှာများ ဒေတာဘေ့စ်များ ဝဘ်စာမျက်နှာများ အကူအညီပေးသူများ ဝဘ်စာမျက်နှာများ WebGrid ဝဘ်စာမျက်နှာများ ဇယားများ ဝဘ်စာမျက်နှာများ အီးမေးလ် ဝဘ်စာမျက်နှာများ လုံခြုံရေး ဝဘ်စာမျက်နှာများ ထုတ်ဝေခြင်း။ ဝဘ်စာမျက်နှာများ ဥပမာများ WebPages အတန်းများ

ASP.NET Razor

သင်တုန်းမိတ်ဆက် Razor Syntax Razor C# Variables Razor C# ကွင်း သင်တုန်း C# ယုတ္တိဗေဒ Razor VB Variables Razor VB Loops Razor VB Logic

ASP Classic

ASP မိတ်ဆက် ASP Syntax ASP Variables ASP လုပ်ထုံးလုပ်နည်းများ ASP အခြေအနေများ ASP Looping ASP ပုံစံများ ASP Cookies ASP Session ASP လျှောက်လွှာ ASP #ပါဝင်ပါသည်။ ASP Global.asa ASP AJAX ASP အီးမေးလ် ASP ဥပမာများ

ASP အကိုးအကား

ASP VB လုပ်ဆောင်ချက်များ ASP VB သော့ချက်စာလုံးများ ASP တုံ့ပြန်မှု ASP တောင်းဆိုချက် ASP လျှောက်လွှာ ASP Session ASP ဆာဗာ ASP အမှား ASP ဖိုင်စနစ် ASP TextStream ASP Drive ASP ဖိုင် ASP Folder ASP အဘိဓာန် ASP AdRotator ASP BrowserCap ASP အကြောင်းအရာ ချိတ်ဆက်ခြင်း။ ASP အကြောင်းအရာ Rotator ASP အမြန် Ref

ADO ကျူတိုရီရယ်

ADO မိတ်ဆက် ADO ချိတ်ဆက်မှု ADO မှတ်တမ်းအစုံ ADO ရုပ်ထွက် ADO မေးခွန်း ADO အမျိုးအစား ADO ထည့်ပါ။ ADO အပ်ဒိတ် ADO ဖျက်ပါ။ ADO ဒီမို ADO အရှိန်မြှင့်ပါ။

ADO အရာဝတ္ထုများ

ADO Command ADO ချိတ်ဆက်မှု ADO အမှား ADO Field ADO Parameter ADO အိမ်ခြံမြေ ADO မှတ်တမ်း ADO မှတ်တမ်းအစုံ ADO တိုက်ရိုက်ကြည့်ရှုခြင်း။ ADO ဒေတာအမျိုးအစားများ

ASP အကြောင်းအရာ ချိတ်ဆက်ခြင်း အစိတ်အပိုင်း


နောက်ထပ် ဥပမာများ


သည် အကြောင်းအရာဇယားတစ်ခုကို တည်ဆောက်သည်။


စာသားဖိုင်ရှိ စာမျက်နှာများကြားတွင် သွားလာရန် အကြောင်းအရာ ချိတ်ဆက်ခြင်း အစိတ်အပိုင်းကို အသုံးပြုပါ။


ASP အကြောင်းအရာ ချိတ်ဆက်ခြင်း အစိတ်အပိုင်း

ASP အကြောင်းအရာ ချိတ်ဆက်ခြင်း အစိတ်အပိုင်းကို မြန်ဆန်လွယ်ကူသော လမ်းညွှန်မှုစနစ် ဖန်တီးရန် အသုံးပြုပါသည်။

အကြောင်းအရာလင့်ခ်ချိတ်ခြင်း အစိတ်အပိုင်းသည် လမ်းကြောင်းရှာရမည့် ဝဘ်စာမျက်နှာများစာရင်းကို ကိုင်ထားရန် အသုံးပြုသည့် Nextlink အရာဝတ္ထုကို ပြန်ပေးသည်။

အထားအသို

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

ASP အကြောင်းအရာ ချိတ်ဆက်ခြင်း ဥပမာ

ပထမဦးစွာ ကျွန်ုပ်တို့သည် စာသားဖိုင်ကို ဖန်တီးသည် - "links.txt":

asp_intro.asp ASP Intro
asp_syntax.asp ASP Syntax
asp_variables.asp ASP Variables
asp_procedures.asp ASP Procedures

အထက်ပါ စာသားဖိုင်တွင် လမ်းညွှန်ရမည့် စာမျက်နှာများ ပါရှိသည်။ စာမျက်နှာများကို ၎င်းတို့ကိုပြသစေလိုသည့် တူညီသောအစီအစဥ်တွင် စာရင်းပြုစုထားရမည်ဖြစ်ပြီး ၎င်းတွင် ဖိုင်အမည်တစ်ခုစီအတွက် ဖော်ပြချက်ပါရှိရမည် (ဖိုင်အမည်ဖော်ပြချက်မှ ခွဲခြားရန် တက်ဘ်ကီးကိုသုံးပါ)။

မှတ်ချက်- စာမျက်နှာတစ်ခုကို ထည့်လိုပါက သို့မဟုတ် စာရင်းရှိ စာမျက်နှာများ၏ အစီအစဥ်ကို ပြောင်းလဲပါ။ စာသားဖိုင်ကို ပြုပြင်ရန်သာ လိုအပ်သည်။ လမ်းညွှန်ချက်ကို အလိုအလျောက် ပြင်ပေးပါမည်။

ထို့နောက် ကျွန်ုပ်တို့သည် "nlcode.inc" ပါဝင်သော ဖိုင်တစ်ခုကို ဖန်တီးသည်။ .inc ဖိုင်သည် "links.txt" တွင် ဖော်ပြထားသော စာမျက်နှာများကြားတွင် သွားလာရန် NextLink အရာဝတ္ထုကို ဖန်တီးသည်။

"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" တွင် ကုဒ်ကို ပါ၀င်မည်ဖြစ်ပြီး လမ်းညွှန်မှု လုပ်ဆောင်ပါမည်။



ASP Content Linking Component ၏ နည်းလမ်းများ

Method Description Example
GetListCount Returns the number of items listed in the Content Linking List file <%
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")
%>

Output:

There are 4 items in the list

GetListIndex Returns the index number of the current item in the Content Linking List file. The index number of the first item is 1. 0 is returned if the current page is not in the Content Linking List file <%
dim nl,c
Set nl=Server.CreateObject("MSWC.NextLink")
c=nl.GetListIndex("links.txt")
Response.Write("Item number ")
Response.Write(c)
%>

Output:

Item number 3

GetNextDescription Returns the text description of the next item listed in the Content Linking List file. If the current page is not found in the list file it returns the text description of the last page on the list <%
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 Returns the URL of the next item listed in the Content Linking List file. If the current page is not found in the list file it returns the URL of the last page on the list <%
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 Returns the description of the Nth page listed in the Content Linking List file <%
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 Returns the URL of the Nth page listed in the Content Linking List file <%
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 Returns the text description of the previous item listed in the Content Linking List file. If the current page is not found in the list file it returns the text description of the first page on the list <%
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 Returns the URL of the previous item listed in the Content Linking List file. If the current page is not found in the list file it returns the URL of the first page on the list <%
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