Browse by Tags

All Tags » Visual Studio 2010 (RSS)

Attach to IISExpress process from Visual Studio by nmarun

With VS2010 SP1, you can attach an application process to IISExpress to enable debugging of an application. Here’s how: I have an MVC application with the following setup. 1: public class HomeController : Controller 2: { 3: public ActionResult Index(...

Executing SQL queries on SQL CE 4 through Entity Framework by nmarun

In my previous blog , I wrote about how to use inheritance through entity framework on SQL CE database. In this blog however, I’ll explore how you can run a typical SQL query statement on the database table and read/write the values. I will build on the...

Entity Framework Model Inheritance with SQL CE 4 by nmarun

For some (unknown) reason, I’ve been curious to work with SQL CE, just hadn’t gotten a chance to work with it. If you’re not familiar with what SQL CE is all about, go through this article from Scott Gu . To begin with I have an empty MVC 3 application...

VS2010 crashes fixed with Productivity Power Tools upgrade by nmarun

I’m guessing people have at least heard of Productivity Power Tools plug-in for Visual Studio. If not, I strongly recommend you give it a shot. There’s a feature in this plug-in that’ll fix mixed tabs. A toolbar appears on the top that shows three buttons...

HTML5-MVC application using VS2010 SP1 by nmarun

This is my first attempt at creating HTML5 pages. VS 2010 allows working with HTML5 now (you just need to make a small change after installing SP1 ). So my Razor view is now a HTML5 page. I call this application - 5Commerce – (an over-simplified) HTML5...

Getting (partial) color on Razor pages by nmarun

It definitely looks dull and drab without the color-coding. So, for those who cannot wait till the next bits come out, here’s one way. Go to Tools->Options in your Visual Studio environment .In the Text Editor section, choose ‘File Extension’ section...

‘forr’ shortcut in Visual Studio 2008/2010 by nmarun

I hit upon this new shortcut key for a ‘for’ loop. Alright, most of you know that you can type ‘prop’ in a code-behind file and you’ll get a ‘template’ (for lack of a better word) for declaring a property. You can now start typing the type name and then...

VS 2010 Productivity Power Tools by nmarun

I finally downloaded the Productivity Power Tools extension for Visual Studio 2010. This is really really cool. To install the extension just double-click the .vsix file and you’ll see it in VS2010 –> Tools –> Options: Here are some of its features...

VS 2010 ASP.NET 4.0 RedirectPermanent does a 301 and not 302 by nmarun

Hi, As I was reading a white-paper on changes in VS 2010, ASP.NET 4.0, I came across this new method that the Response object exposes – ‘RedirectPermanent’. This issues a ‘HTTP 301 – moved permanently’ as against a ‘HTTP 302 – moved temporarily’ that...
More Posts