When hardcoding a media query into an ASP.NET Razor page file, you need to use @@ instead of @ to ensure the query is rendered correctly. Kudos: https://stackoverflow.com/a/6873785/75594
Adding typescript to ASP.NET 2 WebForms project
If you are burdened with the technical debt of an old ASP.NET 2 Webforms project, then the chances are that you might not have had the chance to stay up-to-date with JavaScript revolution. A lot has changed with JavaScript in the past few years, and keeping up is a significant effort. So what should you... Continue Reading →
Extract URL Information
To get information about the currently requested URL in ASP.NET use the Request.Url class. For example to extract the information from the URL http://www.example.com/myApp/myPage.aspx?myQs=14 the Request.Url class provides the following properties:
While my keyboard gently weeps
While my keyboard gently weeps...: ASP.NET MVC 2 Localization complete guide
Introducing “Razor” – a new view engine for ASP.NET
Super cool new view engine for ASP.NET - this will work really well with MVC 🙂 Introducing “Razor” – a new view engine for ASP.NET - ScottGu's Blog
SQL Server Compact 4.0
Loving the medium trust capabilities for small online apps - take that! all you sucky rip off hosters!!Here Comes SQL Server Compact 4.0 | Rob Tiffany
ASP.NET embedded database support
New Embedded Database Support with ASP.NET - ScottGu's Blog
Design patterns
An excellent reference for gang of four design patterns: http://www.dofactory.com/Patterns/Patterns.aspx
Launch Cassini from the command line
A simple batch file will do this: taskkill /F /IM WebDev.WebServer.exe START /D "C:\Program Files\Common Files\microsoft shared\DevServer\9.0\" /B WebDev.WebServer.EXE /port:5002 /path:"$PROJECT PATH" /vpath:"/PROJECT" Replace $PROJECT with the local path of your web solution. The VPATH value refers to the virtual folder that is used. This can be replaced with just / if your application runs... Continue Reading →
HTML Table to ASP.NET Table
To convert an HTML table (from a string) to an ASP.NET table: Start with an HTML table: Create a Helper class: Open the HTML file, and pass the root node to the helper class: The helper class needs to be fleshed out some more, to provide support for other elements and valid HTML, but it’s... Continue Reading →