Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
Naming issue: It is hard to keep it consistent
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Registered User, post: 3918484"] On Tue, 11 Aug 2009 12:09:54 -0700 (PDT), "Author #1" -snip- -snip- What makes a method called btnSave_Click an event handler? It's not the name alone but the method's signature which clarifies a method's purpose. When a method's signature contains an argument of type object and an argument derived from type EventArgs, the method's name doesn't. need to explicitly shout "event handler". With that rant out of the way ;) I would suggest keeping both names and do some refactoring. What you're doing is tightly coupling the UI and BL. That is not the best practice. It would be better to have the UI's btnSave_Click event handler invoke the SaveEmployee method in a business layer. regards A.G. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
Naming issue: It is hard to keep it consistent
Top