<telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True">
</telerik:RadScriptManager>
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="list1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="Label1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>
<asp:Panel ID="Panel1" runat="server">
<asp:DropDownList ID="list1" runat="server" AutoPostBack="true" OnSelectedIndexChanged="list1_SelectedIndexChanged">
<asp:ListItem Text="ENG" Value="0"></asp:ListItem>
<asp:ListItem Text="AUS" Value="1"></asp:ListItem>
<asp:ListItem Text="SA" Value="2"></asp:ListItem>
</asp:DropDownList>
<asp:Label ID="Label1" runat="server" Text="CurrentDate"></asp:Label>
</asp:Panel>
On the Code behind:
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack)
{
GetLatestDate();
}
}
public void GetLatestDate()
{
Label1.Text =
DateTime.Now.ToString();
}
protected void list1_SelectedIndexChanged(object sender, EventArgs e)
{
GetLatestDate();
}
}