Setting the right target framework for a .NET project in Visual Studio 2010

By | March 20, 2011

In this Tips I’ll discuss about Client Profile which is nothing but a subset of the associated framework and optimized for client applications e.g. .NET Framework 4 Client profile is a subset of .NET Framework 4. You can view or change the target framework for a project in Visual Studio 2010 as displayed below Client Profile improves the… Read More »

Selecting Cache Provider On the Fly in ASP.NET

By | March 19, 2011

If you have multiple Cache Provider in your ASP.NET application you can  set the output cache provider dynamically at runtime .  This is extremely useful if want to store cache data in different storage based on the usages of the data. To use this features you need to override the GetOutputCacheProviderName() method within the Global.asax file of your… Read More »

Filter Properties in IntelliTrace Event Window

By | March 17, 2011

While dealing with IntelliTrace, sometime you must have noticed there are so many event capture by the IntelliTrace. You can filter them out by selecting categories from IntelliTrace Window which will minimize the number of events captured. As shown in below image, I have filtered the records on “ASP.NET” Categories,hence it’s displaying all the ASP.NET Related events. But… Read More »

Creating Custom HTML Helpers in ASP.NET MVC

By | March 14, 2011

ASP.NET MVC provides many built-in HTML Helpers.  With help of HTML Helpers we can reduce the amount of typing of HTML tags for creating a HTML page. For example we use Html.TextBox() helper method it generates html input textbox. Write the following code snippet in MVC View: <%=Html.TextBox(“txtName”,20)%> It generates the following html in output page: <input id=”txtName” name=”txtName”… Read More »