TechBubbles

ASP.NET Web API

 

 

ASP.NET Web API is Framework for building for building HTTP services on top of the .NET Framework. It ships with ASP.NET MVC 4. You can install the ASP.NET MVC 4 from here. ASP.NET Web API is a integrated Framework resulted in joint effort from WCF and ASP.NET teams. WCF REST is now replaced by ASP.NET Web API. You can read the post to migrate your existing WCF Web API to ASP.NET Web API. This post briefly discuss about why we need it and how we can use it in ASP.NET and other projects.

Why use ASP.NET Web API?

  • Reach More Clients – By creating HTTP services by using client appropriate formats you making your application broadly available. Your services not just consumed by browsers but also client applications, mobile applications and other devices. In this way you are having interoperability with other applications directly by consuming your services

Read more

Related Posts:

No comments

Performance Tricks to Metro Style Web Applications

 

What is web performance? It is actually when does the user perform an action it self and when does those results occur on the screen. The three key factors to web performance is Network, CPU and Memory.

image

The web developer has to think about the above three element to improve the performance of a web application. You can measure your web site performance using windows performance toolkit which is the part of windows 7 SDK. You can download the toolkit from here. There is great post how to use this toolkit which you can read from here. We all know these tricks but we ignore sometime which costs severely in web application performance. You can use the below tricks are as check-list while building your web application.

The tricks are

Read more

Related Posts:

No comments

WebSockets in ASP.NET 4.5

 

This post discuss about using WebSockets in ASP.NET 4.5. You can read this post to get an understanding about WebSockets. This post shows piece of code which uses WebSockets in ASP.NET 4.5 and the code is related to simple chat application.

The HTML of Web Form chat application looks as below

image 

It contains a text box where you can type your text message and button where it sends a message to the server. You can notice there is <ul> element which shows the list of other messages which are arriving from the server.

Read more

Related Posts:

No comments

Why WebSockets?

 

WebSockets are required to develop the rich and real time web applications. WebSockets can securely enable the real-time web. Before explaining the need of WebSockets we see what current Web is and it’s limitations.

What is Current Web?

image

Read more

Related Posts:

3 comments

Creating Web Applications with HTML5 WebSockets

 

WebSockets enables the real-time web where the information is available to the user the moment it is published. WebSockets are standard based, Interoperable across browsers and very simple to use. We got the WebSockets support everywhere it is available on browsers, windows run time, WCF, ASP, IIS etc. This post gives you the basic idea about WebSockets and the technicalities behind this concept.

There is a deep desire for speed to get the information as quickly as possible.

Typical examples where user wants to see the information in real time

  • Stock Market data
  • Live Scores
  • Airline Location
  • Twitter Search Results
  • Interactive games

The Problem

HTTP is a state less protocol where server can communicate with client only once per request received. Real time web needs asynchronous communication with client.

Read more

Related Posts:

1 comment

Optimizing the website Performance using ASP.NET 4.5

 

There are so many different ways you can optimize your website performance. You may think why we need to worry about website performance when internet connection speed is growing faster and faster. Just few examples: Google did a test, if their search page is 500ms slower then they are going to lose 20% their traffic. If Amazon runs 100ms slower then there is 1% drop in their sales which is nearly $1 million a day. So it is important build the website which are fast in response time. ASPNET_vNext

Typical website may have the following architecture. We can do optimization in each layer but this post specifically talks about ASP.NET 4.5/IIS which is a presentation layer.

image

Read more

Related Posts:

2 comments

Creating Data-driven web apps using ASP.NET 4.5 Web Forms

 

Data binding is simpler and more powerful in ASP.NET 4.5 Web Forms.This post discuss about creating Data-driven application using ASP.NET 4.5 preview. It also discuss about different Data access methods, particularly about model access binding features in Web Forms. You need to install Visual Studio 11 Developer preview to use this feature. You can read this post for links to download etc.. ASPNET_vNext

Typical ASP.NET developer may use one of the following Data Access mechanisms for binding the data

  • You may setup your Database First – Creating a Schema and generating model from it. Here model is a class which you are going to interact with your database from your code.
  • You may setup your Model First – Instead of designing the database first, we design the entity model first eg: using entity framework. Design your model first and then generate a schema and code.
  • You may setup your Code First- In this approach you first write code to design the model and then generate a schema using that code.

Read more

Related Posts:

1 comment

Visual Studio 11 Web and .NET 4.5 Developer Preview and ASP.NET 4.5

 

 

Three days ago, Visual Studio 11 Developer Preview and .NET 4.5 were announced. You can get the more details from here. You can download the Visual Studio 11 Developer preview from here. You can run Visual Studio 2010 and Visual Studio 11 developer preview side by side.

Visual Studios - Living together 

.NET Framework 4.5 Developer Preview can be downloaded from here

Visual Studio 11 Developer Preview includes new features like

  • Editor support for CSS3
  • Editor support for HTML5 and Javascript

More about the features and ASP.NET 4.5 development can be read here

NOTE: You need Windows 7 or later to try Visual Studio 11 Developer

I am downloading the Virtual machine and want to explore the features. Soon I can write a detailed post on these features.


Share this post :

Related Posts:

1 comment