User-1174608757 posted
Hi JagjitSingh
According to your description,I have made a sample here.I suggest you to use LastIndexOf("/") to get the index of the last occurrence within the entire,then you can use .substring( ) to intercept the string from the index you get .Here is
the code ,I hope it can help you.
lastindex.aspx.cs:
public partial class lastindex : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string s = "http://localhost/Excel.txt";
string s1 = s.Substring(s.LastIndexOf("/")+1);
Response.Write(s1);
}
}
You will see :

Best Regards
Wei Zhang