Here is a little more detail after working a few things out. I am trying to accomplish running a javascript include after a Button click in a User Control when an update occurs on an UpdatePanel.
In the OnClick event code, I have something like this:
// Run script after event
StringBuilder sb = new StringBuilder();
// this works
sb.Append("<script type='text/javascript'>alert('x');</script>");
// this does not
// sb.Append("<script type='text/javascript' src='script.js'>doThis();</script>");
if(!Page.ClientScript.IsStartupScriptRegistered(GetType(), "script"))
{
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "script", sb.ToString(), false);
}
So I am able to register the dummy alert script but the include does not run, or does not appear to. I thought about it being a path issue but I resorted to dropping copies in the base Page, user control, and masterpage directories to no avail.
Some day I'll be able to answer more questions than I ask.