我試圖讓一個模式彈出一旦按鈕被點擊在一個asp.net頁面上。JQuery模式彈出框
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TestFile.ascx.cs" Inherits="TestFile" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="System.IO" %>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>jQuery UI Example Page</title>
<link type="text/css" href="css/ui-lightness/jquery-ui-1.8.21.custom.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript">
function fnmodalpopup() {
$("#dialog-modal").dialog({
height: 140,
modal: true
});
</script>
</head>
<!--Misc functions for operations -->
<script runat="server" type="text/javascript">
</script>
<div id="dialog-modal" title="Basic modal dialog">
<p>Adding the modal overlay screen makes the dialog look more prominent because it dims out the page content.</p>
</div>
<asp:Button ID="Button1" runat="server" Text="Button" />
我試圖創建一個對話框酷似http://jqueryui.com/demos/dialog/#modal,而是通過點擊一個按鈕,一個asp.net的形式觸發。該頁面閃爍並且不顯示任何內容。
任何反饋將是非常有益的!
你有什麼問題?你的問題是什麼 – joncodo 2012-07-24 19:08:37
你在哪裏設置變量'$ dialog'? – MrOBrian 2012-07-24 19:08:59