-1
我發現了編譯器錯誤消息:CS1061:編譯器錯誤消息:CS1061
「ASP.rinatup_registrationforms_aspx」不包含關於「CheckBox1_CheckedChanged」的定義和沒有擴展方法「CheckBox1_CheckedChanged」接受類型的第一參數' ASP.rinatup_registrationforms_aspx」可以找到(是否缺少using指令或程序集引用?)
RegistrationForms.aspx
<asp:CheckBox ID="AnotherMahzorCheckBox" runat="server" AutoPostBack="True"
Font-Size="Large" ForeColor="Red" Text="Sign up"
OnCheckedChanged="CheckBox1_CheckedChanged" Visible="False" />
個RegistrationForms.aspx.cs
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
// The user selected to register his child for another Mahzor
string s = this.NewCourseRadioButtonList.SelectedValue;
Page.ClientScript.RegisterStartupScript(this.GetType(), "myScript", "showPanel();", true);
this.NewCourseRadioButtonList.SelectedValue = s;
Page.ClientScript.RegisterStartupScript(this.GetType(), "myScriptB", "showSecondPanel();", true);
AnotherMahzorCheckBox.Visible = false;
LocationPanelB.Focus();
}
幫助?
如果我的解決方案爲您工作,請將其標記爲答案,以便其他人知道它的工作原理 – qamar