(高分)在线请教C#代码在哪里出错!
protected void getListTop(int classID) {
DataTable dt=listTop.getListTop(classID);
dt.Columns.Add("Ntitle");//增加一列Ntitle
string sql = "select * from NewsNotes where NewsclassID =" + classID.ToString();
DataTable dtxxx = new DataTable();
OleDbConnection con = new OleDbConnection(System.Configuration.ConfigurationManager.AppSettings["connectionstring"].ToString());
OleDbDataAdapter da = new OleDbDataAdapter(sql, con);
da.Fill(dtxxx);
if (dt.Rows.Count > 0)
{
DataRow dr = dt.Rows[0];
dr["Ntitle"] = dtxxx.Rows[0][2].ToString();//把Ntitle 从数据取出来!
this.RepeartListTop.DataSource = dt;
&nb
相关问答:
最近在做个网上商城,购物车模块,没有做过,麻烦各位帮忙说下大致说下思路,能发一份源码更好。小弟先谢过各位了;
QQ:413763818;
eamil:swebook@126.com
网上一大堆!
www.51aspx.com
去下 ......
在数据库中有张表,有id,name两列,id 是主键,没有设置自增属性,在程序中取出这张表放入datatable,在这个datatable中插入一条记录,当更新数据库时提示id列不能为空,请问该怎么解决?
给它一个值!!主键不能为空 ......
在C#中怎么把一个Excel保存成为一个Html文件?
如同在Excel中 文件——保存为——格式选为html 生成的文件 及文件夹(在多张sheet 时)
引用
excelapp.Workbooks[1].PublishObjects ......
急用。联系QQ:8775262,谢谢。
需要进行DllImport的地方直接写DLLImport.方法名。
如:DLLImport.GlobalAddAtom(……);
文件:UShare.pas
Delphi(Pascal) code:
unit UShare;
interface
uses Windows, Me ......
大虾们,我今天去面试,面试官问我,关于C# web访问性能问题,如果多个用户同时访问网站,这个问题要怎么解决,比如10000个用户同时访问,这个要怎么解决
用线程啊!缓存都行的啊
没搞懂什么意思.
如果一台服 ......