background preloader

Visual studio

Facebook Twitter

React.NET - Home. Monte Carlo Simulation Using Parallel Asynchronous Web Services with .NET 2.0. Download source - 2.2 KB Introduction Many computational problems facing financial engineers and the scientific community today require massive amounts of computing power. There are several ways to deliver this computational performance. Symmetric multiprocessing systems or message-passing interfaces have been the standards for meeting high performance computing needs. However, using parallel web services, which are based on standard protocols and run on commodity x86-based servers, may be a simpler and less expensive way to deliver the computing horsepower needed. This article demonstrates the power of asynchronous web services by explaining how to set up parallel web services with .NET 2.0 to tackle a Monte Carlo simulation that can approximate the value of Pi to several decimal places.

Estimating Pi (π) using Monte Carlo simulation The area of a circle is Pi*r^2, where r represents the circle's radius. Understanding web services Architecting the Monte Carlo web service PiConsoleApp code: Entity Framework Code First to a New Database Video. Entity Framework Code First to a New Database About This VideoThis video provides an introduction to Code First development targeting a new database. This scenario includes targeting a database that doesn’t exist and Code First will create, or an empty database that Code First will add new tables too. Code First allows you to define your model using C# or VB.Net classes. Additional configuration can optionally be performed using attributes on your classes and properties or by using a fluent API.

See the step-by-step walkthrough that accompanies this video. Presented By: Rowan Miller Downloads Video: WMV | MP4 | WMV (ZIP) Introducing “Razor” – a new view engine for ASP.NET. One of the things my team has been working on has been a new view engine option for ASP.NET. ASP.NET MVC has always supported the concept of “view engines” – which are the pluggable modules that implement different template syntax options. The “default” view engine for ASP.NET MVC today uses the same .aspx/.ascx/.master file templates as ASP.NET Web Forms. Other popular ASP.NET MVC view engines used today include Spark and NHaml.

The new view-engine option we’ve been working on is optimized around HTML generation using a code-focused templating approach. Design Goals We had several design goals in mind as we prototyped and evaluated “Razor”: Compact, Expressive, and Fluid: Razor minimizes the number of characters and keystrokes required in a file, and enables a fast, fluid coding workflow. We’ve spent the last few months building applications with it and doing lots of usability studies of it with a variety of volunteers (including several groups of non-.NET web developers). If Statements. Creating Model Classes with LINQ to SQL. Creating a Tasklist Application with ASP.NET MVC. 5 Minute Intro to ASP.NET MVC. ASP.NET MVC3 AJAX Search Tutorial - Infinite Dreamers.

N.B. a newer tutorial is available here. Overview Having moved across to ASP.NET MVC3 within the last 6 months, one of the things that I found missing in the wealth of quality tutorials was how to use AJAX to pass a user-defined class. This tutorial aims to illustrate one way of doing this through the creation of an MVC3 AJAX-enabled search page to allow searching a catalogue of books. You can download the completed C# project here.

Creating the Web Application To start the tutorial, open Visual Studio 2010 and create a new project using the ASP.NET MVC 3 Web Application template. In the New ASP.NET MVC 3 Project dialog, select Intranet Application, select the Razor view engine, make sure ‘Use HTML5 semantic markup’ is checked and then click OK. Adding the Model The application uses the following simple model: This is an Entity Framework 4.1 ‘Code-First’ model that uses SQL Server Compact 4.0 as its datastore. Adding the View Model Creating the Default View Creating the Search Results View. NerdDinner Step 11: Integrating an AJAX Map. [This is step 11 of a free "NerdDinner" application tutorial that walks-through how to build a small, but complete, web application using ASP.NET MVC] We'll now make our application a little more visually exciting by integrating AJAX mapping support.

This will enable users who are creating, editing or viewing dinners to see the location of the dinner graphically. Creating a Map Partial View We are going to use mapping functionality in several places within our application. To keep our code DRY we'll encapsulate the common map functionality within a single partial template that we can re-use across multiple controller actions and views. We can create the map.ascx partial by right-clicking on the \Views\Dinners directory and choosing the Add->View menu command. When we click the "Add" button our partial template will be created. 03. 05. 06. 08. 10. 11. var latitude = <%=Model.Latitude%>; 12. var longitude = <%=Model.Longitude%>; 14. if ((latitude == 0) || (longitude == 0)) 15. 16. else 17. 24. 28.

Adding a Model (VB) This tutorial will teach you the basics of building an ASP.NET MVC Web application using Microsoft Visual Web Developer 2010 Express Service Pack 1, which is a free version of Microsoft Visual Studio. Before you start, make sure you've installed the prerequisites listed below. You can install all of them by clicking the following link: Web Platform Installer. Alternatively, you can individually install the prerequisites using the following links: If you're using Visual Studio 2010 instead of Visual Web Developer 2010, install the prerequisites by clicking the following link: Visual Studio 2010 prerequisites. A Visual Web Developer project with VB.NET source code is available to accompany this topic.

Adding a Model In this section you'll add some classes for managing movies in a database. You’ll use a .NET Framework data-access technology known as the Entity Framework to define and work with these model classes. Adding Model Classes Name the class "Movie". Imports System.Data.Entity.