i have a java script by name showLoadingIco()
i need to call this javascript when the button click
i have used this but its calling after the functionalites
protected void showLoadingIco()
{
ScriptManager.RegisterStartupScript(this.Page, typeof(Page), Guid.NewGuid().ToString(), "showLoadingIco();", true);
}
protected void upload_btn_Click(object sender, EventArgs e)
{
showLoadingIco();
try{
}
catch{
}
}
showLoadingIco();must be called before executing the try block.where i need to place the method