ServerSideCode:
In PageLoad method:
txtStartDate.Attributes.Add("OnChange", "javascript:return DoPostBack()");
Page.GetPostBackEventReference(txtStartDate);
txtStartDate_TextChanged(object sender, even..)
{
--Code called automatically
}
In Javascript:
function DoPostBack()
{
__doPostBack("txt_sssn_dt", "TextChanged");
}
No comments:
Post a Comment