Geeks With Blogs

Tim Huffam Dotting the I and crossing the T of I.T. Architecture, Design and Development
Reading a file for input in Aris, using Aris Script (Server/Report)
The Aris scripting language provides a couple of ways to select and read a file for input. This is useful for auto populating Aris (generating models and objects). To select a file on the clients machine: Aris provides a dialog for selecting a file on the users machine. This returns an array of file objects, each of which have a method which returns a byte array (which seems to be the standard way to handle file content in Aris). Eg: // Get file from client var selectedFiles = Dialogs.getFilePath(null, ......

Posted On Wednesday, March 3, 2010 3:35 PM

Async web service/WCF calls updating the UI on the UI thread (using WinForms)
To update the UI with values returned from an asynchronous WCF/web service call you need to make sure the coding updating the UI is running on the UI thread. Depending on how you've performed the async remote service call, often this is done on another thread - so when the handler executes upon completion of the call it is not on the UI thread and causes a threading exception. Within winforms, the solution is to use the Invoke() method eg the following method would be on your form or user control ......

Posted On Tuesday, July 7, 2009 9:56 PM

System.ArgumentException: Invalid postback or callback argument.
The following exception occurs in ASP.NET (version: 2.0.50727.1433) when you trigger an event on an ASP.Net object that has no ID set, eg clicking on a LinkButton: System.ArgumentException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true... in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server ......

Posted On Wednesday, October 29, 2008 12:37 AM

Task Oriented Programming
For some time I've been wondering if there's a better way to program business logic. Years ago I used to write COBOL, then moved onto a 4GL, bla bla bla... and today I find myself well entrenched in OO with Microsoft's .Net. Development times don't seem to be much better these days - and the complexity of things seems to have mushroomed. We went from barely-a-3GL to 4GL back to 3GL plus an explosion of things you need to consider. We started with procedural code then moved to OO and seem to have ......

Posted On Tuesday, September 9, 2008 12:10 AM

Application Architecture, Software Development Frameworks, ORM, MVC/P and the Holy Grail - Part 1
Note this article is primarily based on Microsoft/.Net technologies, although the principle apply to any technology. Before development of any reasonable business software project begins the following areas need to be nailed down: Application Architecture (application structure) ORM (Object/Relational Mapping - data source access and translation to/from business objects) Base framework (system framework, helper classes, base classes, etc) UI. There are many tools available that will dictate or guide ......

Posted On Sunday, February 17, 2008 3:25 PM

Copyright © Tim Huffam | Powered by: GeeksWithBlogs.net