One the following code I'm getting this error: Thanks for any help in fixing this.
Compiler Error Message: CS0122: 'Work.Review.button_click(object, System.Web.UI.WebControls.CommandEventArgs)' is inaccessible due to its protection level
<asp:Button ID="btnBorrowerInfo" OnCommand="button_click" CommandName="borrowerInfo" text="Borrower Info" Runat="server" />
<asp:Button ID="btnAppraisal" OnCommand="button_click" CommandName="appraisal" Text="Appraisal" Runat="server" />
<asp:Button ID="btnTitle" OnCommand="button_click" CommandName="title" Text="Title" Runat="server" />
<asp:Button ID="btnSubmit" Text="Submit" Runat="server" />
private void button_click (object sender, System.Web.UI.WebControls.CommandEventArgs e)
{
if (e.CommandName == "borrowerInfo"
{
pnlName.Visible = false;
pnlPhone.Visible = false;
pnlAddress.Visible = true;
}
else if (e.CommandName == "appraisal"
{
pnlPhone.Visible = false;
pnlAddress.Visible = false;
pnlName.Visible = true;
}
else if (e.CommandName == "title"
{
pnlAddress.Visible = false;
pnlName.Visible = false;
pnlPhone.Visible = true;
}
}
Compiler Error Message: CS0122: 'Work.Review.button_click(object, System.Web.UI.WebControls.CommandEventArgs)' is inaccessible due to its protection level
<asp:Button ID="btnBorrowerInfo" OnCommand="button_click" CommandName="borrowerInfo" text="Borrower Info" Runat="server" />
<asp:Button ID="btnAppraisal" OnCommand="button_click" CommandName="appraisal" Text="Appraisal" Runat="server" />
<asp:Button ID="btnTitle" OnCommand="button_click" CommandName="title" Text="Title" Runat="server" />
<asp:Button ID="btnSubmit" Text="Submit" Runat="server" />
private void button_click (object sender, System.Web.UI.WebControls.CommandEventArgs e)
{
if (e.CommandName == "borrowerInfo"

{
pnlName.Visible = false;
pnlPhone.Visible = false;
pnlAddress.Visible = true;
}
else if (e.CommandName == "appraisal"

{
pnlPhone.Visible = false;
pnlAddress.Visible = false;
pnlName.Visible = true;
}
else if (e.CommandName == "title"

{
pnlAddress.Visible = false;
pnlName.Visible = false;
pnlPhone.Visible = true;
}
}