C# 如何在asp.net中获取没有查询字符串值的url?

C# 如何在asp.net中获取没有查询字符串值的url?,c#,asp.net,C#,Asp.net,如何在asp.net中获取不带查询字符串值的url?Request.url.GetLeftPart(UriParticle.Path)

如何在asp.net中获取不带查询字符串值的url?

Request.url.GetLeftPart(UriParticle.Path)