データ リスト内に LinkButton があります。この LinkButton をクリックすると、モーダル ウィンドウが開き、別の HTML ページが読み込まれます。
皆さん、これで私を助けてもらえますか?
データ リスト内に LinkButton があります。この LinkButton をクリックすると、モーダル ウィンドウが開き、別の HTML ページが読み込まれます。
皆さん、これで私を助けてもらえますか?
あなたが説明したことを正確に行うために私が使用したThickboxのような jQuery プラグインをチェックアウトする必要があります。
ModalPopupExtender を確認してください....これは Ajax コントロール ツールキットのコンポーネントです。最初にCodePlexからダウンロードし、プロジェクトに *Binary.dll への参照を追加すると、ページ内で使用できます。
私はいつも YUI の大ファンでした。YUI には優れたドキュメントと設定方法を示す例があります。[私もjQueryが大好きです]。
YUI の Container Objects を見てください。非常に洗練されたスキン対応のモーダル パネルがあります。
http://developer.yahoo.com/yui/container/panel/
簡単な例を次に示します。
http://developer.yahoo.com/yui/examples/container/panel-loading.html
サーバ側
button.Attributes.Add("click", "popModal");
クライアント側
<script>
function popModal(e) {
// Initialize the temporary Panel to display while waiting for external content to load
var SavingPanel =
new YAHOO.widget.Panel("wait",
{ width: "240px",
fixedcenter: true,
close: false,
draggable: false,
zindex: 1000,
modal: true,
visible: true
}
);
SavingPanel.setHeader("Saving, please wait...");
SavingPanel.setBody('<img src="http://l.yimg.com/a/i/us/per/gr/gp/rel_interstitial_loading.gif" />');
SavingPanel.render(document.body);
}
</script>