I have the following example page structure:
If I call Server.Execute(\"Script.aspx\") from Webpa
Server.Execute(\"Script.aspx\")
HttpRequest.FilePath will return the URL to the page requested, which you can then do a substring match on for "Script.aspx".
HttpRequest.FilePath
(Take this answer with a huge grain of salt though, my .Net is pretty poor.)