解决方案 »
- 高手们问一个关于aspchart控件的问题
- listview控件编辑问题
- lucene.net搜索数据库的东西
- “/”应用程序中的服务器错误.不允许有子节点。<providerOption name="CompilerVersion" value="3.5"/>
- 从Item模式点“编辑”转到Edit模式后,找不到控件,求解。
- 调用存储过程的奇怪错误~~~
- 请问在gridview的自定义模版里如何邦定?
- datagrid问题:我想在datagrid中修改数据并保存到数据库中,datagrid的数据源选择datareader还是dataset好呢?
- 怎样在客户端得到页面上的dropdownlist当前选中的项目的文字?
- status: 500; statusText: Internal Server Error
- 请问ASP.NET是如何处理代码安全
- asp.net导航问题
得到的结果 就会是 这种13800138000,13750005000,13800000000
你在用 string[] temp= split(',');截取 变成数组看你选了什么值 就组合成条件 传过去
像这样
写 string sql_where="";
if(temp != null){for(int i=0;i<temp.length;i++)
{
if(i==0)
sql_where +="Department='temp[i]'" //第一个不要加orsql_where +="or Department='temp[i]'";}}
//在判断 性别 有这样组合上去就可以了Datatable getMobile(where)
{
sql =" select MobilePhone from Teacher where"+where ;```````````
}
有什么方法可以最方便地使获取出来的MobilePhone集合变成"号码1,号码2,号码3,号码4"的格式?
谢谢~
for (int i = 0; i < this.Repeater1.Items.Count; i++)
{
CheckBox cbx = (CheckBox)Repeater1.Items[i].FindControl("cbDepartment");
if (cbx != null)
{
if (cbx.Checked)
{
....
}
}
}