Click here to Skip to main content
16,004,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have some catagoriens in a grid view.. which are shown in hyperlinks..

e.g i have mouse, keyboards e.t.c in catorgiries shown in gridview. when i click on any catagory lets say mouses.. the page will redirct to productcatalog.aspx page showing the mouse of all the brands available..

but the problem is that. its not filtering the products from the mouse catagory.. but showing all the proucts in the database. this is the code iam writing..

ASP
<asp:HyperLinkField DataNavigateUrlFields="CategoryID" 
                    DataNavigateUrlFormatString="~/ProductCatalog.aspx?CategoryID={0}" 
                    DataTextField="CategoryName" HeaderText="Categories" />




now on productcatalog.aspx page how i can filter the products on the bases of querystring
Posted
Updated 23-Aug-11 11:40am
v4
Comments
Dalek Dave 23-Aug-11 17:40pm    
Code Block.

1 solution

You should not filter on the client, but on the server. There is no reason to send data you're not going to use.
 
Share this answer
 
Comments
Dalek Dave 23-Aug-11 17:38pm    
Sage advice!
Sergey Alexandrovich Kryukov 23-Aug-11 18:29pm    
Main and most important idea is given, my 5.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900