Somebody sent me an email today asking me about an article I wrote a few years ago detailing how to generate random strings and numbers in C# and VB.NET . He asked me if I could add function to the code that creates a random character set to be used as a base for the allowed characters in the random...
In my early years of college as a CS student I learned about short-circuit evaluation . Short-circuit evaluation denotes that the second argument is only evaluated if the first argument does not suffice the value of the expression. I found out that short-circuit evaluation in C# is different from VB...
I usually code my own authentication module in my Windows Application but since i have been playing with Web Applications lately, I thought, maybe there's a way to use the Membership API inside System.Web on my Windows Applications. So after playing and Googling around i have made it worked. Below...
In the most basic case, the Hashtable class is used to do mapping of key/value pairs of objects. For example, assume that you have User ID mapped to User's Fullname: Hashtable users = new Hashtable(); users["001"] = "Marasigan, Raimund"; users["002"] = "Marasigan...
Its been weeks since my last post since I've been very busy here with some projects. I tried using VB.Net on one of my project since my Project Manager told me so because there are a few C# guys in here. I used the My.Settings feature and found out that its not getting the values from the Config file...