Browse by Tags

All Tags » ASP.NET (RSS)

Visual Studio 2011 New Editor Features by nmarun

To add a asp:DetailsView, all I typed was <dv, and it’s there for you. You can extract a snippet of html to a user control Just ‘space’ after the backgrouund-color property and you’ll see a popup for you to choose from. This is the CSS Color Picker...

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(...

Select the entire html element or just its content by nmarun

I bumped into this just a couple of minutes ago - Visual Studio’s one more ‘nifty’ feature that makes selecting the entire html element or just its content. Alright, I’m in Visual Studio 2010 and I have the following HTML on my web page. 1: < asp:Content...
Filed under: , ,

Using Unity – Part 4 by nmarun

In this part, I’ll be discussing about constructor and property or setter injection. I’ve created a new class – Product3: 1: public class Product3 : IProduct 2: { 3: public string Name { get; set; } 4: [Dependency] 5: public IDistributor Distributor ...
Filed under: , ,

Using Unity – Part 3 by nmarun

The previous blog was about registering and invoking different types dynamically. In this one I’d like to show how Unity manages/disposes the instances – say hello to Lifetime Managers. When a type gets registered, either through the config file or when...
Filed under: , ,

Using Unity – Part 2 by nmarun

In the first part of this series, we created a simple project and learned how to implement IoC pattern using Unity. In this one, I’ll show how you can instantiate other types that implement our IProduct interface. One place where this one would want to...
Filed under: , ,

Using Unity – Part 1 by nmarun

I have been going through implementing some IoC pattern using Unity and so I decided to share my learnings (I know that’s not an English word, but you get the point). Ok, so I have an ASP.net project named ProductWeb and a class library called ProductModel...
Filed under: , ,

ASP.NET Server-side comments by nmarun

I believe a good number of you know about Server-side commenting. This blog is just like a revival to refresh your memories. When you write comments in your .aspx/.ascx files, people usually write them as: 1: <!-- This is a comment. --> To show...
Filed under: ,

ASP.NET MVC 2 RTM Unit Tests not compiling by nmarun

I found something weird this time when it came to ASP.NET MVC 2 release . A very handful of people ‘made noise’ about the release.. at least on the asp.net blog site , usually there’s a big ‘WOOHAA… <something> is released’, kind of a thing. Hmm...
Filed under: , ,
More Posts