Clearing UrlData
In a partial asp.net page I have a menu that create links with a foreach statement, which sends the user to another page like this:

    <a href="Products/@category.CategoryName">@category.CategoryName</a>

In the Products page I pick up the category chosen by the user in the variable UrlData[0].

It works exactly like I want it to, but only the first time a link is clicked. The rest of the time UrlData is just being added to the current url, which mess up the UrlData used for retrieving the right products.

Obviously I need some way of clearing the UrlData for this code to work properly.

Any help is appreciated.

Clearing UrlData
===

In a partial asp.net page I have a menu that create links with a foreach statement, which sends the user to another page like this:

    <a href="Products/@category.CategoryName">@category.CategoryName</a>

In the Products page I pick up the category chosen by the user in the variable UrlData[0].

It works exactly like I want it to, but only the first time a link is clicked. The rest of the time UrlData is just being added to the current url, which mess up the UrlData used for retrieving the right products.

Obviously I need some way of clearing the UrlData for this code to work properly.

Any help is appreciated.
