Tag Archives: MVC

Code-first vs Model/Database-first

Code first Very popular because hardcore programmers don’t like any kind of designers and defining mapping in EDMX xml is too complex. Full control over the code (no autogenerated code which is hard to modify). General expectation is that you … Continue reading

Posted in MVC | Tagged | 1 Comment

How to download multiple files parallel in C#.NET Console

How to download multiple files parallel in ASP.NET MVc This article will show you how to download multiple files in ASP.NET MVC, We are using Parallel.ForEach loop to download multiple file. Parallel.ForEach executes each element parallel and wait till they … Continue reading

Posted in C#.NET, MVC | Tagged , | Leave a comment

Difference Between ViewResult() and ActionResult()

ActionResult -is an abstract class that can have several subtypes: ViewResult – Renders a specifed view to the response stream ActionResult is an abstract class that can have several subtypes. ActionResult Subtypes ViewResult – Renders a specifed view to the response … Continue reading

Posted in MVC | Tagged | Leave a comment

INTERVIEW QUESTION

INTERVIEW QUESTION Name a few different return types of a controller action method? The following are just a few return types of a controller action method. In general an action method can return an instance of a any class that … Continue reading

Posted in C#.NET, MVC | Tagged , | Leave a comment

How to extract 7z file to a folder C# .net

This article will show you how to extract .7z, .zip, .rar file using 7z.exe in C#.net. Here we add the code to control the 7-Zip executable. In the first part of the code, we specify the source file name and … Continue reading

Posted in C#.NET, MVC | Tagged , | Leave a comment

Multiple file-extensions searchPattern for System.IO.Directory.GetFiles

This article will show you to get multiple file-extension search pattern, in regular way you can get files with specific extensions but using same how to get Multiple file-extension, basically we are querying on the list file and get only … Continue reading

Posted in C#.NET, MVC | Tagged | 1 Comment

Inline Editing With the WebGrid in ASP.NET MVC 4

This article will show you how to create editable webgrid which will provide you a facility of inline editing using jQuery. Approach: Create an editable grid for user table. The key to this approach is to populate the grid with … Continue reading

Posted in ASP.NET MVC Web Grid, css, jQuery, MVC | Tagged , , , | 2 Comments