积极答复者
工作中的问题

问题
-
大家帮我分析一下:列表页加上 if (!string.IsNullOrEmpty(txtLineName.Text.Trim()))
{
queryBuilder.AddFilter(TC_RouteInfo.TC_ROUTE_TABLE, TC_RouteInfo.LINENAME_FIELD, "like", txtLineName.Text.Trim());
}。。。。就实现了页面控制,怎么回事?
还有 dropdownlist的绑定项,加到字典里,使用 BindDropDownList(ddlstAccordingSpan, "AccordingSpan");就绑定完了,怎么回事?给我解答一下!转到定义 public void AddFilter(string tableName, string filterName, string filterOperator, int filterValue);都是这些东西,
protected void BindDropDownList(DropDownList dropDownList, string dictionaryCode);全是这个!!
在字典项里写字点,字典项编号 名称 描述 附属字段1 附属字段2 您可以 AccordingSpan001 小桥 <input class="imageButton" id="gvList_ctl02_btnSetOrderUp" name="gvList$ctl02$btnSetOrderUp" src="../../images/asc.gif" style="border-bottom:0px;border-width:10px;height:10px;border-border-right:0px;" title="上移" type="image" /><input class="imageButton" id="gvList_ctl02_btnSetOrderDown" name="gvList$ctl02$btnSetOrderDown" src="../../images/desc.gif" style="border-bottom:0px;border-width:10px;height:10px;border-border-right:0px;" title="下移" type="image" /> AccordingSpan002 其它 <input class="imageButton" id="gvList_ctl03_btnSetOrderUp" name="gvList$ctl03$btnSetOrderUp" src="../../images/asc.gif" style="border-bottom:0px;border-left:0px;width:10px;height:10px;border-top:0px;border-right:0px;" title="上移" type="image" /><input class="imageButton" id="gvList_ctl03_btnSetOrderDown" name="gvList$ctl03$btnSetOrderDown" src="../../images/desc.gif" style="border-bottom:0px;border-left:0px;width:10px;height:10px;border-top:0px;border-right:0px;" title="下移" type="image" />
在页面加上这句话就出来下来列表了!??
please verify my account
- 已编辑 lctk 2015年1月7日 4:55
答案
全部回复
-
您好,
>>public void AddFilter(string tableName, string filterName, string filterOperator, int filterValue);
>>protected void BindDropDownList(DropDownList dropDownList, string dictionaryCode);
这两个函数都应该是你工程中自定义的方法,我建议你运行的你的程序,然后再该处设置断点,按F11进入到该函数中去调试,看看是什么样执行的。
或者你可以把以上方法的具体实现的代码贴出来,对于哪段代码有问题,你可以指出来