I have the following url:
localhost:1088/Web_Market/A/Sport.aspx
It is stored in a string, as below:
string str = "localhost:1088/Web_Market/A/Sport.aspx"
How can I edit the string so it returns the following?
localhost:1088/Web_Market/A/
The full path without the Sport.aspx