I am on this page of my website:
~/basket.aspx
Here is the file:
~\App_Data\Scriptlets\Custom\Layout\Account.htm
On the top right, there is a button called View Cart. If I am on the basket page, I want to hide this button. If I am on the home page, I want this button visible. How can I test and see if I'm on the basket page?
Code: Select all
<td align="right">
<!-- <a href="~/Default.aspx" class="button" style="display:none;">Start Quote</a> -->
<a href="~/Basket.aspx" class="button">View Cart</a>
#if($customer.IsAnonymous)
<a href="~/Login.aspx" class="button">Login</a>
#else
<a href="~/Members/MyAccount.aspx" class="button">Account</a>
<a href="~/Logout.aspx" class="button">Logout</a>
#end
#if($customer.IsAdmin)
<a href="~/Admin/Default.aspx" class="button">Admin</a>
#end
</td>