Organizing Entity Framework Code First Migration Seed Method

I recently started working on a complex ASP.NET MVC 5 Project with Entity Framework 6. This is the first time I am building an actual, to be production ready, deliverable web site on MVC. 706 more words

Entity Framework


I was looking for chart library for my application which has powerful features and could render beautiful graphs (and which is free :-)). My research ended up with… 642 more words


How to fix: Handler “PageHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler” in its module list


Recently, I am having issues with deploying asp.net mvc 4 application to Windows Server 2008 R2.After add the necessary role and features and I setup an application in IIS. 96 more words

My Handy References

Unit of Work & Repository Framework video - Review

Recently I found a really cool YouTube technical video, “Unit of Work & Repository Framework” by a Microsoft MVP named Long Le. One of the most amazing things about this 21:30 long video is how much ground he covers in it. 421 more words

Design Patterns

Using Configuration to Control When to Show Debug Javascript Alerts

It can sometimes be frustrating constantly changing alert messages when debugging javascript. One way around this is to read the debug setting from the web.config file. 78 more words


Integrate ELMAH with ASP.NET MVC 5

Install ELMAH using package manager console (install on main project)

Edit Web.config file and set ELMAH log error to xml file

Try to raise some error… 15 more words


Export MVC webgrid to Excel using jQuery and iFrame

Create a View named GenerateExcel:

@model test.ViewModel.testViewModel

    Layout = null;
    Response.Buffer = true;
    string filename = DateTime.Now.ToString("yyyyMMddhhmmss");
    Response.AddHeader("Content-disposition", "attachment; filename=" + filename + ".xls");
    Response.ContentType = "application/octet-stream";

<table style="border: 1px solid #a59f9f;" border="1">
    <tr style="font-weight: bold">
  @foreach(var row in Model.ListGrid){
      <td style="border: 1px solid #a59f9f;">@row.FName</td>
      <td style="border: 1px solid #a59f9f;">@row.LName</td>
      <td style="border: 1px solid #a59f9f;">@row.EmailId</td>

… 135 more words