method is inaccessible due to its protection level

S

sck10

Hello,

I am getting the following error:

fvServiceIdea_ItemUpdating_Validate(object,
System.Web.UI.WebControls.FormViewUpdateEventArgs)' is inaccessible due to
its protection level.

Below is what I am using, so I don't understand what level of protection is
being used. Any assistance with this would be greatly appreciated.

Thanks, sck10


void fvServiceIdea_ItemUpdating_Validate(object sender,
FormViewUpdateEventArgs e)
{
if (e.NewValues["ServiceIdeaName"].ToString() == "")
{
e.Cancel= true;
this.lblMessageText.Text += "<span class='RedM'>Service Idea
Name</span>: is Missing.<br />";
}

if (e.Cancel == true) ShowMessage(this.lblMessageTitle.Text,
this.lblMessageText.Text);

}
 
K

KJ

Methods that are not explicitly marked otherwise (such as yours) are
private.

Change your code to:

protected void fvServiceIdea_ItemUpdating_Validate ....
 
S

sck10

Thanks KJ...


KJ said:
Methods that are not explicitly marked otherwise (such as yours) are
private.

Change your code to:

protected void fvServiceIdea_ItemUpdating_Validate ....
Hello,

I am getting the following error:

fvServiceIdea_ItemUpdating_Validate(object,
System.Web.UI.WebControls.FormViewUpdateEventArgs)' is inaccessible due
to
its protection level.

Below is what I am using, so I don't understand what level of protection
is
being used. Any assistance with this would be greatly appreciated.

Thanks, sck10


void fvServiceIdea_ItemUpdating_Validate(object sender,
FormViewUpdateEventArgs e)
{
if (e.NewValues["ServiceIdeaName"].ToString() == "")
{
e.Cancel= true;
this.lblMessageText.Text += "<span class='RedM'>Service Idea
Name</span>: is Missing.<br />";
}

if (e.Cancel == true) ShowMessage(this.lblMessageTitle.Text,
this.lblMessageText.Text);

}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,699
Latest member
AnneRosen

Latest Threads

Top