我正在使用PageSlide插件。我向 div#modal、ASP 标签和一个按钮添加了一个表单。但是,该按钮不会在单击时触发回发事件。
HTML:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="js/jquery-1.8.3.min.js" type="text/javascript"></script>
<link href="css/jquery.pageslide.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<script src="js/jquery.pageslide.min.js" type="text/javascript"></script>
<a href="#modal" class="second">Show</a>
<div id="modal" style="display: none">
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label><br />
<asp:Button ID="Button1" runat="server" Text="Submit" OnClick="Button1_Click"/>
</div>
<p><a href="javascript:$.pageslide.close()">Close</a></p>
<script>
$(".second").pageslide({ direction: "left", modal: true });
</script>
</form>
代码隐藏:
protected void Button1_Click(object sender, EventArgs e)
{
Label1.Text = "Its Working";
}
谁能告诉我怎么了?提前致谢。:)