C# 如何在.NET for Facebook中获取页面url/路径的句柄?

C# 如何在.NET for Facebook中获取页面url/路径的句柄?,c#,.net,facebook,C#,.net,Facebook,我必须在我的程序中输入三个不同页面的Facebook代码(videoWall.aspx、videoWallDetail.aspx和get include.aspx)。在标题中,我将使用if语句放置代码并根据需要进行更改,对照页面查看应该使用哪些代码 如何获取页面url或路径或任何我可以用来获取唯一页面的内容 这是我的密码: // if(page = videoWall.aspx) <meta property="og:title" content="Faces of Met

我必须在我的程序中输入三个不同页面的Facebook代码(videoWall.aspx、videoWallDetail.aspx和get include.aspx)。在标题中,我将使用
if
语句放置代码并根据需要进行更改,对照页面查看应该使用哪些代码

如何获取页面url或路径或任何我可以用来获取唯一页面的内容

这是我的密码:

// if(page = videoWall.aspx)
        <meta property="og:title" content="Faces of Metastatic Breast Cancer (MBC) Video Wall" />
        <meta property="og:type" content="cause" />
        <meta property="og:image" content="http://www.facesofmbc.org/images/MBC_Logo.png"/>
        <meta property="og:url" content="http://bit.ly/rkRwzx" />
        <meta property="og:site_name" content="Faces of Metastatic Breast Cancer (MBC)" />
        <meta property="og:description" content="I just viewed the new Faces of Metastatic Breast Cancer (MBC) video wall. For each view, comment or share of the video wall during October, Genentech will donate $1 to MBC initiatives. Watch TODAY!" />
        <meta property="fb:admins" content="653936690"/>
//如果(page=videoWall.aspx)
显然,我知道
如果
不能像那样工作,但这只是我想做的一个例子,然后对其他两个实例重复

提前谢谢

Page.Request.Url.ToString()将显示entrie Url

你可以用

Page.Request.Url.ToString().Split(“?”)[0]若要仅查看反分页…

Page.Request.Url.ToString()将显示entrie Url

你可以用

Page.Request.Url.ToString().Split(“?”)[0]只查看反分页