I'm assuming you're using ASPX model for your site, is that correct? Are you using URL aliases? If so, then this shouldn't be a problem for documents/pages.
I'd agree 100% with Joshua A although if you're simply using ascx controls and I'd guess you're not inheriting the cmsabstractwebpart. You're most likely using the User Control webpart to display your ascx controls OR using stratight ASPX templates to display the user controls.