How to select the listbox using querystring in c#
<p>I am using c#.</p>

<p>I am trying to select the listbox values from the data coming in querystring. Below is code.</p>

<pre><code>if (!string.IsNullOrEmpty(Security.GetString(Page.Request.Params["VT"])))
        {            
            string[] strCntVisit = Security.GetString(Page.Request.Params["VT"]).Split(',');

            foreach (string i in strCntVisit)
            {
                lstContriesVisited1.SelectedValue = i;

            }                
        }
</code></pre>

<p>my problem is that the above code is traversing perfectly, however the issue is that in my listbox my last value of (i) is selected not all the values in querystring.</p>

<p>Please suggest.</p>
