markneustadt.com

Ajax forms and PartialViews opening in a new page

Why can’t this just work the way it’s supposed to out of the box?

So here’s today’s dilemma (which I’ve solved exactly once for each project I’ve done because once it’s done you don’t have to redo it which makes me think ‘gee… maybe it should be this way to start off with’).  When you have a form on your page and want to submit it and get a result via Ajax the results are being displayed on a new page, not in the output div you specified. Read more

When I am king, there will only be one TimeZone for the whole planet

Let’s get this out of the way first.  I can’t sum up the problems that timezones cause develoeprs any better than this.

The Problem with Time & Timezones – Computerphile

Now that we have that out of the way, we can’t really use the libraries he references since we’re C# developers.  Sure, the framework has a lot of great tools, but how do we use them exactly?
Read more

The easiest and best way to validate an email address

When someone enters an email address, how do we check to make sure it’s legit?  Not legit as in “is it really their email address”, but as in “does it follow the rules to make it a real email address”?

For example, if someone enters “jdshfjsdhf”, that’s not legit.  However, “jskfjsd@jskdjcfs.com” is.  Recently, I ran into a problem where my scheme for validating email addresses was failing me. Read more

Type or namespace could not be found (are you missing a using directive)?

Recently, a co-worker ran into a problem I had run into many times in the past.  After taking a few minutes to figure things out I was able to help him.  It surprised me that I hadn’t blogged about this before.  So here we go…

Does this look familiar to you?

The type or namespace 'SomeNamespace' could not be found (are you missing a using directive or an assembly reference?)

I bet you’ve probably seen it before.  It happens when you forget to include a reference in your project or if you don’t use a ‘using’ directive to include the assembly.   Read more

Scroll To Top