Steve Wellens

Programming in the .Net environment

Sponsors

Links

Browse by Tags

All Tags » C# (RSS)
Learning to Like Linq or, Loving the Linq Loquacious
Once upon a time, long, long ago, I was working at a company that gave their engineers some shiny, state-of-the-art, new-fangled HP calculators. They were awesome; instead of battery-draining LEDs for display, they used something called an LCD. And, they...
Posted: May 28 2011, 11:05 AM by SGWellens | with 7 comment(s)
Filed under: , ,
Passing Strings by Ref
C# Passing strings by ref...
Posted: Jan 09 2011, 02:40 PM by SGWellens | with 12 comment(s)
Filed under:
Serializing ArrayLists of Disparate Objects to XML Strings
In an earlier post here , I wrote two functions to Serialize and Deserialize objects to XML strings. Since then, while reading a book about XML, I learned of even more power in the .Net XML Serialization libraries*. In addition to serializing objects...
A ‘Simple’ Asp.Net Custom Server Control
A user on the Asp.Net forums, where I moderate, asked how to list a bunch of files in a directory as hyperlinks on a web page so the user could click on them. I thought this was probably an often performed task and decided create a Server Control to encapsulate...
Can the C# ‘var’ Keyword be Misused?
More and more often I've been seeing C# code like this: var Data = GetData(); What on earth does GetData() return? This code is not as maintainable as it could be and is not as maintainable as it should be. Doesn't explicitly declaring the variable type...
Posted: Nov 19 2009, 07:52 AM by SGWellens | with 28 comment(s)
Filed under: , ,
How to Fill a ListBox/DropDownList from an Enum
There was a question about this on the Asp.Net forums and after a quick search I didn't find a good generic function so I thought I'd supply one. Note: I wanted this to be as broad and useful as possible, so the second parameter is a ListControl which...
Posted: Aug 19 2009, 11:57 AM by SGWellens | with 3 comment(s)
Filed under: , ,
What’s the Deal with Interfaces?
This post is for beginners. Many beginners struggle with the concept of an Interface. Over on the Asp.Net forums, where I moderate, the question is asked a surprising number of times. I'm going to try to describe and explain the concept of an Interface...
Why goto Still Exists in C#
Developers, Software Engineers, and Programmers are logical, rational, reasonable people right? Sure they are…until you disagree with something they believe in. Then they can become the most enflamed, outraged, foaming-at-the-mouth, intolerant, lunatics...
Posted: Jun 01 2009, 01:36 PM by SGWellens | with 27 comment(s)
Filed under: , ,
Using Session State in a Web Service
Usually, when you think of a Web Service, you think …make the call, get the response, and get on with the task at hand. These "one shot" calls are the norm in Web Services but there may be times when you need a little more. You may need the Web Service...
Master Page, Child Pages: Dynamic Communication Flexibility
Over on the ASP.NET forums, where I am a moderator, a user asked a question concerning Master Pages. I thought it was an interesting enough question to spend a little time on it and write a BLOG entry (golf season hasn't started in my state yet). The...
More Posts Next page »