Top ASP.NET Items

Sponsors

Archives

Windows Azure: General Availability of Infrastructure as a Service (IaaS)
This morning we announced the general availability release of our Infrastructure as a Service (IaaS) support for Windows Azure – including our new Virtual Machine and Virtual Network capabilities.  This release is now live in production, backed by an enterprise SLA, supported by Microsoft Support, and is ready to use for production apps.  If you don’t already have a Windows Azure account, you can sign-up for a free trial and start using it today. In addition to supporting all of the features and capabilities included during the preview, today’s IaaS release also includes some great new enhancements: New VM Image Templates (including SQL Server, BizTalk Server, and SharePoint images) New VM Sizes (including Larger Memory Machines) New...
Testing Orchard drivers
If you’ve ever tried to test Orchard part drivers, you may have been blocked by the fact that the methods on drivers are protected. That, fortunately, doesn’t mean they are untestable. Those methods are still accessible through explicit interface implementations. In particular, drivers implement IContentPartDriver, which is defined as follows. public interface IContentPartDriver : IDependency { DriverResult BuildDisplay(BuildDisplayContext context); DriverResult BuildEditor(BuildEditorContext context); DriverResult UpdateEditor(UpdateEditorContext context); void Importing(ImportContentContext context); void Imported(ImportContentContext context); void Exporting(ExportContentContext context); void Exported(ExportContentContext context); IEnumerable<ContentPartInfo>...
A C# helper to read and write XML from and to objects
I really like jQuery’s pattern of attribute getters and setters. They are fluent and work really well with HTML and XML DOMs. If you specify a value in addition to the name, it’s setting, otherwise it’s getting. In C#, we have an OK API for XML, XElement, but it’s not as easy to use as jQuery’s attr methods. It is also missing the flexibility of Javascript with regards to parameter types. To recreate the simplicity of attr in C#, I built a set of extension methods for the most common simple types: var el = new XElement("node"); el.Attr("foo", "bar") .Attr("baz", 42) .Attr("really", true); var answer = el.Attr("baz"); The element built by this code looks like this: <node foo="bar"...
Windows Azure Global Bootcamp on April 27th – sign up now
On April 27, something very cool is happening. A bunch of Windows Azure MVP's and community activists are organizing a Global Windows Azure Bootcamp . This is a completely free, one-day training event for Windows Azure, all organized by the community, and presented in person all over the World. I’m not sure if this is the largest community event ever - it is very cool to see how many places this event is happening.  Below is the location map as it stands today – and new locations are being added daily. Right now there are almost 100 locations and several thousand attendees already registered to take part.  Browse the location listings to find a location near you. If you are interested in learning about Windows Azure or want more...
Getting your Raspberry Pi to output the right resolution
I was setting up a new Raspberry Pi under Raspian on a Samsung monitor the other day. If you don’t do anything, Raspian and the Pi will attempt to detect the modes supported by your monitor and will make a choice of what seems best to it. And sometimes it gets that very wrong. In those cases, you’ll need to find what the right mode is and to set it up. It took me quite a few attempts before I succeeded, mostly misled by misinformed forum and blog posts. The right post, the one that has all the correct info does exist however: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=26&t=5851 . Let me distil this to a short set of instructions, in case you don’t want to dive in and assimilate all that information. Here is what worked for me… From...
Windows Azure: Active Directory Release, New Backup Service + Web Site Monitoring and Log Improvements
Today we released some great enhancements to Windows Azure. These new capabilities include: Active Directory : General Availability release of Windows Azure AD – it is now ready for production use! Backup Service : New Service that enables secure offsite backups of Windows Servers in the cloud Web Sites : Monitoring and Diagnostic Enhancements All of these improvements are now available to start using immediately (note: some services are still in preview). Below are more details on them: Active Directory: Announcing the General Availability release I’m excited to announce the General Availability (GA) release of Windows Azure Active Directory!  This means it is ready for production use. All Windows Azure customers can now easily create...
Debugging ASP.NET Web API with Route Debugger
Tutorial and Tool written by Troy Dai with assistance from Rick Anderson (Twitter @RickAndMSFT ) Search for “asp.net web api routing” on stackoverflow , you’ll find many questions. How exactly does Web API routing work? Why doesn’t my route work? Why is this action not invoked? Often time it is difficult to debug route debugger. To address this issue I wrote this tool named “ASP.NET Web API Route Debugger” trying to make Web API developers’ lives a bit easier. In this article I’ll first introduce how to set up route debugger. Then I’ll introduce how routing works in Web Api. It is followed by three examples of how to use the route debugger in real cases. How to Step up Route Debugger You can install Route Debugger from NuGet ( http://www.nuget...
Logging SQL queries in Orchard
It is often useful to see what database queries were made during a specific request in Orchard. There are quite a few ways to do this (you can trace right from SQL Server , or you can use Mini-Profiler for instance), but this morning Sébastien showed me a really easy one that I thought I’d share. Find the log4net.config file in /src/Orchard.Web/Config and edit it to add the following tag: <logger name="NHibernate.SQL"> <priority value="DEBUG" /> </logger> Restart the application, then hit the URL you want to test, and look at your logs in App_data/logs. You should see new entries looking like this: 2013-04-03 18:57:30,367 [17] NHibernate.SQL - SELECT warmupsett0_.Id as Id575_0_, warmupsett0_.Urls as Urls575_0_...
Introducing the new class at the Microsoft Accelerator for Windows Azure
We launched the Microsoft Accelerator for Windows Azure, powered by TechStars , to give early stage startups full access to Windows Azure and to help them succeed by connecting each company to leading technical and business mentors . I’m happy to share that the new spring 2013 class features a healthy mix of exciting solutions and an impressive list of founders whose feedback will directly inform future Windows Azure releases. Today, the ten new teams in the Microsoft Accelerator for Windows Azure , powered by TechStars , moved into their South Lake Union office space. This spring’s Windows Azure class includes: 1Track — Bellevue, WA . 1Track enhances the consumer in-store shopping experience and drives sales for retailers. Airpost.io — Toronto...
Tutorial Series on Model Binding with ASP.NET Web Forms
I have written a tutorial series that shows how to use model binding with ASP.NET Web Forms. You might be familiar with the model binding concept from ASP.NET MVC, but with ASP.NET 4.5, model binding is now available in Web Forms applications. Model binding makes it very easy to create and maintain data-rich web pages. A lot of the manual steps of correlating elements with data properties are performed automatically. When you use model binding with dynamic data templates, you can quickly add or revise properties in your data model and those properties are correctly rendered and processed in the web forms throughout your site. The series contains the following topics: Retrieving and displaying data Updating, deleting, and creating data Sorting...
More Posts « Previous page - Next page »