TechBubbles

Archive for January, 2009

ASP.NET 3.5 List Controls Overview

Introduction

This post explains the List Controls that are included in the ASP.NET 3.5. List Controls are one of the Data Bound type controls in ASP.NET. The following are the five List Controls in ASP.NET 3.5.

  • BulletedList – It displays the list of items which can be displayed as text, a link button, or a hyperlink.
  • CheckBoxList- It displays the list of checkboxes where user having the option of selecting the multiple checkboxes.
  • DropDownList- It displays the list of items where user can select only one item from the list.
  • ListBox-It displays the list of items where user can select the single or multiple items from the list.
  • RadioButtonList-It displays the list of radio buttons where user can select the only one button from the list of items.

All the above mentioned controls are inherited from the base class ListControl.

You can write the following to bind the data to above mentioned controls

Read more

Related Posts:

No comments

Master Pages in ASP.NET 3.5

Introduction

Master Pages allows you to display common content in multiple pages. It easier to maintain, extend and modify your web site with master pages. This post post explains about how to use master pages and different methods of modifying the content in a master page from individual content pages.

You can create a master page in visual studio by selecting the web site menu option, Add new item and selecting the master page item.

Notice that it contains <%@Master %> directive and includes two content place holder controls. The content from the content page appears in the content place holders. You can add as many ContentPlaceHolders to a Master Page as you need.

Note: You can not cache a Master Page with the OutputCache directive and themes can not applied to master page.

Read more

Related Posts:

No comments

JSON vs XML

Introduction

This post explains the JSON Advantages over XML. JSON is more compact. Consider the following XML data

empxml

Read more

Related Posts:

No comments

JSON Fundamentals

Introduction

A new data format which is built on JavaScript is called JavaScript Object Notation[JSON]. It is a lightweight data format based on JavaScript syntax. JSON definitions can be included within JavaScript files. This post speaks about basic syntax of JSON.

It is important to understand the specific syntax for array and object literals before we learn JSON syntax.

Read more

Related Posts:

No comments

Ajax Principles

Introduction

Ajax a new web application model which defines a new user experience to the end user. The following principles makes web application as a good Ajax application.

  • Minimal traffic Ajax applications should send and receive a very little information to and from the web server. Ajax can minimize the traffic between server and client by not sending any unnecessary information and images.
  • Interaction Models Traditional web model uses click and wait for interaction where AJAX uses interface paradigms such as drag-and-drop or double-clicking. Be consistent when using the AJAX models.
  • Conventions Use established conventions for user interaction via page so that there will be a minimal learning curve.

Read more

Related Posts:

No comments

AJAX History

Introduction

This post explains the origins of Ajax, the technologies uses and where the term is originated.Traditional web model requires a full-page load every time new data or new application logic was accessed from the server. In new web 2.0 model only portion of the page is reloads and sends very small amount of data to the client , resulting in a faster and better user user experience.

Open source products are started for development to take the advantage of new model. The following terms terms are evolved during this phase

  • JavaScript remoting
  • Web remote procedure calls
  • Dynamic updating

soon after new term would emerge

AJAX  In Feb 2005, Jesse James Garrett named this model as AJAX. The name is short hand for Asynchronous JavaScript + XML.

The Hidden Frame Technique

The hidden frame technique involved setting up a frame set where one frame was set to a width or  height to 0 pixels, its purpose is to initiate the communication with the server. This hidden frame contains the HTML form with form fields which are filled out by the javascript and submit back to the server. When the frame returned it calls another javascript function to notify the calling page that data has been returned. This technique represented as first asynchronous request\response model for web applications.

Iframes

In 1997, Iframe element was introduced in HTML 4.0. Instead of defining framesets developers can now simply place their invisible iframes on web page to enable client-server communication. DOM was introduced to create iframes dynamically and receive response all with out including any HTML on the page.

XMLHttp

In 2001, Microsoft has introduced XMLHttp in the form of Activex object to enable the client-server interaction. It is an adhoc HTTP request that controlled from JavaScript. Developers had an access to HTTP status codes, headers and data returned from the server.

AJAX

What Ajax really is? It is an approach to web interaction which involves transmitting of small amount of information to and from the server in order to give the user a better response from the server.

AJax

In traditional web application model where the browser itself is responsible for initiating the requests to, processing the requests from the web server.

In Ajax model Ajax engine does all the request processing. The request is done asynchronously, meaning that code execution doesn’t wait for a response before continuing.


Share this post :

Related Posts:

No comments

Using the ASP.NET SiteMapPath Control

Introduction

ASP.NET Navigation controls uses SiteMapPath control to retrieve the navigation information on the website. A SiteMap represent the relationship between the pages in an application. Site Maps Use the Provider Data model. This post explains about default XML Site Map provider, which enables you to store a Site Map in an XML file.

Site Map file contains <siteMpNode> elements. You declare a SiteMapPath control on page and it automatically uses the web.sitemap file located in the root directory.

Add a sitepath control to your we page. You do not need to add to every page in your web site, If you add a SiteMapPath control to a master page then you can display the control automatically on every page.

Read more

Related Posts:

2 comments

Software Architecture Styles

Introduction

An Architecture style is a set of principles which you can use to build a system Typically Architecture styles depends on their focusing areas. Implementing the software architecture styles depends on the capacity of your organization for implementing it and infrastructure constraints. This post explains which architecture style is to use based on demands.

Architecture Styles

We typically combine multiple styles to define a complete architecture. For example layered architecture can be used with component-based, object-oriented or SOA styles.

The following are the list of commonly used software architecture styles

Client\Server

   Consider this style if 

  • The application is Server based and support multiple clients.
  • You are creating Web based applications exposed through browser.
  • You want to centralize data storage, backup and management functions.

Read more

Related Posts:

  • No Related Posts
No comments

Application Architecture for .NET Applications – Part2

Introduction

Software Architecture can be described as structure of system, where system represents the collection of components that accomplish a set of functions. This post explains the key design principles for software architecture.

arch 

The above picture shows you  the common application architecture and different components in the system and how they work together.

Read more

Related Posts:

1 comment

Application Architecture for .NET Applications – Part1

Introduction

This Article series helps the .NET developers and architects to design the effective applications on .NET latest technologies. There are so many articles,books on application architecture but it is still challenging for developers to understand best practices, principles for the application design.

This post speaks about the fundamentals concepts of Application Architecture and principles.

What is Application Architecture?

Defining a solution which meets all technical and operational requirements by optimizing performance,security and manageability.

Read more

Related Posts:

No comments