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
Replacing Design lost all e-mails in inbox
Full Outer Join for CR
Google Apps Gmail and legacy MS Exchange (SBS) 2003 Synchronisation
Compare Column Names in Tables in Schema A With Column Names in Tables in Schema B.
How to retreive a file from a full Vista backup
groupwise to zimbra migration
MySQL join with Like
Disk Manager doesn't see the ISCSI Virtual Disks but One
Sharepoint error, event id 6481
Unable to create virtual hard disk file on server running Hyper-V