-
Another one of the ultra handy helper classes I use for exporting and importing CSVs. End users can perform all sorts of bulk web form requests via a simple text/csv file thereby improving a website’s usability. Highlighted are the method signatures. This function however, cannot work in the context...
-
Writing a truly global application would at times require the developer in displaying the different time zones in plain text format. My previous implementation was to capture the offset in the client and pass this value to a server-side hidden field control which can be read from the server. < script...
-
Input checkboxes can be used for all sorts of selection and deselection activities. They can also become extremely useful when used within a grid for multiple item selection. In this example, checked items (or rather rows) are coloured differently when selected. The colouring happens on the client to...
-
Here's an interesting exercise for the day. In Visual Studio 2005/2008, 1. Create a new Console Application. 2. Put in the following code in Main: double x = 5.15; double y = x / 100; Console.WriteLine("y = " + y); 3. Put a breakpoint at the Console.Writeline(..). 4. Press F5 to debug the...
-
Since asp.net 1.0/1.1, I enjoyed storing my settings in web.config because it’s both fast and convenient. < appSettings > < add key = " activeEnvironment " value = " dev " /> </ appSettings > Reading them is straightforward enough: ConfigurationManager .AppSettings...
-
2 ways I came up with implementing “fire-and-forget” asynchronous calls: Method 1: using System.Threading; ... //might be binded in a button-click protected void but_click( object sender, eventArgs e) { if ( ThreadPool .QueueUserWorkItem( new WaitCallback (myLongRunningMethod), "abc"...
-
Client Callbacks fascinate me because it works differently from the standard postback of the ASP.NET Model. The MSDN documentation for Client Callbacks : In the default model for ASP.NET Web pages, the user interacts with a page and clicks a button or performs some other action that results in a postback...
-
I am all over web programming techniques that present both practical function and visual appeal. One of team is the AjaxControlToolkit’s slider . In this project, I needed to get user input in the form of percentage ranges that would represent exam profiency. I needed user input that would be in...
-
Confessions of an asp.net developer. 1. I’m just as lazy as the next developer, I want to see something up and running in the first 15 minutes of development. I like code snippets. 2. I like using tables. 3. My css tends to be unorganized and messy. I’m still waiting for an editor than will...
-
I used to write basic class property implementations this way. This was boring and repetitive. Style 1: public class CaseDetails { public CaseDetails() { } private string _impact = "" ; private string _capacity = "" ; public string impact { get { return _impact; } set { _impact =...
-
Caching is the process of storing frequently used data on the server to fulfill subsequent requests. Grabbing objects from memory is always much faster than re-creating the web pages or items contained in them from scratch each time they are requested. Caching increases performance, scalability and availability...
-
I have posted the presentation slides (in both PowerPoint 2007 and OpenDocument Presentation formats) and demo code here: [EDIT: added link to SlideShare copy] Presentation slides, PowerPoint 2007 format , OpenDocument Presentation format or view online on SlideShare Demo code (zipped) IronRuby is probably...
Posted to
cruizer
by
cruizer
on
05-24-2009
Filed under:
Filed under: DotNET, Open Source, C#, .NET, code, presentation, Microsoft, dynamic languages, development tools, Ruby, IronRuby, event
-
In my last post , I was asked what was my motivation in my implementation over resource files. To be honest I have none other than the fact that this is just my blog, not a definitive source of authority. With that, here’s a separate implementation using resource files . I added a resource file...
-
Spiels, they’re spread throughout your application. They’re used for giving user feedback anywhere during the application’s workflow. A spiel is a business term referring to a system generated plain text response to end users in typical programmer jargon. They’re confirmation...
-
I failed to mention in my previous post that db4o also supports LINQ for executing queries against an object database. In order to avail of this feature, a reference should be added to the Db4objects.Db4o.Linq.dll and you need to specify " using Db4objects.Db4o.Linq; " in your code. Our previous...