Hey there,
Try this:
change your
a
elements to this.
<a id="aCat" href="default.aspx?cat=shoes" runat="server">Choose Category</a>
<a id="aArea" href="default.aspx?area=california" runat="server">Choose Area</a>
and on
Page_Load
event of the page, add this code, it will add
cat
QueryString to the second link when first link is clicked, if its not already added.
and I suppose that
default.aspx
is the same page where your links exist:
if (Request.QueryString["cat"] != null)
{
if (!aArea.HRef.Contains("cat="))
{
aArea.HRef = aArea.HRef + "&cat=" + Request.QueryString["cat"].ToString();
}
}
Hope this is what you were looking for, do let me know if it works for you.
Azee...