Here is a sample of my JavaScript function :
function NeedToExport()
{
alert('Time to export your data!');
}
Additionally, in my ASP.NET code behind :
Page.ClientScript.RegisterStartupScript(this.GetType(), "ExportKey", "NeedToExport();");
Even though the RegisterStartupScript
function is successfully triggered, my JavaScript function does not execute as expected. For the second parameter, which represents the "Key of the starting script," I am unsure of what value should be used.