Category Archives: C# and ASP.NET

using DateTime in .net

Good tips for using DateTime in .Net on MSDN

visual regular expression validator for .net

Since I'm used to PCRE when building regular expressions, this is a nice tool to use to be able to evaluate .Net regular expression strings before implementing them in code.

programatically setting the page title in an asp.net codebehind page

Fabrice's weblog gave me the quick and easy answer to how to do this. The only problem I ran into was that VS.NET (at least 2002) removes the runat="server" attribute from the title tag when you switch from HTML to design view.

current context in asp.net when using classes outside a page

I love ASP.NET for web programming. I especially like being able to create classes and use them in the code-behind for a page. The problem I was running into is that I found I needed to access some page-specific properties…

why the enter key doesn't submit an asp.net form

Thanks to Matt Berther for his post regarding why the enter key wasn't working to submit an ASP.NET form (using IE, not a browser where enter normally won't submit the form w/out JavaScript).
As Matt notes, the solution is to "Add this…