(高分)在线请教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
相关问答:
有个winform程序,使用c#+mysql,需要在一个窗体设置mysql自动删除功能,包括自动删除多少天之前的数据以及是否开启自动删除功能,我程序退出后,还怎么控制Mysql自己删除啊?是不是要用mysql的event来实现?c#可以调用mysq ......
最近在做个网上商城,购物车模块,没有做过,麻烦各位帮忙说下大致说下思路,能发一份源码更好。小弟先谢过各位了;
QQ:413763818;
eamil:swebook@126.com
网上一大堆!
www.51aspx.com
去下 ......
21cn的邮箱,在outlook配置后可以正常收发邮件,可是我写在C#中就不行,换成其它邮箱,163很早注册的。可以发送。查了很久,没有找到原因,请高手帮忙解答。。。小弟,谢了。。代码如下:
private void SendMail ......
急用。联系QQ:8775262,谢谢。
需要进行DllImport的地方直接写DLLImport.方法名。
如:DLLImport.GlobalAddAtom(……);
文件:UShare.pas
Delphi(Pascal) code:
unit UShare;
interface
uses Windows, Me ......
<?xml version="1.0" encoding="utf-8"?>
<bcaster>
<item item_url="images/nei1_03.gif" link="http://www.baidu.com" />
<item item_url=& ......