Hello.
If you want to change content of your control only, this can be done in code-behind of given file. You can get name of current page via
CMS.CMSHelper.CMSContext.CurrentDocument.DocumentName. You can use macros as well. Except of default macro types (Context value, Cookie value,...) you can use
custom macro option, which allows you to call your custom code.
Best Regards,
Radek Macalik