In ASP.NET MVC We use Views and it’s help us to return a web-page back to browser. After Execution the Views we still have control on our response until Response.End() has called from ASP.NET itself.

In we use ViewBag and ViewData to pass the data. TempData is also can be used which is based on session and stay alive until second view has been returned.

For divining the complexity We use Partials to divide the whole page into many partials. For example.

Using this way your partial have also data passed from their own PartialViewResult in Controller itself. You can call them something like this


Using given way we doesn’t need to care about passing viewdata to every partial. Remember that If controller is inherited from another class which have some ActionFilter attribute then they will also called in this implementation.

If your current action have data for the partial which you don’t want to retrieve again from database then you can also call it by pass then to partial directly from current View. For example look at this code.

@Html.Partial("~/Views/Home/Partial1.cshtml", new ViewDataDictionary { { "test", "test" } })

I pass the string “Test” in other case you call also pass the viewdata. for example ViewData.test .


Another way to divide the complexity is make a new custom class which contain all these information as property. For example

In this post I shown you 2 way to use partials to divide complexity.

Thanks for read my post Smile


If you trying to logged-in in and it didn’t work for you then try this trick.

1. Reset your password through Reset password link no matter If you using Google/Facebook openId.

When you have reset your password then you can simply logged-in with password and same email that you are using when you use openId.



I make this video in Windows 7 just after disable Windows 7’s inbuilt animation.This kind of animation is totally based on html5, css3,Javascript and doesn’t use any kind of functionality built in windows 7. You can made wonderful apps like this in html,css,javascript.


UPDATE 19 December 2013

I am using Visual studio 13 from it’s preview time. This year’s release have buggy implementation of many feature that recently have added to Visual studio. There are bunch of issue that we want to get fixed. Here is my own list.

When I work in ASP.NET MVC project’s cshtml it’s show me waiting. it’s happen with just demo code project where I have add nothing. This happen in cshtml and C# that I have checked and confirmed.

I figure out my intellisense stop working suddenly few time. I thing something goes wrong in my project. I close the .cs file and open it again and now it’s work. Happen to me 2 times. Doesn’t sure about it so I have made a video and post them on


I have posted a bunch of thread on with videos/text/screenshot to make reproduce of issue easier. You can find all of them here

When I got a bunch of problem I still not feel this is stable releases. VS 13 doesn’t have support for MVC 3. they change many thing that is not too old. When this kind of trouble happen I simply go back to 2012 that is work fine. There is no problem with 2012 which gave me everything that I can do in 2013.

From taking look on people’s problem on Stackoverflow there is many thing broken in 2013. Nothing seen fixed for me in update 1. Second update even not sure that all my issue will be fixed so 2012 is good choice.


Thanks for read my post.