Common_PartialPostback_VBNet\SimplePartialPostback.aspx.vb
' 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. ' Imports Microsoft.VisualBasic Imports System Public Partial Class SimplePartialPostback Inherits System.Web.UI.Page ' Fires when the Get Server Time button is clicked Protected Sub Button1_Click(ByVal sender As Object, ByVal eventArgs As System.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. Dim id As String = ScriptManager1.AsyncPostBackSourceElementID End Sub End Class