ASP.NET: how to get a reference to page "B" from page "A" codebehind?
- by Keith Myers
I'm trying to call ScriptManager.RegisterStartupScript from page "A" so that when page "B" loads it displays an alert, but can't figure out how to get a reference to page "B" to satisfy the Control argument in the method call.
I figure there's got to be something similar to Page.FindControl() that does this, but I'm stuck...