I would like to get the RAW url dynamically in my ASP.NET webpage but i cannot figure out how to do it. Something like the dummy code below…
<div id="fb-root">
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<fb:comments href= '<% REQUEST_RAW_URL %>' num_posts="2" width="592"></fb:comments>
</div>
You see i would like to use it in the facebook comments box.
UPDATE: And here is the Url rewrite rule that i use
<add name="Rule1" virtualUrl="^~/temp/(.*)/(.*).aspx"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="~/Directory/page.aspx?ItemID=$1&id=$2&lng=gr"/>
What is the
<fb:comments>...</fb:comments>tag? Is this a server side tag? If so, you need to addrunat="server"to the properties to make it interpreted server-side.Try this: