Posts

Showing posts with the label MVC

ASP.NET MVC 5 With React.NET And ClearScript V8 Engine

Image
In this article we are going to create an Asp.Net MVC 5 application with React.Net lib and V8 engine to render the react component on server side rendering approach, so let’s get started.   Here I’m not going to give much explanation about react.js as there are plenty of articles are available on internet, you can go through those articles.   Below are the libraries we are going to use in this article, react.js ReactJS.NET (MVC 4 and 5) ReactJS.NET – ClearScript V8 Step 1   Create a new Empty ASP.NET MVC Project.       Step 2   Create one Controller in Controller folder named HomeController and click on Add as this will create a controller.       Step 3   Go to Index method and create one view called Index, this will create a master page and some required JavaScript files along with views.       Step 4   Right click on Project and go to Nuget Package Manager and search for ReactJs.Net and install the React.Web.MV...

ASP.NET MVC Web App on 3-Tier for Beginners – Part 2

Image
Introduction This article is the continuation of  Part 1 . In the first article, we saw understanding of requirements and then breaking them into objects, then finding out the relationships among them and finally designing and implementing the database. Now, let us see how to create a solution, then add multiple projects to it and then add desired references to the respective projects. 2: Analysis and Design (Creating Solution and Projects) Create a new project in Visual Studio as  LinkHubUI , choose desired path and click OK. Select Empty project, check the MVC check box and click on OK. Now, we will add some list of tasks which will make us implement the project easily. We will add a text file, right click on project, add Add New Item and name it as  ToDoList.txt . This  ToDoList  contains the list of tasks that we need to perform. This is a step-by-step process to implement the layered architecture in MVC. I’ve done a little hard wor...

Beginner's Guide for Designing ASP.NET MVC Applications using SQL Server and Entity Framework

Image
In this article we will discuss how to Design ASP.NET MVC Applications using SqlServer and Entity Framework Introduction In this article we will discuss how to design ASP.NET MVC applications using SQL Server and Entity Framework. Background Last weekend I got a chance to visit one of my friend's workplace. These guys wanted some unofficial help on starting up a new project. Their company has been developing Web Forms based applications since many years. Now they wanted to switch to ASP.NET MVC for new projects. Everybody in the organization was pretty excited and studying ASP.NET MVC. But they had some concerns on how to kick start their project with this new technology. How should concerns like n-tier architecture, data access, and unit testing be planned and implemented. I spent almost a day with them and most of it was in front of the white board with a projector showing diagrams and texts of the ASP.NET MVC architecture. At the end of the day we came up with a plan ...

An Absolute Beginner's Tutorial on ASP.NET MVC for Web Forms Developers

Image
Download sample - 1.3 MB Introduction In this article we will try to look at ASP.NET MVC architecture from a beginner's perspective. There are a plethora of articles available on the same topic. This article is yet another attempt of explain MVC in my own words. Background  ASP.NET MVC is the architectural pattern based on ASP.NET framework which provides a clean and elegant way of developing Web application. Before we can understand why MVC is in vogue we need to understand some limitation of Web forms first. A Brief Discussion on Web Forms let us discuss some limitation of web forms which are seen as drawbacks. I am sure many veteran developers will agree that these drawbacks can be put in check by following best practices and guidelines but none the less its a good idea to discuss them before looking at the ASP.NET MVC architecture. ViewState : This is the heart of ASP.NET when it comes to the ability of ASP.NET to provide stateful ...

Design Calendar in Expression Blend 4

Image
Step 1 Open  Expression Blend 4  -> select  Silverlight-Application  -> select  Silverlight-Application  -> change  Name and Location  accordingly -> hit  OK. Step 2 Select  Assets  -> select  Shapes  -> select  Rectangle,  draw an rectangle, manage the  width & height, background color, margin  and  shadow-effect  as shown below:  Step 3 Select  Text-Box  from the  Toolbox , enter a  Month-Name  according to your choice to the  left  of the rectangle shape and  2008  to the  right  of the rectangle shape, manage the  width & height, font family  and  font size  as shown below:  Step 4 Select  Assets  -> select  Shapes  -> select  Ellipse , draw an  ellipse  as the Handler for the calendar, manage the  width & heigh...

Software Gardening: Insecticide – Getting Started with Unit Testing using an ASP.NET MVC application

Image
Abstract:  Get started with unit testing using a simple ASP.NET MVC application. You’ll see how to setup the test and remove the database from the testing process. Gardeners understand the problems that insects can cause to their plants. Entire gardens can be destroyed in short time. To stop insects from killing the plants, gardeners use  insecticides . In fact, different types of insecticides may be needed. Some are organic. Some are chemical. Some kill off one type of insect, others kill off a different type of insect. And, of course, another name for the insect is  bug . Bugs kill our Software Garden as quickly as insects kill gardens. Our insecticide is  good testing . Just as gardens use different types of insecticides, as software gardeners, we should use different types of testing. Integration, capacity, acceptance, functional, system, unit, regression, stress, and performance are just some of the testing types we can use. Of all these types of test...