I have a setup where I have many different Add forms linked to a single .aspx.vb file for the purpouse of easy maintenance. The issue I have run into is that a few forms have a few extra controls than the other pages, so when I go to compile the pages without these controls, it throws the error "BC30506: Handles clause requires a WithEvents variable defined in the containing type or one of its base types." for Subs linked to the events button clicks, etc...
Is there a way to make subs apply to only one calling aspx page and be ignored by the others? If not, does anyone have any other solutions?
View Complete Post