<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/chaka-poko/">
    <title>プログラムのメモ置き場 @ ウィキ</title>
    <link>http://w.atwiki.jp/chaka-poko/</link>
    <atom:link href="https://w.atwiki.jp/chaka-poko/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>プログラムのメモ置き場 @ ウィキ</description>

    <dc:language>ja</dc:language>
    <dc:date>2014-08-01T13:53:53+09:00</dc:date>
    <utime>1406868833</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/chaka-poko/pages/37.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/chaka-poko/pages/36.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/chaka-poko/pages/35.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/chaka-poko/pages/34.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/chaka-poko/pages/33.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/chaka-poko/pages/32.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/chaka-poko/pages/31.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/chaka-poko/pages/30.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/chaka-poko/pages/29.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/chaka-poko/pages/28.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/chaka-poko/pages/37.html">
    <title>JavaScript/js002</title>
    <link>https://w.atwiki.jp/chaka-poko/pages/37.html</link>
    <description>
      &amp;topicpath()
**EnterKeyの制御　その１
***JWebForm1_1.aspx
#highlight(linenumber){
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head runat=&quot;server&quot;&gt;
    &lt;title&gt;JavaScript Enterキー入力でFocus移動 その1&lt;/title&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;
    
      function ChangeKeycode() {
        if (event.keyCode == 13 &amp;&amp; event.srcElement.type == &#039;text&#039;) {
          event.keyCode = 9;
        }
      }

      document.onkeydown = ChangeKeycode;

    &lt;/script&gt;
&lt;/head&gt;
&lt;body onload=&quot;document.form1.txtUserID.focus()&quot;&gt;
    &lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;
    &lt;h2&gt;
      JavaScript&lt;/h2&gt;
    &lt;h3&gt;
      Enterキーの制御　その１&lt;/h3&gt;
      &lt;table cellpadding=&quot;5&quot;&gt;
        &lt;tr&gt;
          &lt;td width=&quot;110px&quot;&gt;
            ユーザーＩＤ：&lt;/td&gt;
          &lt;td width=&quot;160px&quot;&gt;
            &lt;asp:TextBox ID=&quot;txtUserID&quot; runat=&quot;server&quot;&gt;&lt;/asp:TextBox&gt;
          &lt;/td&gt;
          &lt;td width=&quot;50px&quot;&gt;
            &amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
          &lt;td&gt;
            パスワード：&lt;/td&gt;
          &lt;td&gt;
            &lt;a    </description>
    <dc:date>2014-08-01T13:53:53+09:00</dc:date>
    <utime>1406868833</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/chaka-poko/pages/36.html">
    <title>ASP.NET/asp008</title>
    <link>https://w.atwiki.jp/chaka-poko/pages/36.html</link>
    <description>
      &amp;topicpath()
**テーマ・スタイル研究（VS2008改訂版）







***参考にさせていただいたページ
-[[C# と VB.NET の質問掲示板：GridViewにDBの画像を縦横比保持して縮小表示するには&gt;http://bbs.wankuma.com/index.cgi?mode=al2&amp;namber=39957&amp;KLOG=68]]
----
[Counter] Total：&amp;counter(total)    </description>
    <dc:date>2012-08-21T16:07:42+09:00</dc:date>
    <utime>1345532862</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/chaka-poko/pages/35.html">
    <title>SqlServer/sql001</title>
    <link>https://w.atwiki.jp/chaka-poko/pages/35.html</link>
    <description>
      &amp;topicpath()
**連番を振りなおす
***テーブルのレイアウト
|BGCOLOR(#eeeeee):CENTER:&#039;&#039;フィールド名&#039;&#039;|BGCOLOR(#eeeeee):CENTER:&#039;&#039;データ型&#039;&#039;|BGCOLOR(#eeeeee):|
|id|int|ID（主キー 連番）|
|jun|int|順番|
|wamei|varchar(50)|和名|
***テーブルのデータ

　［　実行前　］
|BGCOLOR(#eeeeee):CENTER:&#039;&#039;id&#039;&#039;|BGCOLOR(#eeeeee):CENTER:&#039;&#039;junban&#039;&#039;|BGCOLOR(#eeeeee):&#039;&#039;wamei&#039;&#039;|
|RIGHT:3|RIGHT:10|睦月|
|RIGHT:6|RIGHT:23|如月|
|RIGHT:9|RIGHT:35|弥生|
|RIGHT:12|RIGHT:47|卯月|
|RIGHT:15|RIGHT:59|皐月|
|RIGHT:18|RIGHT:62|水無月|
|RIGHT:21|RIGHT:74|文月|
|RIGHT:24|RIGHT:86|葉月|
|RIGHT:27|RIGHT:98|長月|
|RIGHT:30|RIGHT:101|神無月|
|RIGHT:33|RIGHT:113|霜月|
|RIGHT:36|RIGHT:125|師走|

　［　実行後　］
|BGCOLOR(#eeeeee):CENTER:&#039;&#039;id&#039;&#039;|BGCOLOR(#eeeeee):CENTER:&#039;&#039;junban&#039;&#039;|BGCOLOR(#eeeeee):&#039;&#039;wamei&#039;&#039;|
|RIGHT:3|RIGHT:10|睦月|
|RIGHT:6|RIGHT:20|如月|
|RIGHT:9|RIGHT:30|弥生|
|RIGHT:12|RIGHT:40|卯月|
|RIGHT:15|RIGHT:50|皐月|
|RIGHT:18|RIGHT:60|水無月|
|RIGHT:21|RIGHT:70|文月|
|RIGHT:24|RIGHT:80|葉月|
|RIGHT:27|RIGHT:90|長月|
|RIGHT:30|RIGHT:100|神無月|
|RIGHT:33|RIGHT:110|霜月|
|RIGHT:36|RIGHT:120|師走|

    </description>
    <dc:date>2010-07-20T17:21:14+09:00</dc:date>
    <utime>1279614074</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/chaka-poko/pages/34.html">
    <title>SQLServer</title>
    <link>https://w.atwiki.jp/chaka-poko/pages/34.html</link>
    <description>
      &amp;topicpath()
**SQLServer
-[[連番を振りなおす&gt;SQLServer/sql001]]
----
[Counter] Total：&amp;counter(total)    </description>
    <dc:date>2012-04-25T16:32:40+09:00</dc:date>
    <utime>1335339160</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/chaka-poko/pages/33.html">
    <title>ASP.NET/asp007</title>
    <link>https://w.atwiki.jp/chaka-poko/pages/33.html</link>
    <description>
      &amp;topicpath()
**画像を縮小表示する（ASP.NET）
****メモ
透過GIFは透過でなくなってしまう。Bitmapに変換してから縮小しているから？
***テーブルのレイアウト
|BGCOLOR(#eeeeee):CENTER:&#039;&#039;フィールド名&#039;&#039;|BGCOLOR(#eeeeee):CENTER:&#039;&#039;データ型&#039;&#039;|BGCOLOR(#eeeeee):|
|id|int|ID（主キー 連番）|
|subject|varchar(300)|件名|
|title|varchar(100)|ファイル名|
|type|varchar(50)|MIMEタイプ|
|idata|varbinary(MAX)|バイナリ・データ|
|last_modified|datetime|最終更新日|
***Thumbnail2.aspx
#highlight(linenumber){&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;
&lt;head runat=&quot;server&quot;&gt;
    &lt;title&gt;画像を縮小して表示（ASP.NET）&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;
    &lt;h3&gt;
      画像を縮小して表示 ASP.NET版&lt;/h3&gt;
        &lt;asp:HyperLink ID=&quot;HyperLink1&quot; runat=&quot;server&quot; NavigateUrl=&quot;~/Default.aspx&quot;&gt;戻る&lt;/asp:HyperLink&gt;
      &lt;p&gt;
        100px×100pxに収まるように比率を維持して縮小&lt;/p&gt;
      &lt;asp:DataList ID=&quot;DataList1&quot; runat=&quot;server&quot; DataKeyField=&quot;id&quot; DataSourceID=&quot;SqlDataSource1&quot;&gt;
        &lt;ItemTemplate&gt;
          &lt;strong&gt;
          id:&lt;/strong&gt;
          &lt;asp:Label ID=&quot;lblId&quot; runat=&quot;server&quot; Text=&#039;&lt;%# Eval(&quot;id&quot;) %&gt;&#039;    </description>
    <dc:date>2010-07-20T17:27:07+09:00</dc:date>
    <utime>1279614427</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/chaka-poko/pages/32.html">
    <title>HTMLCSS/hc001</title>
    <link>https://w.atwiki.jp/chaka-poko/pages/32.html</link>
    <description>
      &amp;topicpath()
**IE7以降覚書
-テーブルの背景に画像を使う時、セルに1px×1pxの透明GIF画像を入れておかないと、背景が表示されない
-window.openに非表示にするオプションをつけても非表示にならない要素がある。（アドレスバーとステータスバー）
----
[Counter] Total：&amp;counter(total)    </description>
    <dc:date>2010-07-20T17:21:46+09:00</dc:date>
    <utime>1279614106</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/chaka-poko/pages/31.html">
    <title>JavaScript/js001</title>
    <link>https://w.atwiki.jp/chaka-poko/pages/31.html</link>
    <description>
      &amp;topicpath()
**画像を縮小して表示（javaScript）
***テーブルのレイアウト
|BGCOLOR(#eeeeee):CENTER:&#039;&#039;フィールド名&#039;&#039;|BGCOLOR(#eeeeee):CENTER:&#039;&#039;データ型&#039;&#039;|BGCOLOR(#eeeeee):|
|id|int|ID（主キー 連番）|
|subject|varchar(300)|件名|
|title|varchar(100)|ファイル名|
|type|varchar(50)|MIMEタイプ|
|idata|varbinary(MAX)|バイナリ・データ|
|last_modified|datetime|最終更新日|

***Thumbnail1.aspx
#highlight(linenumber){
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;
&lt;head runat=&quot;server&quot;&gt;
    &lt;title&gt;画像を縮小して表示（JavaScript）&lt;/title&gt;
    
    &lt;style type=&quot;text/css&quot;&gt;
    &lt;!--
    /* 画像リサイズ用 */
    /* 100x100の領域だけ取って、表示しない。 */
    /* ただし、これではスクリプトOFFだと全く表示されない。 */
    img.thumb { visibility: hidden; width: 100px; height: 100px;}
    //--&gt;
    &lt;/style&gt;
    
    &lt;script type=&quot;text/javascript&quot;&gt;
    &lt;!--
   	//一旦縦横とも&quot;auto&quot;にして実寸を取得。長い方を&quot;100px&quot;に再設定。そして表示
	  function Rsize(img){
		  img.style.width = &quot;auto&quot;;
		  img.style.height = &quot;auto&quot;;
		  if (img.width &gt; img.height){
			  if (img.width &gt; 100) img.style.width = &quot;100px&quot;;
			  } else {
			  if    </description>
    <dc:date>2010-07-20T17:22:15+09:00</dc:date>
    <utime>1279614135</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/chaka-poko/pages/30.html">
    <title>ASP.NET/asp006</title>
    <link>https://w.atwiki.jp/chaka-poko/pages/30.html</link>
    <description>
      &amp;topicpath()
**バイナリ・データを表示する
***テーブルのレイアウト
|BGCOLOR(#eeeeee):CENTER:&#039;&#039;フィールド名&#039;&#039;|BGCOLOR(#eeeeee):CENTER:&#039;&#039;データ型&#039;&#039;|BGCOLOR(#eeeeee):|
|id|int|ID（主キー 連番）|
|subject|varchar(300)|件名|
|title|varchar(100)|ファイル名|
|type|varchar(50)|MIMEタイプ|
|idata|varbinary(MAX)|バイナリ・データ|
|last_modified|datetime|最終更新日|
***ImageShow.aspx
#highlight(linenumber){
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;
&lt;head runat=&quot;server&quot;&gt;
 &lt;title&gt;イメージの表示&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
 &lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;
  &lt;h3&gt;
   データベースに登録したバイナリデータを表示する&lt;/h3&gt;
  &lt;asp:DropDownList ID=&quot;DropDownList1&quot; runat=&quot;server&quot; DataSourceID=&quot;SqlDataSource1&quot;
   DataTextField=&quot;title&quot; DataValueField=&quot;id&quot;&gt;
  &lt;/asp:DropDownList&gt;
  &lt;asp:Button ID=&quot;Button1&quot; runat=&quot;server&quot; Text=&quot;表示&quot; /&gt;
  &lt;asp:SqlDataSource ID=&quot;SqlDataSource1&quot; runat=&quot;server&quot; ConnectionString=&quot;&lt;%$ ConnectionStrings:NetWorks01ConnectionString %&gt;&quot;
   SelectCommand=&quot;SELECT [id], [title] FROM [d_Image]&quot;&gt;&lt;/asp:SqlDataSource&gt;
 &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;}
***ImageShow.aspx.vb    </description>
    <dc:date>2010-07-20T17:24:49+09:00</dc:date>
    <utime>1279614289</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/chaka-poko/pages/29.html">
    <title>ASP.NET/asp005</title>
    <link>https://w.atwiki.jp/chaka-poko/pages/29.html</link>
    <description>
      &amp;topicpath()
**バイナリ・データをデータベースに登録する
***テーブルのレイアウト
|BGCOLOR(#eeeeee):CENTER:&#039;&#039;フィールド名&#039;&#039;|BGCOLOR(#eeeeee):CENTER:&#039;&#039;データ型&#039;&#039;|BGCOLOR(#eeeeee):|
|id|int|ID（主キー 連番）|
|subject|varchar(300)|件名|
|title|varchar(100)|ファイル名|
|type|varchar(50)|MIMEタイプ|
|idata|varbinary(MAX)|バイナリ・データ|
|last_modified|datetime|最終更新日|
***ImageUpload.aspx
#highlight(linenumber){
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;
&lt;head runat=&quot;server&quot;&gt;
 &lt;title&gt;画像のアップロード&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
 &lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;
  &lt;h3&gt;
   バイナリ・データをデータベースに格納する&lt;/h3&gt;
  件名：&lt;asp:TextBox ID=&quot;TextBox1&quot; runat=&quot;server&quot;&gt;&lt;/asp:TextBox&gt;
  &lt;br /&gt;
  画像：&lt;asp:FileUpload ID=&quot;FileUpload1&quot; runat=&quot;server&quot; /&gt;
  &lt;asp:Button ID=&quot;Button1&quot; runat=&quot;server&quot; Text=&quot;更新&quot; /&gt;
 &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;}
***ImageUpload.aspx.vb
#highlight(linenumber,vb){
Imports System.Data.SqlClient
Imports System.Data
Imports System.IO

Partial Class ImageUpload_ImageUpload
 Inherits System.Web.UI.Page

 Protected Sub Button1_Click(ByVal sender As O    </description>
    <dc:date>2010-07-20T17:24:01+09:00</dc:date>
    <utime>1279614241</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/chaka-poko/pages/28.html">
    <title>ASP.NET/asp004</title>
    <link>https://w.atwiki.jp/chaka-poko/pages/28.html</link>
    <description>
      &amp;topicpath()
**DBに登録したバイナリデータをDataListに表示
***テーブルのレイアウト
　　　&#039;&#039;d_Image&#039;&#039;
|BGCOLOR(#eeeeee):CENTER:&#039;&#039;フィールド名&#039;&#039;|BGCOLOR(#eeeeee):CENTER:&#039;&#039;データ型&#039;&#039;|BGCOLOR(#eeeeee):|
|id|int|ID（主キー 連番）|
|subject|varchar(300)|件名|
|title|varchar(100)|ファイル名|
|type|varchar(50)|MIMEタイプ|
|idata|varbinary(MAX)|バイナリ・データ|
|last_modified|datetime|最終更新日|

***Image_List.aspx
#highlight(linenumber){
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;
&lt;head runat=&quot;server&quot;&gt;
 &lt;title&gt;バイナリ・データをDataListに表示&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
 &lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;
  &lt;h3&gt;
   バイナリ・データをDataListに表示&lt;/h3&gt;
  &lt;asp:DataList ID=&quot;DataList1&quot; runat=&quot;server&quot; DataKeyField=&quot;id&quot; DataSourceID=&quot;SqlDataSource1&quot;&gt;
   &lt;ItemTemplate&gt;
    &lt;strong&gt;
     id:&lt;/strong&gt;
    &lt;asp:Label ID=&quot;lblId&quot; runat=&quot;server&quot; Text=&#039;&lt;%# Eval(&quot;id&quot;) %&gt;&#039;&gt;&lt;/asp:Label&gt;
    &lt;strong&gt;
     subject:&lt;/strong&gt;
    &lt;asp:Label ID=&quot;lblSubject&quot; runat=&quot;server&quot; Text=&#039;&lt;%# Eval(&quot;subject&quot;) %&gt;&#039;&gt;&lt;/asp:Label&gt;&lt;br /&gt;
    &lt;asp:Image ID=&quot;imgIdata&quot; runat=&quot;server&quot; /&gt;&lt;br /&gt;
    &lt;hr    </description>
    <dc:date>2010-07-20T17:23:18+09:00</dc:date>
    <utime>1279614198</utime>
  </item>
  </rdf:RDF>
