468,133 Members | 1,309 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,133 developers. It's quick & easy.

I have a page in ASP.NET 2.0. I add a button in design view and the page runs fine.

I have a page in ASP.NET 2.0. I add a button in design view and the
page runs fine. I then double-click the button to create the click
method in the code. Then when I run the page I get the error "error
BC30506: Handles clause requires a WithEvents variable defined in the
containing type or one of its base types."

I have tried deleting the button and re-adding it numerous times with
different names and every time I get the same error. I have another
button on the page that works fine. All the info on this error talks
about if the control is dynamically created, there is nothing that
talks about if it is created as part of the page design. Does anyone
know how to fix it?
Dec 16 '10 #1
0 988

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Chuck Duncan | last post: by
1 post views Thread by Donnie | last post: by
7 posts views Thread by Luis Esteban Valencia | last post: by
8 posts views Thread by Fred Zuckerman | last post: by
4 posts views Thread by Mark Olbert | last post: by
1 post views Thread by Nogusta123 | last post: by
3 posts views Thread by Ronald S. Cook | last post: by
3 posts views Thread by mnjkahn via AccessMonster.com | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.