100分求支持多列显示、多行选择的下拉框控件(WebForm、.net1.1) 如题,请有此类控件的兄弟支持一下,谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <tr> <td width="25%" align="center" valign="middle" style="HEIGHT: 100px;">会员级别</td> <td width="25%" align="center" valign="middle" ><asp:ListBox ID="jb_txt" SelectionMode="Multiple" runat="server" Width="70px" Height="200px" ></asp:ListBox></td> <td width="25%" align="center" valign="middle" style="HEIGHT: 100px;">访问部门</td> <td width="25%" align="center" valign="middle" ><asp:ListBox ID="bmmanage_txt" SelectionMode="Multiple" runat="server" Width="70px" Height="200px"></asp:ListBox></td> </tr>cs代: jb_txt.DataSource = rs; jb_txt.DataValueField = "jbid"; jb_txt.DataTextField = "jbname"; jb_txt.DataBind(); 赋值: //给jb_txt赋值选择开始 string[] jbidarray= jbid.Split(','); //利用数组 foreach (ListItem temp in jb_txt.Items) { foreach (string temp2 in jbidarray) //如果用for()。则取jbidarray.Length { if (temp.Value == temp2) temp.Selected = true; } } //给jb_txt赋值选择完毕 //取jb_txt值 string haostr = ""; foreach (ListItem temp in jb_txt.Items) { if (temp.Selected) haostr += temp.Value + "," ; } if (haostr.Length>0) haostr = haostr.Substring(0, haostr.Length - 1); //取jb_txt值完毕 我也想要一份有没有人可以发一份给我[email protected] C#应用程序生成安装卸载包时问题 <在线等答复>C# CodeUI程序中网格如何定位交叉点 调查一下大家用的操作系统 急!实现类似windows鼠标选择多个文件的功能! C#动态生成图片验证码显示问题 [推荐HTML免费主页空间] 工具拦中的|是如何实现的? 下面的语句有什么作用? 一个C#小问题请各位高手帮帮忙! 谢谢!!!!! 请指教窗口问题? 求解送分!! 为什么返回的dataset 是空的???????? 请教:dataGridView中如何判断新增纪录时是否符合条件,如果不符合条件则取消新增的行??
<td width="25%" align="center" valign="middle" style="HEIGHT: 100px;">会员级别</td>
<td width="25%" align="center" valign="middle" ><asp:ListBox ID="jb_txt" SelectionMode="Multiple" runat="server" Width="70px" Height="200px" ></asp:ListBox></td>
<td width="25%" align="center" valign="middle" style="HEIGHT: 100px;">访问部门</td>
<td width="25%" align="center" valign="middle" ><asp:ListBox ID="bmmanage_txt" SelectionMode="Multiple" runat="server" Width="70px" Height="200px"></asp:ListBox></td>
</tr>cs代: jb_txt.DataSource = rs;
jb_txt.DataValueField = "jbid";
jb_txt.DataTextField = "jbname";
jb_txt.DataBind();
赋值: //给jb_txt赋值选择开始
string[] jbidarray= jbid.Split(','); //利用数组
foreach (ListItem temp in jb_txt.Items)
{
foreach (string temp2 in jbidarray) //如果用for()。则取jbidarray.Length
{
if (temp.Value == temp2)
temp.Selected = true;
}
}
//给jb_txt赋值选择完毕
//取jb_txt值
string haostr = "";
foreach (ListItem temp in jb_txt.Items)
{
if (temp.Selected)
haostr += temp.Value + "," ;
}
if (haostr.Length>0)
haostr = haostr.Substring(0, haostr.Length - 1);
//取jb_txt值完毕
有没有人可以发一份给我
[email protected]