ASP.NET: how to get a reference to page "B" from page "A" codebehind?

Posted by Keith Myers on Stack Overflow See other posts from Stack Overflow or by Keith Myers
Published on 2010-04-03T13:53:35Z Indexed on 2010/04/03 14:13 UTC
Read the original article Hit count: 221

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...

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about registerstartupscript