Posts

Showing posts from 2018

How to pass multiple value for particular QueryString in asp.net ?

In this article, I will show you how to pass multiple values for  particular QueryString in asp.net. Some scenario we need to pass multiple values for a single Query string to filter Gridview.  Let's suppose we are developing an E-commerce website and it has multiple criteria for filter product like Brand, Price, Color etc checkbox list, and it also has multiple values. so we want filtered data in Gridview based on the checked value of each specification (brand, Price, Color etc). There is sample code how can we join these selected value and  pass into the Query string . For example point of view i am generating URL with Query String, you can change it as per your Requirement protected void Button1_Click(object sender, EventArgs e) { ArrayList brandarray = new ArrayList(); brandarray.Add("Samsung"); brandarray.Add("Apple"); brandarray.Add("Motorola"); brandarray.Add("Vivo"); string...