Microsoft
Software
Hardware
Network
Question : How do I retain the parameters in a URL ASP.NET / Visual Studio
I have this query string.
http://localhost:52392/wet
suits/sear
chResults.
aspx?produ
ct=1
I want to retain the parameters so each time I click on a new navigation item, the query string builds up the parameters instead of change them.
eg.
click brand
http://localhost:52392/wet
suits/sear
chResults.
aspx?produ
ct=1&
brand
=2
then click season
http://localhost:52392/wet
suits/sear
chResults.
aspx?produ
ct=1&
brand
=2&season=
1
I can do this......
<a class="nav" href="<%# Request.Url %>&season=<%# Eval("id") %>"><asp:Label ID="seasonLabel" runat="server" Text='<%# Eval("season") %>' /></a>
but when the page gets posted back then if i click 'season' again I get two season in the URL.
i need some kind of IF on the page the says if the 'season' parameter is there then ignore it in the a href.....
help!
Answer : How do I retain the parameters in a URL ASP.NET / Visual Studio
if request.querystring("seaso
n") = ""
Random Solutions
Importing Custom Exchange Public Folder Data into Access 2007 table
get wrong autodiscover server in warning message....
C# WMI query for getting current logged on user doesn't work on Windows 7
Open file Security Message
Looking for Video Recording Software for Samsung Cameras
Database Driven Website
how to load ipt_REDIRECT.ko
SSIS Case Statement not executing
sum by date and variable (horizontal)
Problem with autodiscover with Outlook 2007/Exchange 2003