検索(LINQtoXML)(3.5)
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
[[cratosslotgiris:https://www.cratosslot.pro/]]
[[cratosslot:https://www.cratosslot.pro/]]
[[Chaturbate:https://de.chaturbate.eu.com]]
[[Chatrubate German:https://de.chaturbate.eu.com]]
[[Chaturbat:https://de.chaturbate.eu.com]]
[[Chatubate:https://de.chaturbate.eu.com]]
[[chatirbate:https://de.chaturbate.eu.com]]
[[myfreecams:https://de.myfreecams.eu.com]]
[[mydirtyhobby:https://www.mydirtyhobby.vip]]
[[aylar mydirtyhobby:https://www.mydirtyhobby.vip]]
[[aylar my dirty hobby:https://www.mydirtyhobby.vip]]
※XMLデータは↓のリスト1の udons_sampleData.xml を App_Data...
http://itpro.nikkeibp.co.jp/article/COLUMN/20080312/29604...
【稼働画面】
#ref(search.JPG);
【SearchLinqXml.aspx】[3.5]
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitiona...
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVa...
'xmlデータをXElementクラスで読み込む
Dim xmldoc = XElement.Load(Server.MapPath("~/App...
'全件をGridViewに表示
Dim list = From c In xmldoc.Descendants("商品") _
Select _
品番 = c.Element("品番").Value, _
品名 = c.Element("品名").Value, _
セット内容 = c.Element("セット内...
価格 = c.Element("価格").Value
GridView1.DataSource = list
GridView1.DataBind()
End Sub
Protected Sub Button1_Click(ByVal sender As Object, ...
'xmlデータをXElementクラスで読み込む
Dim xmldoc = XElement.Load(Server.MapPath("~/App...
'検索:Where句で検索
Dim list = From c In xmldoc.Descendants("商品") _
Where c.Element("セット内容").Value.C...
Select _
品番 = c.Element("品番").Value, _
品名 = c.Element("品名").Value, _
セット内容 = c.Element("セット内...
価格 = c.Element("価格").Value
'結果をGridViewに表示
GridView1.DataSource = list
GridView1.DataBind()
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>検索(LINQ to XML) </title>
</head>
<body>
<form id="form1" runat="server">
<div>
検索(LINQ to XML) 09/09/06<br />
「セット内容」に「検索キーワード」を含むメニュー...
<br />
検索キーワード:<asp:TextBox ID="TextBox1" runat...
<asp:Button ID="Button1" runat="server" Height...
onclick="Button1_Click" />
<br />
<br />
<asp:GridView ID="GridView1" runat="server">
</asp:GridView>
</div>
</form>
</body>
</html>
【参考にしたページ】
1.部分一致検索:1.指定文字列を含む特定要素の抽出 08/06/10
http://itpro.nikkeibp.co.jp/article/COLUMN/20080604/30633...
- 20190109 junda http://www.coach-factory-outlet-online.u...
- http://www.oakleysunglassese.us.com/ http://www.oakley...
- Often http://www.louis-vuittonoutletcanada.ca/ the http...
- http://www.oakleysunglassesa.us.com/ http://www.oakley-...
- Download Zapya for PC http://www.zapyapc.com/zapya-for-...
- nice information it is.http://www.zapyapc.com/ http://...
- This is really informative. https://www.imoforwindowsp...
- This is really informative. https://www.imoforwindowsp...
- http://0488.info/ -- [[kleinbus mieten]] &new{2023-02-2...
- http://0488.info/ -- [[kleinbus mieten]] &new{2023-02-2...
- https://images.google.com/url?q=https://kibla.de/%2F ht...
#comment_nospam
#vote(参考になった[2],ふつう[0],参考にならなかった[0])
終了行:
[[cratosslotgiris:https://www.cratosslot.pro/]]
[[cratosslot:https://www.cratosslot.pro/]]
[[Chaturbate:https://de.chaturbate.eu.com]]
[[Chatrubate German:https://de.chaturbate.eu.com]]
[[Chaturbat:https://de.chaturbate.eu.com]]
[[Chatubate:https://de.chaturbate.eu.com]]
[[chatirbate:https://de.chaturbate.eu.com]]
[[myfreecams:https://de.myfreecams.eu.com]]
[[mydirtyhobby:https://www.mydirtyhobby.vip]]
[[aylar mydirtyhobby:https://www.mydirtyhobby.vip]]
[[aylar my dirty hobby:https://www.mydirtyhobby.vip]]
※XMLデータは↓のリスト1の udons_sampleData.xml を App_Data...
http://itpro.nikkeibp.co.jp/article/COLUMN/20080312/29604...
【稼働画面】
#ref(search.JPG);
【SearchLinqXml.aspx】[3.5]
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitiona...
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVa...
'xmlデータをXElementクラスで読み込む
Dim xmldoc = XElement.Load(Server.MapPath("~/App...
'全件をGridViewに表示
Dim list = From c In xmldoc.Descendants("商品") _
Select _
品番 = c.Element("品番").Value, _
品名 = c.Element("品名").Value, _
セット内容 = c.Element("セット内...
価格 = c.Element("価格").Value
GridView1.DataSource = list
GridView1.DataBind()
End Sub
Protected Sub Button1_Click(ByVal sender As Object, ...
'xmlデータをXElementクラスで読み込む
Dim xmldoc = XElement.Load(Server.MapPath("~/App...
'検索:Where句で検索
Dim list = From c In xmldoc.Descendants("商品") _
Where c.Element("セット内容").Value.C...
Select _
品番 = c.Element("品番").Value, _
品名 = c.Element("品名").Value, _
セット内容 = c.Element("セット内...
価格 = c.Element("価格").Value
'結果をGridViewに表示
GridView1.DataSource = list
GridView1.DataBind()
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>検索(LINQ to XML) </title>
</head>
<body>
<form id="form1" runat="server">
<div>
検索(LINQ to XML) 09/09/06<br />
「セット内容」に「検索キーワード」を含むメニュー...
<br />
検索キーワード:<asp:TextBox ID="TextBox1" runat...
<asp:Button ID="Button1" runat="server" Height...
onclick="Button1_Click" />
<br />
<br />
<asp:GridView ID="GridView1" runat="server">
</asp:GridView>
</div>
</form>
</body>
</html>
【参考にしたページ】
1.部分一致検索:1.指定文字列を含む特定要素の抽出 08/06/10
http://itpro.nikkeibp.co.jp/article/COLUMN/20080604/30633...
- 20190109 junda http://www.coach-factory-outlet-online.u...
- http://www.oakleysunglassese.us.com/ http://www.oakley...
- Often http://www.louis-vuittonoutletcanada.ca/ the http...
- http://www.oakleysunglassesa.us.com/ http://www.oakley-...
- Download Zapya for PC http://www.zapyapc.com/zapya-for-...
- nice information it is.http://www.zapyapc.com/ http://...
- This is really informative. https://www.imoforwindowsp...
- This is really informative. https://www.imoforwindowsp...
- http://0488.info/ -- [[kleinbus mieten]] &new{2023-02-2...
- http://0488.info/ -- [[kleinbus mieten]] &new{2023-02-2...
- https://images.google.com/url?q=https://kibla.de/%2F ht...
#comment_nospam
#vote(参考になった[2],ふつう[0],参考にならなかった[0])
ページ名: