CheckBoxList 控件返回数据库如何设定选中项
解决方案 »
- 如何将LISTVIEW控件里选中的一行存入数据库
- 很诡异啊,高手帮帮忙。access数据库update更新不成功
- URL传参数时中文乱码
- 急救!!!c#中格式转换问题。
- 如何把DateTime型的日期变成 Apr10这样的string
- C#能否将字符串解析成指令并执行,等同于JSCript中的eval()函数
- C#中怎样象资源管理器那样焦点在listview,但是treeview中还是保留焦点
- 【stackoverflow上没有得到关注和解答,回CSDN试试,懒得翻译回中文,凑合看看吧!你们也该练习下英语了!】
- Filter过滤文件格式问题
- 帮帮我!C#学的不好
- 找真正的高手
- 关于获得鼠标位置 如何获得鼠标相对于窗口的位置?
#region WebSite
private void GetProductWebSite(long p_ID, CheckBoxList cbl)
{
if (cbl == null || cbl.Items.Count == 0) return;
int temp = 0;
for (int i = 0; i < cbl.Items.Count; i++)
{
temp = 0;
temp = SQLParser.IntParse(cbl.Items[i].Value); ;
if (temp > 0) { cbl.Items[i].Selected = true; }
}
}
#endregion #region WebSite
private void SetProductWebSite(long p_ID, CheckBoxList cbl)
{
if (cbl == null || cbl.Items.Count == 0) return;
for (int i = 0; i < cbl.Items.Count; i++)
{
if (cbl.Items[i].Selected)
{
SiteID = SQLParser.IntParse(cbl.Items[i].Value);
}
}
}
#endregion