I am generating a label tag dynamically from code behind which has property of ng-click, this is linked to a function in controller that is in a separate js file. I want to automatically trigger this ng-click event when the page is loaded. I have tried the below with no luck,
Page.ClientScript.RegisterStartupScript(Master.GetType(), f, "document.getElementById('Element').click();", True)
Page.ClientScript.RegisterStartupScript(Master.GetType(), f, "document.getElementById('Element').triggerHandler('click');", True)
Page.ClientScript.RegisterStartupScript(Master.GetType(), f, "document.getElementById('Element').trigger('click');", True)