Hi,
See my earliar post on the same.
We oftenly handle the onLoad event in JS. But the moment we include
To handle this, need is to introduce the load handler in
<asp:ScriptManager ID="scmObjectAssignment" runat="server">
</asp:ScriptManager>
<script language="javascript" type="text/javascript">
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_pageLoaded(pageLoaded);
function pageLoaded(sender, args)
{
var element = window.document.getElementById('lblName');
if(element != null)
{
lblName.style.Display = ‘none’;
}
}
</script>
Thanks & Regards,
Arun Manglick || Senior Tech
No comments:
Post a Comment