background preloader

ASP .NET

Facebook Twitter

AngularJS — Superheroic JavaScript MVW Framework.

Kendo UI

Bootstrap. Gridview Sort with Attribute Property [Source Code] Download source code and demo - 141.3 KB Introduction Many developers who try to sort a GridView generally use the ViewState for maintaining the last position of the GridView.

Gridview Sort with Attribute Property [Source Code]

Here, I want to show you a new technique of doing this... The Holy Grail jQuery Plugin of CSS Design. Download source code Introduction One can say that software development is not just a skill, but a myriad of interrelated, different skills.

The Holy Grail jQuery Plugin of CSS Design

We use to say, "it´s all about code", when in reality, the code itself is just a part of the problem. Uploading multiple files and creating a Zip File in ASP.NET with C# Introduction In this example, I will explain how upload multiple files with a limit like 5 or 10 files. The complete validation process we would be going with the Jquery. And how to upload those files onto a folder and also generating a zip for all files particular folder. Using the code. JavaScript Performance tips. Introduction In this tip, I have tried to capture the common design and coding mistakes JavaScript developers tend to make.

JavaScript Performance tips

The intended audience for this article is JavaScript beginners with a few years of programming experience. Background Over the years, I have observed how web based Enterprise/Consumer software is designed, developed and tested. Editable GridView in ASP.NET 2.0. Download Source code with SQLDownload source code Introduction This article will give you an overview of how to use an asp:GridView completely, and how to use RowEditing, RowUpdating, RowDeleting, RowCommand, RowDataBound, RowCancelingEdit, and Pagination in a DataGrid.

Editable GridView in ASP.NET 2.0

From this article, you will have a clear view of the GridView data insert, delete, and update operations. Background. How can I get “new MVC item” options to appear in AddItem menu, when project is a Dynamic Data project. ASP.NET WebForms and MVC together in one project. This post briefly describes a solution to mix ASP.NET WebForms and MVC in one project.

ASP.NET WebForms and MVC together in one project

You can download a sample project that might be more useful than my ramblings. Download the sample here, unzip, open with VS 2008 SP1 and hit F5. ModalPopUpExtender In GridView. Ajax ModalPopUpExtender In GridView Example To Show Master Detail Or Parent Child Data As PopUp.

ModalPopUpExtender In GridView

In this sample code i am showing how to implement or use ModalPopUp Extender in Gridview using sqlDataSource, AjaxControlToolkit,Sql Server 2008 and visual studio 2008. I have used "Orders" and "Customers" table of Northwind database for this example. You can install Northwind database on sql server 2008 If you don't have. ASP.NET AJAX Control Toolkit ModalPopupExtender Control in Action. Download source - 942.41 KB Table of Contents Development Platform.

ASP.NET AJAX Control Toolkit ModalPopupExtender Control in Action

Design Pattern IOC and DI. Updated with links of Other Application Blocks Table of Contents.

Design Pattern IOC and DI

Testability and Entity Framework 4.0. Scott Allen Published: May 2010 Introduction This white paper describes and demonstrates how to write testable code with the ADO.NET Entity Framework 4.0 and Visual Studio 2010.

Testability and Entity Framework 4.0

This paper does not try to focus on a specific testing methodology, like test-driven design (TDD) or behavior-driven design (BDD). Code First Approach using Entity Framework 4.1, Inversion of Control, Unity Framework, Repository & Unit of Work Pattern and MVC3 Razor View. Download source - 7.2 MB Introduction In my previous article I discussed developing a simple, multi-layered architecture for a .NET application.

Code First Approach using Entity Framework 4.1, Inversion of Control, Unity Framework, Repository & Unit of Work Pattern and MVC3 Razor View

However, there were few points that I skipped considering that the article was for beginners. When we talk about an application architecture there are certain points that need to be put into consideration before initiating. For example: Is the architecture loosely coupled? To answer these type of questions, .NET 4 has come up with a generic solution, making use of Entity Framework. My effort in this article was to put some light on building a generic multilayered architecture using Entity Framework 4.1 and MVC3 razor view engine. Use of Seperation of Concerns, Use of Code First approach, POCO objects, Repository Pattern, Dependency Injection and Inversion of Control. Architecture Overview. C# - Setting the httpcontext current session in unit test. ASP.NET MVC Unit Tests with UnityAutoMoq Container. In this article, we will look at the usage of UnityAutoMoq container, and how we can use this container to write maintainable ASP.NET MVC Unit Tests.

UnityAutoMoq container is an Open Source library, created by Thomas Pedersen. If you are new to Auto Mocking, please refer to this article, which briefly describes the concept. You can also download the UnityAutoMoq via Nuget Package Manager. Command: PM> Install-Package UnityAutoMoq UnityAutoMoq container is based on Unity Dependency Injection (DI) framework, and Moq isolation/mock object framework. Most applications with DI containers and Isolation frameworks can utilize the Auto Mocking concept. One of the key aspect of Auto Mocking is to abstract away the unnecessary mocking and stubbing, when writing Unit Tests. How To Use Unity Container In ASP.NET MVC Framework.

Introduction In the past, I wrote a post about How To Use Unity Container In ASP.NET. In this article, I'm going to show and explain how you can use Unity IoC container in ASP.NET MVC Framework in order to make aspects in our application more decoupled. Building The Container As in the previous post, the first thing to do is to build the container itself. I'll use the same method that I used in the previous post in order to persist the Unity container’s state during the application execution. Public interface IContainerAccessor { IUnityContainer Container { get; } } After the building of the interface, implement it in the Global class in the Global.asax file: The implementation is straightforward.

The Unity Controller Factory The real and important change with this new implementation of Global.asax is the setting of the controller factory which you will need to supply. The main thing to do is to implement the CreateController method of the IControllerFactory interface. The Controller Summary. ASP.NET Web Forms Applications. In ASP.NET Web Forms applications, the recommended approach is to store the container in the global state provided by the Application dictionary object. You can then access the container when required or—even better—use an HTTP module to perform injection on all of the controls in the page automatically. In general, you should use the Application dictionary object to store the single instance of the container. You may decide to create child containers of the main container and store them in each user Session object, or even for each request, to register your custom types and mappings in the child containers.

However, this may reduce application performance, and you should generally avoid creating additional containers if possible. Top 10 HTML 5 Interview Questions. 1. What's new HTML 5 DocType and Charset? As HTML 5 is now not a subset of SGML, its DocType is simplified as follows: And HTML 5 uses UTF-8 encoding as follows: [CLOSED] [MVC] How to add RenderBody, ActionLink in Ext.Net Controls. ASP.NET (Web Forms + MVC) component framework integrating the Sencha Ext JS JavaScript Library. Clean up your MVC app with SignalR - Novanet.

Update This blogpost was written with the 0.6b release of SignalR, and the examples wont necessarily work with the latest release. Creating a Generic Entity Framework 4.0 Repository. A Beginner's Tutorial on Custom Forms Authentication in ASP.NET MVC Application. Creating Unit Testable Applications in ASP.NET MVC - A Beginner's Tutorial. ASP.NET Web Site Performance Improvement. Introduction. ASP.NET. ASP.NET Move Items from One Listbox to Another Listbox.