tag:blogger.com,1999:blog-1184844056172696501.post1663886001855577953..comments2024-02-06T13:00:04.036+01:00Comments on Dynamics CRM Tools: SiteMap, IFD/OnPremise and relative URLsTanguyhttp://www.blogger.com/profile/11346655744554013623noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-1184844056172696501.post-87432372178417752662009-09-23T09:20:14.595+02:002009-09-23T09:20:14.595+02:00Well, some of my customers use both IFD and OnPrem...Well, some of my customers use both IFD and OnPremise accessing computer with DNS alias, so they always use an URL containing organization name...<br /><br />In this case, you can't know if you are in IFD or OnPremise.<br /><br />Moreover, it seems simpliest (at least to me) to use a property in code behind like I propose than replacing each potential control URL (image source, stylesheet and script file reference) in code behind or even in embedded javascript.Tanguyhttps://www.blogger.com/profile/11346655744554013623noreply@blogger.comtag:blogger.com,1999:blog-1184844056172696501.post-23770109584910536712009-09-22T15:36:39.068+02:002009-09-22T15:36:39.068+02:00oh forget !
it's work in javascript too , wit...oh forget !<br /><br />it's work in javascript too , with the "ORG_UNIQUE_NAME" and document.location object.Unknownhttps://www.blogger.com/profile/10648855368244300556noreply@blogger.comtag:blogger.com,1999:blog-1184844056172696501.post-20342759557749917562009-09-22T15:32:34.676+02:002009-09-22T15:32:34.676+02:00i don't understand why with the absolute URL w...i don't understand why with the absolute URL we have to worry about changing environments.<br />Because we have the Orgname in parameter.<br /><br />Like this : <br /> sOrganisation = Request.QueryString["orgname"];<br /> if (Request.Url.AbsoluteUri.Contains(sOrganisation))<br /> {<br /> //IFD<br /> }<br /> else<br /> {<br /> //OnPremise<br /> }Unknownhttps://www.blogger.com/profile/10648855368244300556noreply@blogger.com