嗨,当我尝试运行 aspx.cs 时出现此错误
protected void btnsaveandclose_Click(object sender, EventArgs e)
{
try
{
save();
}
catch (Exception ex)
{
}
}
aspx 是:
<asp:button id="btnsaveandclose" runat="server" text="save & close"
CausesValidation="true" onclick="btnsaveandclose_Click()"
usesubmitbehavior="false">