Common_PartialPostback_CSharp\SimplePartialPostback.aspx.cs
// Copyright 2011 ESRI // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // You may freely redistribute and use this sample code, with or // without modification, provided you include the original copyright // notice and use restrictions. // // See the use restrictions. // public partial class SimplePartialPostback : System.Web.UI.Page { // Fires when the Get Server Time button is clicked protected void Button1_Click(object sender, System.EventArgs eventArgs) { // Update the server time label text with the current time on the server. Since // the label is in an UpdatePanel, nothing more needs to be done to update the // text on the client asynchronously. Label1.Text = System.DateTime.Now.ToString(); // Get the client id of the control that initiated the partial postback just to // show how this can be done. string id = ScriptManager1.AsyncPostBackSourceElementID; } }