Home / ASP.NET Weblogs

August 2010 - Posts

Posted to:

Optional named parameters work pretty well

Rob has found a use for dynamic: http://blog.wekeroad.com/2010/08/06/flexible-parameters-with-csharp Yay! Let’s celebrate! Well, I was a little puzzled because I don’t think it quite adds up in the specific example he chose (although please see no aggressiveness here: Rob’s a friend; peace!). The idea is to have the same flexibility that a dynamic language can offer in terms of evolution of an API. Here’s his original Ruby example: def my_method(args)   thing_one = args["thing1"]   thing_two = args["thing2"] end my_method :thing1 => "value", :thing2 = Time.now The idea, which is quite common in dynamic languages, is that instead of passing a list of predetermined parameters in a specific order, you...
Posted to:

Hot Fix Released for the Issue of Visual Studio 2010 Crashing When Switching to the Design View

When switching to the design view, a page containing numerous controls inside an editing region such as View or Panel may cause a crash in Visual Studio 2010. We have released a hot fix for this issue on Connect at https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=30462&wa=wsignin1.0 and on Code Gallery at http://code.msdn.microsoft.com/KB2201993 . Hope this helps. -Anh Phan Visual Web Developer Team. Read More...
Posted to:

Orchard 0.5 is out

Before I joined Microsoft seven years ago, I had spent a couple of years building a Web CMS. It wasn’t open-source unfortunately but the experience convinced me that most public-facing web sites would shortly use some form of CMS. I also forged strong opinions about the right level of component granularity that a CMS must implement. For the last year and a half, I have been fortunate enough to work with a talented small team within ASP.NET and with a growing community from all around the world on building a new Web CMS on top of ASP.NET MVC. Today I am very happy to invite my readers to check out some of the results of that work: earlier this week, we released version 0.5 of Orchard . We are far from being done, but this is an important milestone...
Posted to:

Web Farm Framework 2.0 beta released!

Last week my team released a super powerful update to our Web Farm Framework project aimed at dramatically simplifying the complexity of managing a Web farm (many computers running one or more Web sites).  Web Farm Framework 2.0 (WFF) allows users to not only setup groups of servers and define routing rules using the built-in routing and load balancing support in ARR , but extends the management support to include many new powerful experiences, including: Automatic platform setup and provisioning of new nodes WFF integrates with Web Platform Installer and will automatically install all the required components to mirror the master node Application replication and synchronization across the Web server farm WFF integrates with Web Deploy and...
Posted to:

Creating Copies of Attributes

I’ve been working on a lovely little prototype recently but ran into a problem where my code receives a collection of attributes and needs to change them in some way and then pass the changed collection along to another method that consumes the collection. I want to avoid changing the attributes directly, because when you use reflection to retrieve attributes, those attributes may be cached by the framework. So changing an attribute is not a safe operation as you may be changing the attribute for everyone else who tries to retrieve them. What I really wanted to do is create a copy of all these attributes, and pass the collection of copied attributes along. But how do I do that? CustomAttributeData Brad Wilson and David Ebbo to the rescue! In...
Posted to:
by: 
08-05-2010, 1:53 AM

Some nice code editor features provided by the VS 2010 Power Tool Extensions

I’ve blogged in the past about the VS 2010 Productivity Power Tool Extensions – a free set of Visual Studio 2010 extensions that provide some nice additional functionality. You can read my previous blog posts about it here and here .  In today’s post I’m going to briefly highlight a few small, but nice, code editor capabilities that are enabled when you install the free extensions (and which I didn’t highlight in my previous blog posts). Ctrl+Click “Go to Definition” One of the small, but useful, features that I find myself using a lot with the extensions is the "Ctrl + Click” go to definition feature.  For those of you who haven’t tried it, it enables you to quickly navigate to the definition of a member or type within your code...
Filed under: ,
Posted to:

Announcing the OData Helper for WebMatrix Beta

I’m a big fan of working smarter, not harder.  I hope you are too.  That’s why I’m excited by the helpers in WebMatrix which are designed to make your life easier when creating websites.  There are a range of Helpers available out of the box with WebMatrix – you’ll use these day in, day out when creating websites – things like Data access, membership, WebGrid and more.  Get more information on the built-in helpers here . It’s also possible to create your own helpers (more on that in a future blog post) to enable other people to use your own services or widgets.  We are are currently working on a community site for people to share and publicize their own helpers – stay tuned for more information on that.  Today we...
Filed under: , ,
Posted to:
by: 
08-04-2010, 1:09 AM

Using EF “Code First” with an Existing Database

Last month I blogged about the new Entity Framework 4 “code first” development option.  EF “code-first” enables a pretty sweet code-centric development workflow for working with data.  It enables you to: Work with data without ever having to open a designer or define an XML mapping file Define model objects by simply writing “plain old classes” with no base classes required Use a “convention over configuration” approach that enables database persistence without explicitly configuring anything In my initial blog post I introduced EF “code-first” and demonstrated how to use the default EF4 mapping conventions to create a new database.  These default conventions work very well for new applications, and enable you to avoid having...
Filed under: , , ,
Posted to:

ASP.NET Membership Training – 3 new Videos

Hi folks. Here are three more videos in my collection on Security concepts and working with ASP.NET Membership · Adding Users to Your Membership System · Logging Users Into Your Membership System · Implement the Registration Verification Pattern You can find them all at the Web Forms Security page: http://www.asp.net/web-forms/security Similar Posts:ASP.NET Membership – Handling [...] Read More...
Filed under: , , ,
Posted to:

What did you start programming on?

There’s some kind of controversy going on today in our microcosm. I don’t want to enter that controversy because I think nobody’s willing to listen to anybody but themselves. Instead, I want to propose something different, a trip down memory lane. Most people reading this blog are professional developers who in general care about good practice and good craftsmanship. I do too. But I also remember how I got started with computers. It wasn’t in a computer science class. I learnt by myself on a TI99/4A in Basic first and then Extended Basic . It was a magical experience in more than one way: I didn’t really understand what I was doing or what was going on in the computer. I was just doing whatever worked. I had no idea programming computers was...
Filed under: , ,

< Previous 1 2 3 4 5 Next >

Archives