A delegate in C# is simillar to a FUNCTION POINTER in C or C++. Delgate can be defind as an Object which contains the address of a method. Delegate is a reference type used to encapsulate a method with a speciific signature and return type. As written in MSDN ” A Delegate isContinueContinue reading “Delegate in c#”
Monthly Archives: December 2009
Picture Gallery in ASP.Net MVC Application
Objective Objective of this aricle is to show, how to work with Images in ASP.Net MVC application. This article will explain, how to display images from Xml file and how to add images in Xml resourece. The Final Output would be something like below. Creating the Resource folder for Image Create an ASP.Net MVC application,ContinueContinue reading “Picture Gallery in ASP.Net MVC Application”
Unity Frame Work in ASP.Net MVC Application
Objective This article will explain step by step that how to inject dependency using UNITY framework in ASP.Net MVC Application Step 1 Create a MVC application Step 2 Add Unity references to the MVC application. Step 3 Idea here is to create a custom controller factory. This custom controller factory will create the controller andContinueContinue reading “Unity Frame Work in ASP.Net MVC Application”
Improving performance with Output Caching in ASP.net MVC application
Goal: Here, I am going to explain, how we can improve performance of ASP.Net MVC application using output caching. Advantage It enables us to cache the content returned by Controller action. It stops controller action to generate same content each time. We can set caching parameter using output cache. We can specify where toContinueContinue reading “Improving performance with Output Caching in ASP.net MVC application”
Working with Word document in ASP.Net MVC Application
Objective This article will give step by step explanation of How to display a word document in ASP.Net MVC framework. How to customize the default master pages and CSS. First the output, Home will look like below. When user will select link to open a particular word document, output would be Step1 Create an ASP.NetContinueContinue reading “Working with Word document in ASP.Net MVC Application”
ASP.Net MVC Framework Introduction
ASP.NET MVC framework Overview Objective This tutorial will explain basically, how to work with ASP.NET MVC Frame work. I will explain that in chronic fashion. It would come in different parts. Objective of PART 1: Here I am going to introduce, what is MVC Design pattern. What are the advantages of using ASP.NET MVCF Framework?ContinueContinue reading “ASP.Net MVC Framework Introduction”
Html Helper in Asp.Net MVC application
Html Helper To add content to VIEW of Asp.net MVC application, Html Helper is being used. This is nothing but a method which returns string. Html Helper could we used to generate standard HTML elements like Text Box, Label etc. All Html helper are called on the Html property of view. For example to renderContinueContinue reading “Html Helper in Asp.Net MVC application”
File Upload in ASP.Net MVC application
Objective This article will show how to upload a file from client to server location in ASP.Net MVC application in 5 easy steps. Step 1Create an ASP.Net MVC application. File->New->Project->web->ASP.Net MVC Application Step 2 Creating controller Right click on Controller folder and add a new controller. FileUpload is name of the controller here. Don’tContinueContinue reading “File Upload in ASP.Net MVC application”
Adding Menu functionality in Html Helper class using Extension method
Objective This article will show how to add new functionality in HtmlHelper class using Extension method. This will give step by step explanation of, how to create or add MENU functionality n Html helper class and then use that in view of ASP.Net MVC application. Step 1 Create an ASP.Net MVC application. File->New->Project->web->ASP.Net MVC ApplicationContinueContinue reading “Adding Menu functionality in Html Helper class using Extension method”
Controller in 2 ASP.Net MVC Applications
Objective Purpose of this tutorial is to explain all about Controller in ASP.Net MVC application. Part 1 of this series of tutorial could be found here http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/MVCFrameWorkPart103262009001714AM/MVCFrameWorkPart1.aspx ASP.Net MVC controller MVC controller takes user request in browser. These are responsible for responding to request made against ASP.Net MVC web site. Browser request is mapped toContinueContinue reading “Controller in 2 ASP.Net MVC Applications”