locked
Handles clause requires a WithEvents variable defined in the containing type RRS feed

  • Question

  • User-630681920 posted

    Hi all

    I have 100 aspx pages. Only 1 of them have problemes. I use VS 2010 and doesn't recognize my handles sentences either the controls. I can't figure it out why.

    In spanish the error is la cláusula handles requiere una variable withevents definida en el tipo contenedor

    I have in markup

    <%@ Page Language="VB" MasterPageFile="maestro.master" CodeFile="publicarobras.aspx.vb" Inherits="codigo" %>

    and in codebehind, publicarobras.aspx.vb

    Partial Class codigo

     Inherits System.Web.UI.Page

    can u give me some ideas?

    Thanks in advance

    Wednesday, November 28, 2012 7:34 AM

Answers

  • User-630681920 posted

    Hi again:

    Ok, I solved it. There was 2 erros in my aspx page. Now I understand that if there are errors in the aspx page, the controls and events are not recognized in codebehind.

     

    Thanks for the time

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, November 28, 2012 7:53 AM

All replies

  • User-630681920 posted

    Hi again:

    Ok, I solved it. There was 2 erros in my aspx page. Now I understand that if there are errors in the aspx page, the controls and events are not recognized in codebehind.

     

    Thanks for the time

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, November 28, 2012 7:53 AM
  • User-166373564 posted

    Hi martincapon

    Glad that you've solved your problem by yourself and I come here to confirm and close the issue.

    Kind regards

    Monday, December 3, 2012 12:11 AM