错误讯息:
CS1061:'ASP.controls_contentassignmentcontrol_ascx'不包含 'btnPrintCA_Click'的定义,没有扩展方法 'btnPrintCA_Click'接受第一个类型的参数 可以找到'ASP.controls_contentassignmentcontrol_ascx'(是吗? 缺少using指令或程序集引用?)
ASPX:
<asp:ImageButton ID="imgBtnPrintCA"
OnClick="btnPrintCA_Click" runat="server"
ImageUrl="~/Content/Image/print_32.gif" meta:resourcekey="imgBtnPrint" />
c#codebehind
public void btnPrintCA_Click(object sender, ImageClickEventArgs e)
{
try
{
ScriptManager.RegisterClientScriptBlock(this, typeof(Page), "_Page", "showPVDialog('ContentAssignmentPrint.aspx','')", true);
}
catch
{
}
}