Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Is WithEvents Needed for all Web Controls?

Thread Tools

Is WithEvents Needed for all Web Controls?

Posts: n/a
In Visual Studio 2003, the Web Form Designer generated code always declares
web controls with the WithEvents qualifier. Is this necessary for controls
that do not actually need to fire events, e.g. textboxes that are validated
and submitted using validation controls and command buttons?

Would deleting the WithEvents qualifier for such controls speed up
compilation or rendering or both?
Reply With Quote
Scott Mitchell [MVP]
Posts: n/a
Jeff, there's some good discussion on what WithEvents does and when it's
needed vs. not needed over in Paul Vick's blog entry at:



Scott Mitchell Removed)

* When you think ASP.NET, think!
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
lingering references "Protected WithEvents " in Web Form Designer Generated Code hansiman ASP .Net 0 05-19-2005 10:03 AM
Protected WithEvents Question Benign Vanilla ASP .Net 2 06-22-2004 12:39 PM
WithEvents ??? ASP .Net 4 12-24-2003 06:40 PM
Re: What means Protected WithEvents ? clintonG ASP .Net 0 07-05-2003 06:12 PM
Difference between "Protected WithEvents myClassName" And "Protected myClassName" ? Andreas Klemt ASP .Net 2 07-05-2003 12:51 AM