TechBubbles

Archive for the 'ASP.NET 4.0' Category

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

Deploying Database with ASP.NET Web application

 

Web applications can be deployed in two different ways one by using one-click publish or by using a Web deployment package. Usually we may want to deploy our database scripts that we used along with the application deployment. This post discusses the procedures to deploy the database along with web application in Visual Studio 2010.

Assume there is no database exist in destination and configure the below steps for first-time database deployment

Read more

Related Posts:

1 comment

WebForms Routing in ASP.NET 4

This post explains about WebForms routing features available in ASP.NET 4. Routing feature originally designed for ASP.NET MVC and now available for Webforms as well. You need to install Visual Studio 2010 ultimate beta2 to try the routing features in ASP.NET 4.

 

1. Create a ASP.NET Web Application in Visual Studio 2010 as follows

image  

Read more

Related Posts:

2 comments

Dynamic Metadata using ASP.NET 4.0

This post explains about Dynamically assigning Metadata to a page using code behind in ASP.NET 4.0. Metadata is so important as Search engine optimization considers Metadata keywords and description to index  the page. If you can dynamically assign the metadata to your page then search engine can easily analyze and puts the page in results list.

1. Create a ASP.NET web application in VS 2010 and add a grid view to the page

image 

Read more

Related Posts:

No comments

WCF Service using ASP.NET AJAX Library

More often, the data to shown in an AJAX page is retrieved from the Web server using a Web service, a Windows Communication Foundation (WCF) service. The services that can also return JavaScriptObjectNotation(JSON) are potential candidates for AJAX pages.

This post explains about calling a WCF service using ASP.NET AJAX Library Data View control. The following are the steps to create and call the service using ASP.NET AJAX Library.

1. Creating a AJAX enabled WCF service

2. Loading the required scripts

3. Calling a service using ASP.NET AJAX Data View Control

Read more

Related Posts:

1 comment

Master-Detail Views using ASP.NET AJAX

Master-Detail Views are very common in data-driven Web pages. These views are used for rendering one-to-many relationships. ASP.NET Web forms provided the strong server controls like grids,lists and drop-down lists which supports the multiple levels of data.

In Master-Detail View we normally navigate among master records and drill down into the details of the records that are of interest. In classic Web forms we need trigger many post-backs which most of the users are not happy these days.

This post explains about building a Master-Detail View using ASP.NER AJAX Library.

The DataView Client control is the fundamental tool for building master-derail views in ASP.NET AJAX and it can be used to generate both Master and Detail views.

Basic steps to build the Master-Detail application using ASP.NET AJAX

1. Create markup for the master and detail views.

2. Attach the DataView control to each view.

3. Use data-binding expressions to populate the data to the controls.

Read more

Related Posts:

No comments

ASP.NET AJAX Library Beta in Visual Studio

Overview

The ASP.NET AJAX Library is a JavaScript library which enables the developer to build highly interactive Ajax applications. Using ASP.NET Ajax client controls we can take the advantage of building database-driven web applications. This post explains how to add these controls to Visual Studio toolbox and explore the beta features.

The ASP.NET AJAX Library is compatible with Visual Studio 2008 and Visual Studio 2010 beta when targeting ASP.NET 3.5.

Using the ASP.NET AJAX Library Beta Scripts

There are two ways that we can use AJAX Library scripts in a  web applications.

  1. Adding controls from AJAX library to Visual Studio Toolbox.
  2. We can instantiate ASP.NET AJAX Controls  in JavaScript Code.

Read more

Related Posts:

2 comments

CRUD operations using ASP.NET MVC 1

This post explains how to write ASP.NET MVC application which supports create, read, update and delete operations on sample database table. We build a product catalogue application using ASP.NET MVC Web application template.

Download ASP.NET MVC 1 to create the following application

To get the overview on ASP.NET MVC you can read ASP.NET 3.5 MVC Application post

1. Create a ASP.NET MVC Web application by launching VS 2008 and then select

File–>New Project. In project dialogue box enter the project name ProductCatologue and say OK.

clip_image002

Read more

Related Posts:

No comments

Web Forms model in ASP.NET 4.0

ASP.NET 4.0 platform is built up with various components Web Forms,ASP.NET MVC, Dynamic Data Controls and ASP.NET AJAX. It has the same foundation as in ASP.NET 3.5 SP1 but refined the above features. This post speaks about features in the Web Form model.

         ASP

Read more

Related Posts:

No comments

ASP.NET MVC and Web Forms

This post explores the pros and cons of both ASP.NET Forms and ASP.NET MVC and also discusses why Microsoft released another ASP.NET Framework called ASP.NET MVC. There has been a discussion on choosing the framework for developing the web applications. The following comparisons will help the developers when to choose one or the other.

Benefits of ASP.NET Web Forms 

ASP.NET Web Forms is mature and stable for developing enterprise web applications and it is being supported by many third party controls and tools.

Microsoft basically extended the VB programming model to web forms where developers need not to be a expert in HTML and JavaScript to write effective web applications. To simulate the stateful nature of the desktop development it introduced the features like viewstate and  postbacks.

Key Features of ASP.NET Web Forms are

  • Having a Rich control set and third party support
  • Easy development for Enterprise Web Applications
  • Similar to desktop development and easier for the developers to write code with minimal knowledge of web concepts
  • It is a candidate for RAD Application Development
  • Web forms is a great choice for developing heavily data driven applications.

Read more

Related Posts:

3 comments

Next Page »