推奨:ASPを使用してデータベースですべてのテーブル名とフィールド名を取得する方法%set rs = server.createobject(adodb.RecordSet)db = db.mdb 'データベース名を直接変更するだけで、効果を確認できます。 conn = server.createobject(adodb.Connection)connstr = provider = microsoft.jet.oledb.4.0; data source = server.mappath(db)conn.open c
主なドキュメントは次のとおりです。index.htmlは関数、テキストボックスを実装し、コンテンツを入力し、プロンプトを実装します
search.aspクエリ機能、テキストボックスに入力されたコンテンツをデータベースに照会してから、クライアントに返します
conn.aspデータベース接続関数データベースとの接続を実現する
XMLHTTP.JSAJAXのコア部分は、クライアントのデータをサーバーに渡し、サーバーのデータをクライアントに返すために使用されます。
style.css styleファイル、主にGoogleプロンプトボックスがクエリをクエリするコンテンツをスタイルします。
まず、最初のファイルstyle.cssを見てください
[code = css]
@charsetutf-8;
/*cssdocument*/
体
{
フォントサイズ:12px;
フォントファミリー:arial、helvetica、sans-serif;
}
#search_suggest
{
位置:絶対;
背景:#ffffff;
テキストアライグ:左;
国境:1px#000000Solid;
}
.suggest_link_over
{
バックグラウンドカラー:#e8f2fe;
パディング:2px6px;
}
.suggest_link
{
パディング:2px6px;
バックグラウンドカラー:#fffff;
}
。なし
{
表示:なし;
}
[/コード]
2番目のファイル:xmlhttp.js
[code = jscript]
// javascriptdocumentrt
varxmlhttp = createxmlhttprequest();
functioncreatexmlhttprequest()
{
varxmlhttp = null;
試す
{
xmlhttp = xmlhttprequest();
}
キャッチ(E1)
{
試す
{
xmlhttp = newActiveXObject(msxml2.xmlhttp);
}
キャッチ(E2)
{
試す
{
xmlhttp = newactivexobject(microsoft.xmlhttp);
}
キャッチ(E3)
{
xmlhttp = false;
アラート(作成に失敗しました!);
}
}
}
共有:ASPはテキストファイルを読み取り、それらを表示しますHTMLヘッドhttp-equiv = content-type content = text/html; charset = gb2312 title /title /head body%language = vbscript%const forreading = 1、forwriting = 2、forappending = 8 const tristateusedefault = -2、tristatetrue = -1、tristatefalse
前のページの合計123ページ次のページ