Well, the architecture I am going to demonstrate here is just
enhancement of 3-Tier archicture. In this architecture; you no need of
writing long function parameters throughout the layers (as in
traditionally 3-Tier archicture has to) and the actual objects of the
application will be in a separate tier so that in future you can
separately use these objects for enhancements. Change in the object
definition can be done without touching the entire Business Access
Layers ............
Let me explain you step-wise process of creatioin of 4-Tier architecture application.
In this application, I am going to take example of a Person that
will have 3 properties: FirstName, LastName, Age. We will create a
separate pages to insert these records (default.aspx) into database and
list,update,delete records (list.aspx) from database.
Showing posts with label Source code. Show all posts
Showing posts with label Source code. Show all posts
Tuesday, August 24, 2010
4-Tier Architecture in ASP.NET with C#
Labels:
.NET,
ASP.NET,
C#,
Design Patterns,
MVC,
Source code,
Tips and Tricks
Tuesday, August 17, 2010
Adding Markers to a Map Using the Google Maps API and jQuery
The Google Maps API provides a sophisticated way for developers and
webmasters to add custom interactive maps to their websites. Version 3 of
the API, released in May of 2009, represents a complete overhaul of the API
in response to several years worth of user feedback on the previous
version.
In this tutorial we’ll cover a few of the API’s simpler features by
showing you how to add a map with a set of location markers to a website.
Each marker will have an associated info bubble with the name and address of
the location. What’s more, we’ll be loading the location data via Ajax, so
this can be used as the first step towards developing a more sophisticated
map-based application.
Labels:
Ajax,
JavaScript,
JQuery,
Source code,
Tips and Tricks
Friday, July 30, 2010
Deleting Rows Duplicate when the table doesn’t have a primary key
Were you ever in need of something like, deleting duplicate rows when the table doesn’t have a primary key. If yes, read on!
This article gives a quick way of deleting duplicate records from a given table, that doesn’t have a primary key. Also, we will NOT use cursors, loops, temporary tables (global or local) but still accomplish the mission. Interesting! isn't it. Please read on!
First lets create a simple table with two columns and name the table as ‘DeleteDupsTable’.
Friday, July 23, 2010
Accessing Webservice by using Sys.Net.WebRequest
Introduction
Let us understand what is Sys.Net.WebRequest. WebRequest is the abstract base class for the .NET Framework's request/response model for accessing data from the Internet. An application that uses the request/response model can request data from the Internet in a protocol-agnostic manner, in which the application works with instances of the WebRequest class while protocol-specific descendant classes carry out the details of the request.
Requests are sent from an application to a particular URI, such
as a Web page on a server. The URI determines the proper descendant
class to create from a list of WebRequest descendants registered for the application. WebRequest
descendants are typically registered to handle a specific protocol,
such as HTTP or FTP, but can be registered to handle a request to a
specific server or path on a server.
WebRequest Class throws an exception when error occurs. The Status is the property of WebExceptionStatus.
Thursday, July 15, 2010
ASP.NET databinding in an MVP design using the ObjectContainerDatasource
How to utilize the ObjectContainerDatasource from the Web Client Software Factory to perform databinding while maintaining an MVP architecture. Samples are provided for Entity Framework, LINQ to SQL, and ADO.NET.
Introduction
As developers, I imagine, most of us strive toward these two goals:- Write better code.
- Write less code.
Subscribe to:
Posts (Atom)
