---------------------------------------------------- <asp:ListBox 选中多个项----------------------------------------------------
<asp:ListBox CssClass="listFrame" ID="lbxCars" runat="server" Height="360px" Width="200px" SelectionMode="Multiple" >
</asp:ListBox>
string strParams= Request.QueryString["column1"].Trim();
string[] arrstrParams= strParams.Split(',');
if (arrstrParams!= null && arrstrParams.Length >0)
{
for (int i=0;i<arrstrParams.Length;i++)
{
string param= arrstrParams[i];
lbxCars.Items.FindByValue(param).Selected =true;
}
}
<asp:ListBox 选中多个项-
最新推荐文章于 2016-03-27 17:31:11 发布