Asp 按钮在 jquery 对话框中不起作用:
<script type="txt/js">$(function () {$('#<%= ButtonEmail.UniqueID %>').button();});</script>
<div id="dialog-modal" title="Cadastro">
<p>Digite seu email para que eviemos o link do cadastro para ele:</p>
<p><asp:TextBox ID="TextBoxEmail" CssClass="ui-corner-all" runat="server"></asp:TextBox>
<asp:Button ID="ButtonEmail" runat="server" Text="Enviar Link" onclick="ButtonEmail_Click" /></p>
<div><asp:Label ID="LabelEmail" runat="server" Text="teste"></asp:Label></div>
</div>
c#代码:
protected void ButtonEmail_Click(object sender, EventArgs e)
{
...
}
即使删除这个: $(function () {$('#<%= ButtonEmail.UniqueID %>').button();}); 不工作,按钮保持原来的设计,但不工作