SyntaxFix
Write A Post
Hire A Developer
Questions
Try the following -
var FullUrl = Request.Url.AbsolutePath.ToString(); var ID = FullUrl.Split('/').Last();