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 Dictionary Object


Dictionary object သည် အချက်အလက်များကို အမည်/တန်ဖိုးအတွဲများဖြင့် သိမ်းဆည်းထားသည်။


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


Dictionary object တစ်ခုကို ဖန်တီးနည်း၊ ထို့နောက် သတ်မှတ်ထားသော သော့ရှိမရှိ စစ်ဆေးရန် Exists နည်းလမ်းကို အသုံးပြုပါ။


ခင်းကျင်းတစ်ခုပြန်ပို့ပေးရန် Items နည်းလမ်းကို အသုံးပြုနည်း။


တစ်ခုကို ပြန်ရန် သော့နည်းလမ်းကို အသုံးပြုနည်း။


တစ်ခု၏တန်ဖိုးကို ပြန်ပေးသည့်အရာသည် အရာတစ်ခု၏တန်ဖိုးကို ပြန်ပေးရန်အတွက် Item Property ကိုအသုံးပြုနည်း။


သော့ပိုင်ဆိုင်မှုကို အသုံးပြုနည်း Dictionary object တစ်ခုတွင် သော့တစ်ခုကို သတ်မှတ်ရန်။


များ အရေအတွက်ကို ပြန်ပေးရန်အတွက် Count property ကို အသုံးပြုနည်း။


Dictionary Object

Dictionary object ကို အမည်/တန်ဖိုးအတွဲများ (သော့နှင့် အကြောင်းအရာဟု ရည်ညွှန်းသည်) တွင် အချက်အလက်များကို သိမ်းဆည်းရန်အတွက် အသုံးပြုပါသည်။ Dictionary object သည် Arrays နှင့် ဆင်တူပုံရနိုင်သော်လည်း Dictionary object သည် ဆက်စပ်ဒေတာများကို ကိုင်တွယ်ရန် ပို၍နှစ်လိုဖွယ်ကောင်းသော အဖြေတစ်ခုဖြစ်သည်။

အဘိဓာန်များနှင့် အခင်းအကျင်းများကို နှိုင်းယှဉ်ခြင်း-

  • Dictionary object တစ်ခုရှိ အရာများကို ခွဲခြားသတ်မှတ်ရန် သော့များကို အသုံးပြုသည်။
  • Dictionary object ၏ အရွယ်အစားကို ပြောင်းလဲရန် ReDim ကို သင်ခေါ်ဆိုရန် မလိုအပ်ပါ။
  • Dictionary တစ်ခုမှ အကြောင်းအရာတစ်ခုကို ဖျက်လိုက်သောအခါ ကျန်အရာများသည် အလိုအလျောက် ပြောင်းသွားပါမည်။
  • အဘိဓာန်များသည် ဘက်ပေါင်းစုံမှမဖြစ်နိုင်ပါ၊ Array များလုပ်နိုင်သည်။
  • အဘိဓာန်များသည် Arrays များထက် built-in function ပိုများသည်။
  • အဘိဓာန်များသည် ကျပန်းဒြပ်စင်များကို မကြာခဏဝင်ရောက်ကြည့်ရှုခြင်းအတွက် array များထက် ပိုမိုကောင်းမွန်ပါသည်။
  • အဘိဓာန်များသည် ၎င်းတို့၏ အကြောင်းအရာအလိုက် အရာများကို ရှာဖွေရာတွင် အခင်းအကျင်းများထက် ပိုမိုကောင်းမွန်ပါသည်။

အောက်ဖော်ပြပါ ဥပမာသည် Dictionary object တစ်ခုကို ဖန်တီးပြီး၊ အချို့သော့/ပစ္စည်း အတွဲများကို ၎င်းသို့ ပေါင်းထည့်ကာ key gr အတွက် item value ကို ပြန်လည်ရယူသည်-

<%
Dim d
Set d=Server.CreateObject("Scripting.Dictionary")
d.Add "re","Red"
d.Add "gr","Green"
d.Add "bl","Blue"
d.Add "pi","Pink"
Response.Write("The value of key gr is: " & d.Item("gr"))
%>

Output:

The value of key gr is: Green


Dictionary object ၏ ဂုဏ်သတ္တိများနှင့် နည်းလမ်းများကို အောက်တွင် ဖော်ပြထားပါသည်။

သတ္တိ

Property Description
CompareMode Sets or returns the comparison mode for comparing keys in a Dictionary object
Count Returns the number of key/item pairs in a Dictionary object
Item Sets or returns the value of an item in a Dictionary object
Key Sets a new key value for an existing key value in a Dictionary object

နည်းလမ်းများ

Method Description
Add Adds a new key/item pair to a Dictionary object
Exists Returns a Boolean value that indicates whether a specified key exists in the Dictionary object
Items Returns an array of all the items in a Dictionary object
Keys Returns an array of all the keys in a Dictionary object
Remove Removes one specified key/item pair from the Dictionary object
RemoveAll Removes all the key/item pairs in the Dictionary object