ASP.NET AJAX Videos & Tutorials (155)

ASP.NET AJAX Videos & Tutorials (155)
Here's the list of ASP.NET Videos.

Written by JoeStagner :)

Introduction to ASP.NET Ajax History
Use Script Combining to Improve Performance
Get Started with ASP.NET AJAX
Implement Dynamic Partial-Page Updates with ASP.NET AJAX
Make Client-Side Network Callbacks with ASP.NET AJAX
Add ASP.NET AJAX Features to an Existing App
ASP.NET AJAX Enable an Existing Web Service
Use the ASP.NET AJAX Client Library Controls
Use an ASP.NET AJAX ScriptManagerProxy
Use the RoundedCorners Extender
Use the ASP.NET AJAX Timer Control
Implement the Predictive Fetch Pattern for AJAX
Implement the AJAX Paging Pattern
Implement the Incremental Page Display Pattern
Incremental Page Display Pattern (GET and POST)
Use the UpdateProgress Control
Use the ASP.NET AJAX History Control
Implement the AJAX After Processing Pattern
Update Multiple Regions of a Page with ASP.NET AJAX
Choose Between Methods of AJAX Page Updates
Use Other JavaScript UI Libraries with ASP.NET AJAX
Use the ASP.NET AJAX Profile Services
Debug ASP.NET AJAX Applications Using Visual Studio 2005
Customize Error Handling for the UpdatePanel
Use ASP.NET AJAX Client Templates
Build a Custom ASP.NET AJAX Server Control
Use JavaScript to Refresh an ASP.NET AJAX UpdatePanel
Determine an Asynchronous Postback
Use the Conditional UpdateMode of the UpdatePanel
Persistent Comm Pattern (UpdatePanel)
Localize an ASP.NET AJAX Application
Persistent Comm Pattern (Web Services)
Trigger an UpdatePanel Refresh from a DropDownList
Create an ASP.NET AJAX Extender from Scratch
Custom Server Controls that Work With/Without AJAX
Associate AJAX Client Behavior with a Server Control
Retrieve Values From Server Side AJAX Controls
Techniques for Triggering Updates to Update Panels
Use Cascading Drop Down Control to Access a Database
Implement Infinite Data Patterns in AJAX
Basic ASP.NET Auth in an AJAX Enabled App
Dynamically Change CSS Using the UpdatePanel
Dynamically Add Controls to a Web Page
Set Up Your Development Environment for ASP.NET 3.5
Set Up Your Development Environment for ASP.NET 2.0
Partial Page Updates
UpdatePanel Triggers
Authentication & Profile Application Services
Web Services
Debugging Capabilities

ASP.NET AJAX Control Toolkit Videos

Get Started with the ASP.NET AJAX Control Toolkit
CascadingDropDown Control Extender
TextBoxWatermark Control Extender
Popup Control Extender
ModalPopup Extender Control
AlwaysVisible Control Extender
Accordion Control
Collapsable Panel Extender
Draggable Panel Extender
DynamicPopulate Extender
FilteredTextbox Extender
HoverMenu Extender
ToggleButton Extender
DropShadow Extender
PasswordStrength Extender
Animation Extender Control
ConfirmButton Extender
Slider Control
AutoComplete Control
Configure the Calendar Control
DropDown Control
MaskedEdit Controls
MutuallyExclusive Checkbox Extender
NoBot Control
ListSearch Extender
PagingBulletedList Extender Control
NumericUpDown Extender Control
ValidatorCallout Extender
ResizableControl Extender
Tabs Control
SlideShow Extender
UpdatePanel Animation Extender
Reorder Control
Rating Control
Control Extenders
Color Picker
Combo Box
Editor Control
Editor Control Custom
Create a New Custom Extender

ASP.NET AJAX Control Toolkit Tutorials

Databinding to an Accordion
Dynamically Adding An Accordion Pane
Adding Animation to a Control
Executing Several Animations at The Same Time
Executing Several Animations after Each Other
Animation Depending On a Condition
Picking One Animation Out Of a List
Animating in Response To User Interaction
Disabling Actions during Animation
Triggering an Animation in another Control
Modifying Animations From The Server Side
Executing Animations Using Client-Side Code
Changing an Animation Using Client-Side Code
Filling a List Using CascadingDropDown
Using CascadingDropDown with a Database
Presetting List Entries with CascadingDropDown
Using Auto-Postback with CascadingDropDown
Collapsing and Expanding a Panel from JavaScript
Using a ConfirmButton In a Repeater
Adjusting the Z-Index of a DropShadow
Manipulating DropShadow Properties from Client Code
Dynamically Populating a Control
Dynamically Populating a Control Using JavaScript Code
Using DynamicPopulate with a User Control And JavaScript
Allowing Only Certain Characters in a Text Box
Using HoverMenu with a Repeater Control
Launching a Modal Popup Window from Server Code
Using ModalPopup with a Repeater Control
Handling Postbacks from a ModalPopup
Positioning a ModalPopup
Creating Mutually Exclusive Checkboxes
Fighting Bots
Creating a Numeric Up/Down Control with a Web Service Backend
Testing the Strength of a Password
Using Multiple Popup Controls
Handling Postbacks from A Popup Control With UpdatePanel
Handling Postbacks from A Popup Control Without UpdatePanel
Creating a Rating Control
Using Postbacks with ReorderList
Drag and Drop via ReorderList
Databinding the Slider Control
Using the Slider Control With Auto-Postback
Using TextBoxWatermark in a FormView
TextBoxWatermark With Validation Controls
Animating an UpdatePanel Control
Controlling UpdatePanel Animations
Get Started with the AJAX Control Toolkit
Using AJAX Control Toolkit Controls and Control Extenders
Creating a Custom AJAX Control Toolkit Control Extender
How do I use the HTML Editor Control?
Using the ColorPicker Control Extender
How do I use the ComboBox Control?

Source: http://www.msjoe.com/2011/02/asp-net-ajax-videos-tutorials-155/


The Web Forms Events Model

The Web Forms Events Model



Because of the disconnected nature of the Web, the events raised in ASP.NET Web Forms function differently from events in standard Windows GUI applications.

This is because the events are fired within the client browser but are transferred to the web server via an HTTP POST. There they are handled by the ASP.NET page framework.

The ability of the ASP.NET runtime server engine to handle events raised on the client significantly simplifies the development of interactive web applications. You develop your event-handling routines in the same way as you do in Windows Forms applications.

Because the server is remote (and events need a round trip to the server), the performance of event handling suffers.
Many mouse-moving events, which have to tie into server code, are not practical in a web model. So the number of built-in events on offer is limited.

However, server controls generally offer an event to signal that their contents have changed. For instance, TextBox has a TextChanged event and CheckBox has a CheckChanged event.

The handling of these events is postponed until the next round trip to the server. The specific part of the event-management model where events are captured on the client and are sent together to the server via a single HTTP POST is called the postback event model.

Some higher-level events are raised by ASP.NET. These include session events and application events.

The user-session events are Start, indicating the start of an application session, and End, meaning the end or timeout of a session.

The Application object offers many public events such as BeginRequest and EndRequest, indicating the start and the end of an HTTP request associated with a web application.

Handlers for the session and application events are coded in the Global.asax page.


Application Settings in WPF

Application Settings in WPF

The Settings can have any type of information which we require to store somewhere and later on we can use it.  It's similar to Session Technics in Web Development.  We can store some information in settings and we can also change the same, even at run-time.

Consider Settings as some centralized storage location.

Basically, Settings have 4 Properties:

1.  Name   (Name of the Setting)

2.  Type   (Data Type of the Setting)

3.  Value   (The information which will get store in Setting)

4.  Scope  (User or Application)

The bit confusing thing over here is a property called Scope.  Scope has two option as User or Application.  I'll try to describe the same in similar way,

User - The Session is restricted to the User

Application -  The Session is restricted to the Application

OK, good enough.  But is there any difference between this too?? Can be asked somewhere in interviews!!! Huh!!

Yes, User settings are read/write while Application Settings are read-only.  (aah!! now what is this!!!)

User Settings can be access or modify while your application is running (run-time).  When you modify the User Settings, it will get saved by the application and immediate affect will be taken place.

Application Settings are read-only means that you can't change the value of Application Settings at run-time.  You will to change the same at design-time.

Woh Woh!! enough of theory, now let's go and do some hands-on guys!!

So, How to create Settings (Application or User):

Note: I am using Visual Studio 2010 and VB.NET as Language

1.  Go to the Solution Explorer

2.  Double-click My Project

3.  Go to the Settings tab

Note : You will not find the same value appears here as in your Settings tab.  ( I have updated the Settings file for me )

4.  Change the settings as been seen in above picture.

5.  Go to your XAML file and paste the below code :

<Window x:Class="MainWindow"
Title="MainWindow" Height="350" Width="525">
<ListBox Margin="15,15,0,0" Name="listBox1" Height="78"
HorizontalAlignment="Left" VerticalAlignment="Top" Width="107">
<ListBoxItem>New York</ListBoxItem>
<Button Margin="15,106,110,130" Name="button1">Change User City</Button>
<TextBlock Height="23" HorizontalAlignment="Left" Margin="136,15,0,0" Name="TextBlock1" Text="TextBlock" VerticalAlignment="Top" />

6.  Go to your source-code file and paste the below code :

VB.NET Code :

Class MainWindow
    Dim astring As String
    Public Sub New()


        Me.Title = My.Settings.UserName
        TextBlock1.Text = "Previously Selected City " + My.Settings.UserCity

    End Sub

    Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles button1.Click

        If Not listBox1.SelectedItem Is Nothing Then
            TextBlock1.Text = "Previously Selected City " + astring
            astring = CType(listBox1.SelectedItem, ListBoxItem).Content.ToString
            My.Settings.UserCity = astring
        End If
    End Sub
End Class

C#.NET Code :

Class MainWindow
string astring;

public MainWindow()

this.Title = My.Settings.UserName;
TextBlock1.Text = "Previously Selected City " + My.Settings.UserCity;


private void  // ERROR: Handles clauses are not supported in C#
button1_Click(System.Object sender, System.Windows.RoutedEventArgs e)
if ((listBox1.SelectedItem != null)) {
TextBlock1.Text = "Previously Selected City " + astring;
astring = ((ListBoxItem)listBox1.SelectedItem).Content.ToString;
My.Settings.UserCity = astring;

7.  Press F5 to run the application :

8.  Now click on New York and Press Change User City button:

9.  Now close the application.

10.  Again press F5 and run the application.

Thanks and Have Fun!!!!!


Routed Events in WPF

Routed Events in WPF
The main thing we should take care in Routed Events is about control's hierarchy.  In WPF, a typical example of control's hierarchy is root level Window object, than Grid object and then the other controls which are resides on Grid Control.

The concept of Routed Events comes into the picture when we want to handle an event, that is originated from some other control in the hierarchy.  Say for example if any user clicks the Button control, that event which is normally a Button_click event, can be raised by The Button, The Label, The Gird or The Window.

Types of Routed Events :

  1. Direct Events

  2. Bubbling Events

  3. Tunneling Events

1.  Direct Events :

Direct Events are very well known to .NET people who has worked on standard .NET controls.  A direct event get raised by the control itself.  Say for example Button_click event which got raised by the Button control itself.

2.  Bubbling Events :

Bubbling events are first raised by the control and then are raised by the controls in that control's hierarchy.  Taking our Button control example, If Button is clicked, first it will raise Button_click event, then the Grid event and at last the Window Event.

The below picture will clear all your doubts:


3.  Tunneling Events :

The Tunneling Events are the opposite of the bubbling events as they are raised first by the root element in the hierarchy and then by the child elements.  Same as our previous example, First Window event will get raised, followed by the Grid Event and at last the Button_click event.


Let's take an example of the same to understand it better:

1.  Open Visual Studio 2010 (I have VS 2010, you may use 2010 or whichever the version you have)

2.  Create new WPF Application (I'm using VB.NET as the language)

3.  Add a simple Text Box to the designer window.

4.  Paste the below XAML Code to your Window:

<Window x:Class="MainWindow"
Title="MainWindow" Height="350" Width="525"
<Grid TextBoxBase.TextChanged="Grid_TextChanged">
<TextBox Height="23" HorizontalAlignment="Left" Margin="10,10,0,0" Name="TextBox1" VerticalAlignment="Top" Width="120" TextChanged="TextBox1_TextChanged"/>

5.  Paste the below VB.NET Code to your source code file.

Class MainWindow 

    Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.Windows.Controls.TextChangedEventArgs)
        MessageBox.Show("Event Raised By TextBox")

    End Sub

    Private Sub Grid_TextChanged(ByVal sender As System.Object, ByVal e As System.Windows.Controls.TextChangedEventArgs)
        MessageBox.Show("Event Raised By Grid")

    End Sub

    Private Sub Window_TextChanged(ByVal sender As System.Object, ByVal e As System.Windows.Controls.TextChangedEventArgs)
        MessageBox.Show("Event Raised By Window")

    End Sub
End Class

6.  Press F5 to run.

7.  Write something into the Text Box.

Thanks & Have Fun!!

Error : Unable to determine application identity of the caller (Tips & Tricks)

Error : Unable to determine application identity of the caller (Tips &
Hi Frds,

This is just a part of Tips & Tricks you can use :)

I was trying to store some data in Isolated Storage through an ASP.NET Web Page.

I have used the below code,

Using isoStore = IsolatedStorageFile.GetUserStoreForApplication()

This particular line of code was giving me below error :(

Error : Unable to determine application identity of the caller

But luckily, before I go in deep and try to fight with this error, I got the solution :)
Application scoped isolated storage is only available if your program is running as a ClickOnce application. If it is not, you'll get an IsolatedStorageException when you call GetUserStoreForApplication which says "Unable to determine the application identity of the caller.

So now, instead of using above code, change your code as per below to make your application work :)

Dim isoStore As IsolatedStorageFile

isoStore = IsolatedStorageFile.GetStore(IsolatedStorageScope.User Or _           IsolatedStorageScope.Assembly Or IsolatedStorageScope.Domain, Nothing, Nothing)

Thanks Frds!! Hav fun!! :)


Feb 2nd Links: Visual Studio, ASP.NET, ASP.NET MVC, JQuery, Windows Phone

Feb 2nd Links: Visual Studio, ASP.NET, ASP.NET MVC, JQuery, Windows
Below are some of the nice links from Scott which will help you to increase your knowledge.

Community News

Visual Studio

  • HTML5 and CSS3 in VS 2010 SP1: Good post from the Visual Studio web tools team that talks about the new support coming in VS 2010 SP1 for HTML5 and CSS3.

  • VsVim Update Released: Jared posts about the latest update of his VsVim extension for Visual Studio 2010.  This free extension enables VIM based key-bindings within VS.



  • Razor View Converter: Free, automated tool from Terlik that can convert existing .aspx view templates to Razor view templates.

  • ASP.NET MVC 3 Internationalization: Nadeem has a great post that talks about a variety of techniques you can use to enable Globalization and Localization within your ASP.NET MVC 3 applications.

ASP.NET and jQuery

Windows Phone 7

Links to Scott's “Best of 2010” Posts

Links to Scott's “Best of 2010” Posts
Below is a quick listing of some of Scott's favorite posts organized by topic area:

VS 2010 and .NET 4

Below is a series of posts Scott wrote (some in late 2009) about the VS 2010 and .NET 4 (including ASP.NET 4 and WPF 4) release they shipped in April:

Visual Studio

Below are some additional Visual Studio posts that Scott has done (not in the first series above) that he thought were nice:


They shipped Silverlight 4 in April, and announced Silverlight 5 the beginning of December:

Silverlight for Windows Phone 7

We shipped Windows Phone 7 this fall and shipped free Visual Studio development tools with great Silverlight and XNA support in September:


They shipped ASP.NET MVC 2 in March, and started previewing ASP.NET MVC 3 this summer.  ASP.NET MVC 3 will RTM in less than 2 weeks from today:

IIS and Web Server Stack

The IIS and Web Stack teams have made a bunch of great improvements to the core web server this year:

EF Code First

EF Code First is a really nice new data option that enables a very clean code-oriented data workflow:

jQuery and AJAX Contributions

Scott's team began making some significant source code contributions to the jQuery project this year:

Patches and Hot Fixes

Some useful fixes you can download prior to VS 2010 SP1:

Videos of My Talks

Some recordings of technical talks Scott has done this year:


Free Ebook – Silverlight for Windows Phone

Free Ebook – Silverlight for Windows Phone
Here is a Free ebook “Silverlight for Windows Phone” written by Puja Pramudya from Microsoft Innovation Center, Indonesia. This e-book is written for those who want to get to know, use, and develop applications forWindows Phone, Microsoft’s latest mobile platform. Of course, it would be naive to consider that this e-book covers the topic about Windows Phone entirely, but it can undoubtedly give you a good basic to learn.

Free EBook Silverlight for Windows Phone

In this e-book you will not find topics that require advanced hardware supports such as multi-touch or FM, because this e-book is written based on the available emulator.