Posts

Light switch creating many to many relationship screen

http://blogs.msdn.com/b/lightswitch/archive/2010/12/16/how-to-create-a-many-to-many-relationship-andy-kung.aspx

SSD Optimization guide. Must for first time SSD installers

Hi Guys, Its been gr8 time since i installed SSD on my laptop and my laptop performance has increased to a new level.But our windows operating system has lot of settings which are no more required when you have SSD. So, to achieve best performance from an SSD system. We may disable those seetings which are no more required with the SSD drive. But the best performance is achieved when you have two drives in your machine. you can achieve this both in desktop as well as laptop. in laptop you can add a caddy drive. Best is to use SSD for operating system and normal HDD for data. Below is very nice link I got which explains all. http://thessdreview.com/ssd-guides/optimization-guides/the-ssd-optimization-guide-2/ Happy Computing.

Nice steps to increase visual studio performance

I went through and tried out few steps in this blog and found it helpful in increasing visual studio performance. http://blog.lavablast.com/post/2010/12/01/Slash-your-ASPNET-compileload-time.aspx

Asp.net MVC 3 Web Grid with Paging and Filtering

Hi,  I faced lot of challenge when i tried out using Asp.net MVC 3 WebGrid with Paging and Filtering. Trying out may examples i found out one good blog which actually resolves my issue. http://www.elylucas.net/post/Using-a-grid-that-can-sort-page-and-filter-in-AspNet-MVC3e28093Part-1e28093Using-the-WebGrid-WebHelper.aspx

Multi Select List Asp.net MVC 3

full working example: Model: public class Item {     public int Id { get ; set ; }     public string Name { get ; set ; } } public class MyModel {     public IEnumerable SelectedItemIds { get ; set ; }     public IEnumerable < Item > AvailableItems {         get         {             return new []             {                 new Item { Id = 1 , Name = "Item 1" },                 new Item { Id = 2 , Name = "Item 2" },                 new Item { Id = 3 , Name = "Item 3" },             };         }     } } Controller: [ HandleError ] public class HomeController : Controller { ...

Creating a Global Action Filter in asp.net MVC 3 and above

I Found a very nice and simple acticle of incorporating the Global Action filteres on your application. this acticle is as below. http://weblogs.asp.net/gunnarpeipman/archive/2010/08/15/asp-net-mvc-3-global-action-filters.aspx It also contains the source code required to try it out.

Asp.net ViewState Security

Asp.net ViewState Security. ASP.NET ViewState data is stored in a single Base64-encoded string  such as  this: id="__VIEWSTATE" value="dDw3NDg2NdTI5MDg7Ozr4="/> Since this value is not formatted in clear text, developers sometimes assume that their ViewState data is encrypted which is most certainly not the case. This data string can be reverse-engineered this and then viewed. This is an obvious security issue if sensitive data is being stored in ViewState. To make ViewState secure, there are two choices, hash codes and ViewState encryption. USE A HASH CODE. A hash code  is a cryptographically strong checksum. When you use a has code, ASP.NET calculates the checksum based on the current ViewState content data and then adds this to the hidden input field when the page  when is returned to the client.  On the page post back, ASP.NET then recalculates the checksum to  ensures a  match. If a malicious user were to  change the...