推奨:ウェブサイト制作ASP言語の機能と機能ASP(Active Serverページの略語)とは、Active Server Webページを意味します。 ASPは、CGIスクリプトプログラムを置き換えるためにMicrosoftが開発したアプリケーションです。データベースやその他のプログラムと対話でき、シンプルで便利なプログラミングツールです。 ASPのWebページファイルの形式は.ASPであり、現在ではさまざまな動的Webサイトで一般的に使用されています。 ASPは使用できるサーバー側のスクリプト環境です
ASPページネーション関数を共有してください、それはかなり良さそうです。ビューは図に示されています:
あなた自身の状況、コードに従ってそれを変更できます:
<%
'Xie Liangはページングプログラムを修理します
'PageControl(レコードの総数、ページ番号の総数、現在のページ)に電話してください)
サブページコントロール(Icount、PageCount、ページ)
respons.write(<style type = text/css>/*xie liang pagination css*/div.pager {padding:10px;} pager a、div.pager span {padding:2px 5px; margin:2px; font-family:安体; A:Hover {color:#000; background-color:#363} pager span.current {font-weight:bold; color:#fff; background-color:#363} pager span.current {font-weight:bold; color:#fff; background-color:#363} div.pager span.dise SOLID;} </style>)&chr(13)
DIMクエリ、A、X、温度
action = http://&request.servervariables(http_host)&request.servervariables(script_name)
query = split(request.servervariables(query_string)、&)
クエリの各xに対して
a = split(x、=)
strcomp(a(0)、page、vbtextcompare)<> 0の場合
temp = temp&a(0)&=&a(1)&&&
ifを終了します
次
respons.write(<div class = pager>)&chr(13)
Response.write(<span class = disabled>& /& /&pagecount&page < / span>)&chr(13)
Response.write(<span class = disabled> total&icount&record&record </span>)&chr(13)
pagecount <= 6の場合
xl = 1の場合はpagecountに
page = xlの場合
respons.write(<span class = 'current'>&xl&</span>)&chr(13)
それ以外
Response.write(<a href = '&action&?&page =&xl&'>&xl&</a>)&chr(13)
ifを終了します
次
それ以外
page = 1の場合
Response.write(<span class = 'current'> 1 </span>)&chr(13)
それ以外
respons.write(<a href = '&action&?&temp&page = 1'> 1 </a>)&chr(13)
ifを終了します
ページ> 4の場合、response.write(<span class = disabled> ... </span>)&chr(13)
ページ<5の場合、i1 = 1 else i1 = page-2
page>(pagecount-4)の場合、i2 = pagecount else i2 = page+3
xll = i1からi2の場合
xll <> 1およびxll <> pagecountの場合
xll =ページの場合
Response.write(<span class = 'current'>&xll&</span>)&chr(13)
それ以外
respons.write(<a href =&action&?&page =&xll&>&xll&</a>)&chr(13)
ifを終了します
ifを終了します
次
page <(pagecount-4)then respons.write(<span class = disabled> ... </span>)&chr(13)
page = pagecount then respons.write(<span class = 'current'>&pagecount&</span>)&chr(13)else response.write(<a href = '&action&?&page =&pagecount&'>&pagecount&</a>)&chr(13)
ifを終了します
respons.write(</div>)&chr(13)
End Sub
%>
共有:メインフォームの中央に表示するC#サブフォームを設定します問題の始まりは、C#送信とメイングループのモーニングの読み取りによって提起されました。以下の解決策について話させてください。実際、それは表面の非常に単純なスタートのようです。 Form1メインフォーム、Form2サブフォームの2つのフォームがあり、ほとんどの人がサブフォームの負荷イベントでこれを書くと思います。これは、this.startposition = formstartposition.centerparentの方法です。