<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: MOSS 2007 WCM Development Part 2 &#8211; Customize Variation Root Landing Logic</title>
	<atom:link href="http://aspnetcoe.wordpress.com/2007/02/09/customize-variation-root-landing-logic/feed/" rel="self" type="application/rss+xml" />
	<link>http://aspnetcoe.wordpress.com/2007/02/09/customize-variation-root-landing-logic/</link>
	<description>Bit by bit towards a better ASP.NET development experience.</description>
	<lastBuildDate>Fri, 30 Oct 2009 17:23:34 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: net2tech</title>
		<link>http://aspnetcoe.wordpress.com/2007/02/09/customize-variation-root-landing-logic/#comment-508</link>
		<dc:creator>net2tech</dc:creator>
		<pubDate>Tue, 16 Jun 2009 21:14:10 +0000</pubDate>
		<guid isPermaLink="false">http://aspnetcoe.wordpress.com/2007/02/09/customize-variation-root-landing-logic/#comment-508</guid>
		<description>Can I use these variations to go to an ASP.NET site from SharePoint? 

Essentially, can I make an ASP.NET site I have as a subsite of SharePoint.</description>
		<content:encoded><![CDATA[<p>Can I use these variations to go to an ASP.NET site from SharePoint? </p>
<p>Essentially, can I make an ASP.NET site I have as a subsite of SharePoint.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://aspnetcoe.wordpress.com/2007/02/09/customize-variation-root-landing-logic/#comment-433</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 11 Sep 2008 17:25:37 +0000</pubDate>
		<guid isPermaLink="false">http://aspnetcoe.wordpress.com/2007/02/09/customize-variation-root-landing-logic/#comment-433</guid>
		<description>Hi,
i have a security problem with my variationrootlandig.ascx.
I have the following code:
string[] browserLanguages = Page.Request.UserLanguages;
if (null != browserLanguages)
{
foreach (string value in browserLanguages)
{
if (value.Contains(”fr-CH”) &#124;&#124; value.Contains(”it-CH”))
{
string[] segments = Page.Request.Url.Segments;
string protocol = String.Empty;
if (Page.Request.IsSecureConnection)
{
protocol = “https://”;
}
else
{
protocol = “http://”;
}
protocol += Page.Request.Url.Host;
int i = 0;
while (segments.Length &gt; i + 2)
{
protocol += segments[i];
i++;
}
matchedUrl = protocol + “CH/Pages/”;
return matchedUrl;

Everything works fine, when the user is authenticated in MOSS. However anonymous users (publishing sites) tries to access the page, he receives an access denied error message. Do you know how I can handle this problem. Even anonymous users should redirect to the CH variation site.

When I return a static Url like:
return matchedUrl = &quot;http://moss/pages/CH/default.aspx&quot; everythin works fine. Why?


Thanks in advanced.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
i have a security problem with my variationrootlandig.ascx.<br />
I have the following code:<br />
string[] browserLanguages = Page.Request.UserLanguages;<br />
if (null != browserLanguages)<br />
{<br />
foreach (string value in browserLanguages)<br />
{<br />
if (value.Contains(”fr-CH”) || value.Contains(”it-CH”))<br />
{<br />
string[] segments = Page.Request.Url.Segments;<br />
string protocol = String.Empty;<br />
if (Page.Request.IsSecureConnection)<br />
{<br />
protocol = “https://”;<br />
}<br />
else<br />
{<br />
protocol = “http://”;<br />
}<br />
protocol += Page.Request.Url.Host;<br />
int i = 0;<br />
while (segments.Length &gt; i + 2)<br />
{<br />
protocol += segments[i];<br />
i++;<br />
}<br />
matchedUrl = protocol + “CH/Pages/”;<br />
return matchedUrl;</p>
<p>Everything works fine, when the user is authenticated in MOSS. However anonymous users (publishing sites) tries to access the page, he receives an access denied error message. Do you know how I can handle this problem. Even anonymous users should redirect to the CH variation site.</p>
<p>When I return a static Url like:<br />
return matchedUrl = &#8220;http://moss/pages/CH/default.aspx&#8221; everythin works fine. Why?</p>
<p>Thanks in advanced.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MidnightMonkey &#187; Microsoft Sharepoint Office Application Developer Exam 70-542</title>
		<link>http://aspnetcoe.wordpress.com/2007/02/09/customize-variation-root-landing-logic/#comment-425</link>
		<dc:creator>MidnightMonkey &#187; Microsoft Sharepoint Office Application Developer Exam 70-542</dc:creator>
		<pubDate>Tue, 22 Jul 2008 15:57:03 +0000</pubDate>
		<guid isPermaLink="false">http://aspnetcoe.wordpress.com/2007/02/09/customize-variation-root-landing-logic/#comment-425</guid>
		<description>[...] knowledge is out there, know the [...]</description>
		<content:encoded><![CDATA[<p>[...] knowledge is out there, know the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aspnetcoe</title>
		<link>http://aspnetcoe.wordpress.com/2007/02/09/customize-variation-root-landing-logic/#comment-367</link>
		<dc:creator>aspnetcoe</dc:creator>
		<pubDate>Mon, 17 Dec 2007 19:00:43 +0000</pubDate>
		<guid isPermaLink="false">http://aspnetcoe.wordpress.com/2007/02/09/customize-variation-root-landing-logic/#comment-367</guid>
		<description>Hi Idetrorce, thanks for your comments.  Could you kindly elaborate?  I am sure your ideas will benefit me and anyone else who might be reading this posting.</description>
		<content:encoded><![CDATA[<p>Hi Idetrorce, thanks for your comments.  Could you kindly elaborate?  I am sure your ideas will benefit me and anyone else who might be reading this posting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Idetrorce</title>
		<link>http://aspnetcoe.wordpress.com/2007/02/09/customize-variation-root-landing-logic/#comment-365</link>
		<dc:creator>Idetrorce</dc:creator>
		<pubDate>Sat, 15 Dec 2007 13:02:02 +0000</pubDate>
		<guid isPermaLink="false">http://aspnetcoe.wordpress.com/2007/02/09/customize-variation-root-landing-logic/#comment-365</guid>
		<description>very interesting, but I don&#039;t agree with you 
Idetrorce</description>
		<content:encoded><![CDATA[<p>very interesting, but I don&#8217;t agree with you<br />
Idetrorce</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aspnetcoe</title>
		<link>http://aspnetcoe.wordpress.com/2007/02/09/customize-variation-root-landing-logic/#comment-104</link>
		<dc:creator>aspnetcoe</dc:creator>
		<pubDate>Fri, 11 May 2007 18:17:21 +0000</pubDate>
		<guid isPermaLink="false">http://aspnetcoe.wordpress.com/2007/02/09/customize-variation-root-landing-logic/#comment-104</guid>
		<description>Hi Michal, please take a look at one of my previous posts and see if it can help you to remove variation labels from the breadcrumb: http://aspnetcoe.wordpress.com/2006/09/28/</description>
		<content:encoded><![CDATA[<p>Hi Michal, please take a look at one of my previous posts and see if it can help you to remove variation labels from the breadcrumb: <a href="http://aspnetcoe.wordpress.com/2006/09/28/" rel="nofollow">http://aspnetcoe.wordpress.com/2006/09/28/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michal</title>
		<link>http://aspnetcoe.wordpress.com/2007/02/09/customize-variation-root-landing-logic/#comment-103</link>
		<dc:creator>Michal</dc:creator>
		<pubDate>Fri, 11 May 2007 17:57:10 +0000</pubDate>
		<guid isPermaLink="false">http://aspnetcoe.wordpress.com/2007/02/09/customize-variation-root-landing-logic/#comment-103</guid>
		<description>How would I remove the &quot;Francais&quot; from the breadcrumb? It appears automatically.</description>
		<content:encoded><![CDATA[<p>How would I remove the &#8220;Francais&#8221; from the breadcrumb? It appears automatically.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Romeo Pruno : MOSS07: Customize Variation Root Landing Logic</title>
		<link>http://aspnetcoe.wordpress.com/2007/02/09/customize-variation-root-landing-logic/#comment-64</link>
		<dc:creator>Romeo Pruno : MOSS07: Customize Variation Root Landing Logic</dc:creator>
		<pubDate>Tue, 10 Apr 2007 16:32:06 +0000</pubDate>
		<guid isPermaLink="false">http://aspnetcoe.wordpress.com/2007/02/09/customize-variation-root-landing-logic/#comment-64</guid>
		<description>[...] post qui!!  Posted: martedì 10 aprile 2007 18.34 by romeo Filed under: [...]</description>
		<content:encoded><![CDATA[<p>[...] post qui!!  Posted: martedì 10 aprile 2007 18.34 by romeo Filed under: [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
