Tim Huffam

Dotting the I and crossing the T of I.T.

  Home  |   Contact  |   Syndication    |   Login
  152 Posts | 0 Stories | 2310 Comments | 653 Trackbacks

News

Archives

Post Categories

Interesting Blogs/Links

Architecture, Design and Development

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,...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

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...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

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...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

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...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

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...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati