请问如何用listbox的Tag绑定数据?
清高给我看看下面的代码!
MarketInfo.DSright.TRolerightsRow newRow=this.dSright1.TRolerights.NewTRolerightsRow();
newRow.BeginEdit();
newRow.userId=this.userid;
newRow.moduleId=(int)this.lbUright.SelectedValue;
newRow.moduleName=this.lbUright.Text;
newRow.tbName=(string)this.lbUright.Tag;
newRow.EndEdit();
this.dSright1.TRolerights.AddTRolerightsRow(newRow);
this.dSright1.AcceptChanges();
this.sqlDAUright.Update(this.dSright1);
怎么出错?
清高给我看看下面的代码!
MarketInfo.DSright.TRolerightsRow newRow=this.dSright1.TRolerights.NewTRolerightsRow();
newRow.BeginEdit();
newRow.userId=this.userid;
newRow.moduleId=(int)this.lbUright.SelectedValue;
newRow.moduleName=this.lbUright.Text;
newRow.tbName=(string)this.lbUright.Tag;
newRow.EndEdit();
this.dSright1.TRolerights.AddTRolerightsRow(newRow);
this.dSright1.AcceptChanges();
this.sqlDAUright.Update(this.dSright1);
怎么出错?
解决方案 »
- C#中怎么读取ACCESS中的日期列的值
- 引用第三方控件后打包生成的问题
- 请教一个string转float的问题,谢谢。
- 如何建立.net 3.0项目/网站?
- 调用OCX的问题,C#或VB。NET都可以在添加到工具栏里。但调用出错。
- HttpWebRequest获取到一个html文本怎样获取其中的值
- 求解答dataGridView问题
- 数据显示问题:如何不用GRIDVIEW显示数据库数据,最好是ASP显示的方式,但是对库的操作是在.CS里的.谢谢!!!
- 在c#中创建ASP.NET Web应用程序时出现的问题?
- 有什模方法在用.net带的msdn是不用放光盘一会1号盘一会2号盘烦死了(已全部安装)
- 请各们大虾帮忙,关于.net显示中文的,谢谢!
- 如何在下面代码里判断num是不是不小于0的正整数,并且不大于Session["num2"]的值?
比如:
try
{
this.sqlDAUright.Update(this.dSright1); }(Exception ex)
{
Console.WriteLine( ex.ToString()); <--------设置断点,看看输出的是什么
}
比如:
上一篇发错了。:( try
{
this.sqlDAUright.Update(this.dSright1); }
catch(Exception ex)
{
Console.WriteLine( ex.ToString()); <--------设置断点,看看输出的是什么
}