Browse by Tags

All Tags » c# (RSS)

Practical C#9 - Export/Import to and from CSVs & DataTables by avcajipe

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...
Filed under: , , ,

Practical C#8 - Displaying Timezones by avcajipe

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...
Filed under: , ,

Practical Javascript 8: Extending Checkboxes by avcajipe

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...
Filed under: , , , ,

C# Quirk 1: Pretty Useless Method by avcajipe

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...

Practical C#9 - Simple Asynchronous Implementations by avcajipe

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(...
Filed under: ,

Practical C#8 - The Callback Model by avcajipe

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...
Filed under: , , ,

Practical C#7 - AjaxControlToolkit Sliders by avcajipe

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...

Confessions of an Asp.Net developer by avcajipe

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...
Filed under: , , ,

Practical C# 4: Getters and setters get faster with .net 3.5 by avcajipe

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...
Filed under:

Practical C# 3: Programmatic Caching by avcajipe

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...
Filed under: , ,

Practical C# 2: Get that spiel (again) by avcajipe

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...
Filed under: , , ,

Practical C# 1: Get that spiel by avcajipe

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...
Filed under: , , ,