(Andras) There is a documented, but certainly counterintuitive issue with the DirectoryInfo.GetFiles() method in .Net. This method returns a list of files that match a particular pattern. For example in the following example it will return us all the files on drive Z: that have the exact extension .
Tag: Development
ASP.NET MVC Tip #24 Retrieve Views from Different Folders
(Stephen Walther) In this tip, I demonstrate how you can retrieve a view from any folder in an ASP.NET MVC application. I show you how to use both specific paths and relative paths.
Sharing Controls Across Different Web Sites Without Using DLLs
(Scott D. Smith) One of the most frequent gripes most programmers have about ASP.NET 2.x and 3.x is that you can’t implement include files across several web sites. Remember the good old days in Classic ASP when you could just put a reference to a virtual file in the code and it would automagically
Displaying Detail Records for User-Selected Master Records :: Saving the User’s Search Preferences
(Scott Mitchell) Last week’s article, Using a Dynamic IN Clause, showed how to display detail records for a set of user-selected master records. This entailed creating a User Defined Function (UDF) in the database that would translate a comma-delimited string into tabular data that could then be par
The Basics of REALbasic, Cross-platform RAD Tool in the Mold of VB
(Bob Keeney) In recent years, the move towards web-based applications has accelerated for a variety of reasons, including the need for simple and reliable installations. Despite the many reasons for developing web applications, an old-fashioned, double-clickable native application is still better at
Using ExecWB with the native .NET 2.0 WebBrowser control
(RocLab) One of the most annoyingly interesting components within the VB.NET 2008 environment is the WebBrowser control (or class, if you prefer) that is bundled as standard. It exposes a number of common methods and properties, but lacks one of the most useful elements that can be found in the full
Exception and error handling in enterprise applications
(John Charles Olamendy) Exception and error handling is an important feature in any robust enterprise application. A lot of developers misunderstand and not apply the underlying techniques. Therefore, the end user is confused and does not know what to do when an exception occurs. It’s responsible of
Using Extension Methods
(Bipin Joshi) How often do you want to modify existing classes to have extra methods? Quite often. Right? When you have source code of the classes under consideration at your hand then things are easy. You probably just add the extra methods to those classes. What if you don’t have source code? Well
How do I Store application data securely using encrypted DataSets?
(Zach Smith) .NET developers are familiar with using serialized DataSets to store local application data; this technique is used extensively in the WinForms development arena. The problems with this method are that anyone with access to the file can easily read the data and possibly even write to th
ASP.NET MVC Tip #23 Use POCO LINQ to SQL Entities
(Stephen Walther) In this tip, I demonstrate how you can create LINQ to SQL entities that do not contain any special attributes. I show you how you can use an external XML file to map LINQ to SQL entities to database objects.
