I get my url using Uri like this:
Uri requestUri = Context.Request.Url;
and my url is something like this
http://localhost:1597/Pages/BSC/pe_Rep.aspx?BSCID=27
I want to get only last part of url, I want toi get only digits after sign =
so I want to get only value 27
I try to do it using Replace like:
var BSCID = requestUri.Replace("http://localhost:1597/Pages/BSC/pe_Rep.aspx?BSCID=", "");
But is like I can´t use url with Replace, can anyone help me how can I achieve this please?