I want to format a URL to go back one directory. The code I have currently is formatting the URL like this http://localhost/contoso/place/category/florida-beach.aspx. But I want the links to be like http://localhost/contoso/category/good-beach.aspx. My current dir is http://localhost/contoso/place/ . So I need to go back one dir.
Thanks,
Here is my code.
foreach (SelectPlaceCategoriesResult category in placeCategories)
{
placeCategoriesStr.Append("<a href=category\"); \\"
placeCategoriesStr.Append(category.Titulo.Trim().ToLower());
placeCategoriesStr.Append(".aspx >");
placeCategoriesStr.Append(category.Nombre.Trim());
placeCategoriesStr.Append("</a>, ");
}