December 2008 Entries
Joe Stagner posted this very useful link for a free C# and VB coding standards reference documents by Clint Edmonson. I really appreciate Clint Edmonson's effort. Free C# and VB Coding Standards Reference Documents
The scenario: One main winform that is open all the time when the application starts. It has a menu strip at the top. User clicks on an item in menu strip and new modal window is opened which has more options. When the user clicks a button on this modal form, another modal form needs to be opened and the previous one to be hidden. Then when the user closes the current form, the previous form is displayed again. The main form has to be displayed all the time. Main form -> Menu item click ->...
Joe Stagner blogged about some tools available to deal with SQL injection attacks. I have used both HP Scrawlr and Microsoft ® Source Code Analyzer for SQL Injection and I have to say they both are easy to use tools that do the job right. Here is the post: http://www.misfitgeek.com/T... The Microsoft Source Code Analyzer for SQL Injection tool: http://support.microsoft.co... HP Scrawlr: http://www.communities.hp.c...
Visual studio and express editions have a nice Smart Tag support for auto-using statements to qualify a data type by including the using statement for that data type. Though this feature is well known by IDE users, a little less known feature is the shortcut to get to it instead of hovering over the little underscore. You can press Ctrl+(.) (Press control and dot keys together from keyboard) to get the menu that shows all the available using statements or a fully qualified name for the data type...
I learned a nice trick today to auto indent code on aspx or code pages. Simply select the piece of code to be indented, press Ctrl+K and then press Ctrl+F and all the html or code will be nicely indented