Quantcast
Channel: WhyPad.com » c#
Browsing all 7 articles
Browse latest View live

ASP.Net C# – PHP Equivalents

On this post, I will be collecting ASP.NET C# commands that I use frequently in PHP but I have to continually look up in the little bit of ASP.NET that I do.  PHP can be frustrating for its...

View Article



C#: Convert Double to Integer…and other conversions

Type conversions and casting in C# are so whack!  Microsoft created the System.Convert class to bring some sanity and predictability to converting from one type to another in C#.  Without further ado,...

View Article

ASP.NET – C# – Emulating the VB Control Array – Pt. 1

For you veterans of VB6, the control array probably became an old friend, or at least an annoying neighbor if you didn’t like them.  You couldn’t help run across the concept in VB6 because every time...

View Article

C# – Get a Random Number Between x and y

Here’s a quick function for getting random numbers in C#: Notice that you have to declare your instance of the Random class outside of the GetRandomInt function if you are going to be running this in a...

View Article

Get ASP.NET DropDownList Selected Value with jQuery

With Microsoft’s recent announcement that they will begin shipping jQuery with Visual Studio, the little Javascript framework is about to hit the big time (it was already sort of big time, but this is...

View Article


C# – Convert String Array to a List (.Net 2.0)

So you’ve got a C# string and you want to convert it to a List<string>.  Lists are one of the most efficient ways of storing…well…lists of things in .Net.  If you’re in .Net 3.0, it’s quite easy...

View Article

C# – NullReferenceException with TableAdapter and Scalar Values

Ok, I’ve been hacking around this particular problem for a month now, but think I’ve got a bead on how to stop it. So, I hope this helps someone! The Situation I’ve got a TableAdapter in C# and I’m...

View Article
Browsing all 7 articles
Browse latest View live




Latest Images