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
Deploy Printer Drivers to WinXP Computers
Gateway for Server automatically being removed after restart
Builidng a new computer
WCF hosted on IIS: Why doesn't it show me the WCF method name and it's signature?
How do I properly setup "Internet Address" and install SSL certificate in SBS 2008?
Access 2007Nz and nvl functions don't work on report field with a Sum if no records are present
OWA will not work for mailbox in non-internet facing AD site
Dell 1397 Wireless mini-card on Latitude E5500 won't connect to WAP
Service policy is in suspended mode
crystal parameter value to return all values