The Lounge is rated PG. If you're about to post something you wouldn't want your
kid sister to read then don't post it. No flame wars, no abusive conduct, no programming
questions and please don't post ads.
More specifically, it was an ID 10 T error. The worst part is that it was my fault. Can you spot the error?:
ProtectedSub btnUpdate_Click(sender AsObject, e As EventArgs) Handles btnUpdate.Click
' Do a bunch of stuff...EndSubProtectedSub btnSelect_Click(sender AsObject, e As EventArgs) Handles btnUpdate.Click
' Do a bunch of stuff...EndSub
I'm a little embarrassed that this was the reason for my lost morning.
You must have been a VB6 programmer in the past, where methods were bound to events using method naming convention. VB.NET has the Handles keyword. My case was worse, back in the days when I was migrating from VB6 to VB.NET, I didn't even know that the Handles keyword exists and was wondering why my events were not getting fired. Now I avoid all these problem by writing code in C# :-p
It's written in Visual basic (and I'd be embarrassed too).
But seriously, both methods handle the Click event from the Update button.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997