I am using c#.
I am trying to select the listbox values from the data coming in querystring. Below is 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;
}
}
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.
Please suggest.