method is inaccessible due to its protection level

Discussion in 'ASP .Net' started by sck10, Aug 28, 2006.

  1. sck10

    sck10 Guest


    I am getting the following error:

    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,

    sck10, Aug 28, 2006
    1. Advertisements

  2. sck10

    KJ Guest

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

    Change your code to:

    protected void fvServiceIdea_ItemUpdating_Validate ....
    KJ, Aug 28, 2006
    1. Advertisements

  3. sck10

    sck10 Guest

    Thanks KJ...

    sck10, Aug 28, 2006
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.