Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

UpdatePanelUserControlTutorial1 Sample

vb/Default.aspx.cs

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Default : System.Web.UI.Page
{
    protected void EmployeeList1_OnSelectedIndexChanged(object sender, EventArgs e)
    {
        if (EmployeeList1.SelectedIndex != -1)
            EmployeeInfo1.EmployeeID = EmployeeList1.EmployeeID;
        else
            EmployeeInfo1.EmployeeID = 0;

        EmployeeInfo1.Update();
    }
}