I'm having a bit of trouble with some strings I am using after rewriting my Url.
My url is here: http://www.johnepiscopomagic.co.uk/Warwickshire-Magician/Magician-Warwick
In the above example, Warwickshire is the county and Warwick is the town. I'm referring to these in my query string and am assigning the relevant town/ county to strings in my code behind in order for me to populate labels in page text.
The problem I'm having is that the labels in my page aren't being updated like 'Warwickshire' or 'Warwick, but as 'Warwickshire-Magician' or 'Magician-Warwick'. You can see in the above example that this is making my text not make sense at all. I want to get rid of the 'Magician-' text so I am just left with the town/ county name.
My code behind is as follows:
public partial class Magician : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
if (Request.QueryString["town"] == null)
View Complete Post