Hi Mudassar,
First of all, let me just say "MANY THANKS" to your powerful article located here: http://www.aspsnippets.com/Articles/Filter-ASPNet-GridView-using-DropDownList.aspx
Your code is simple, straightforward and very powerful (especially with the stored procedure piece) :)
I cusstomized your code a bit to fit my requirement and it works great.
I would like to know if you can give me a hint on how to do the following:
My dropdownlist has 10 listitems. 7/10 works fine because they populate data from the db. However, there are 3 listitems that link to external sites and they have nothing to do with the db.
I have something in mind but I am not sure if it works or not. What I have in mind is I need to write some script:
In the web page, I need to use SelectedIndexChanged even
In the code-behind, I need to write something like this:
If listitem value = 'yahoo' then 'www.yahoo.com else if listitem value = 'google' then 'www.google.com else http://www.aspsnippets.com
I checked out your forums and I am very impressed about how quicky you respond to your users. And I appreciate you taking the time to help us.