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
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 martincapon on Nov 28, 2012 11:53 AM
martincapon
Member
46 Points
103 Posts
Handles clause requires a WithEvents variable defined in the containing type
Nov 28, 2012 11:34 AM|LINK
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
martincapon
Member
46 Points
103 Posts
Re: Handles clause requires a WithEvents variable defined in the containing type
Nov 28, 2012 11:53 AM|LINK
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
Angie xu - M...
All-Star
18482 Points
1570 Posts
Microsoft
Re: Handles clause requires a WithEvents variable defined in the containing type
Dec 03, 2012 04:11 AM|LINK
Hi martincapon
Glad that you've solved your problem by yourself and I come here to confirm and close the issue.
Kind regards
Feedback to us
Develop and promote your apps in Windows Store