Quote:
Page.ClientScript.RegisterStartupScript(...)
Response.Redirect("frmFm01det.aspx")
RegisterStartupScript
tells the page to output the specified script block when the page is rendered.
Response.Redirect
then tells the page to throw everything away, and send an empty response telling the browser to load a different page.
If you want the script to run, you need to remove the redirection.