string str = ""; foreach (ListItem item in cblbox.Items)
{
if (item.Selected)
{
str = str + item.Value + ",";
}
} if (str.Length > 0)
{
str = str.Remove(str.Length - 1);
} return str;其中的 if (str.Length > 0)
{
str = str.Remove(str.Length - 1);
}
什么意思??
{
if (item.Selected)
{
str = str + item.Value + ",";
}
} if (str.Length > 0)
{
str = str.Remove(str.Length - 1);
} return str;其中的 if (str.Length > 0)
{
str = str.Remove(str.Length - 1);
}
什么意思??
解决方案 »
- 动态生成form的问题
- 使用odbc连接数据库 是不是要求服务器与数据库必须安装在同一台主机中,也就是odbc不支持internet
- 大哥!!!高手们救命啊!!!关于DataGrid实例问题.
- Forms验证的问题
- list<>.Sort() 怎么用
- 关于多个用户访问同一个ASPX页面上的某一个对象或变量时的问题
- 无法打开物理文件 错误 怎么解决
- 操作必须使用一个可更新的查询??急!!附源码。。。
- 数据库用户连接过多的问题!!!!
- 我是个中专学校的教师,现在学生要开asp,我应该给他们教asp还是asp.net
- 发一个简单实用的内容分页(分页符),直接贴代码完事,无需修改型
- 加分求助了. ASP.NET日期显示问题
将最后的逗号去掉
if (item.Selected)
{
str = str + item.Value + ",";
}
}