WEBSWAPP
Silverlight
ASP.NET 3.5
ASP.NET 2.0
ASP.NET 1.0
Cascading Lists
AJAX ToolKit
Hierarchies
C#-ListView
C#-GridView
UpdatePanel
In this demo, I start from the
ListView
demo then I add the following features:
AJAX updatepanel: around the ListView.
Client-side event handling of the AJAX UpdatePanel; namely the
PageRequestManager.beginRequest
. By handling this event, I disable the button to prevent the user from submitting the same request twice.
I also handle the
ScriptManager.AsyncPostBackError Event
to trap any exception that happens during an asynchronous postback process. I then suppress the ASP.NET custom error redirect by setting a property named AllowCustomErrorsRedirect="false" on the AJAX ScriptManager control.
After successfully inserting a record, I set the selected record to inserted one. This allows the user to view/edit the record that was just inserted.
I created a TemplatePagerField in which I placed a reset button and handled the
TemplatePagerField.PagerCommand Event
in order to reset the selected items to all records.
AJAX UpdatePanel and AJAX client-side event handling
Suite#:
Address Line 1:
6621 Electronic Drive
Address Line 2:
2nd floor
Location:
Assen , Drenthe , Netherlands
Postal Code:
22151-4302
Address Type:
Shipping
Insert new contact address
Suite#:
Address Line 1:
Address Line 2:
Location:
United States
Canada
United Kingdom
Germany
Netherlands
Sweden
Italy
Alabama
Alaska
American Samoa
Arizona
Arkansas
California
Colorado
Connecticut
Delaware
District of Columbia
Florida
Georgia
Guam
Hawaii
Idaho
Illinois
Indiana
Iowa
Kansas
Kentucky
Louisiana
Maine
Maryland
Massachusetts
Michigan
Minnesota
Mississippi
Missouri
Montana
Nebraska
Nevada
New Hampshire
New Jersey
New Mexico
New York
North Carolina
North Dakota
Northern Mariana Islands
Ohio
Oklahoma
Oregon
Pennsylvania
Puerto Rico
Rohde Island
South Carolina
South Dakota
Tennessee
Texas
Virginia Islands
Washington
West Virginia
Wisconsin
Wyoming
Utah
Vermont
Virginia
Abbeville
Adamsville
Addison
Akron
Alabaster
Cleveland
Birmingham
Montgomery
Mobile
Postal Code:
Address Type:
Primary
Home
Billing
Shipping
Main Office
Source code:
UpdatePanel source code
wucAddressType.ascx
wucCity.ascx