如何让 ht.Add(odr["typename"].ToString()这句输出的字符串粗体显示呀??
解决方案 »
- 插入数据编号问题
- 求一个正则表达式?
- 如何在ie 中直接读取客户端的word或者excel文档,若用COM方式,版本问题如何解决呢?
- 用texbox如何按格式读出html文本?
- 在TreeView中怎么才能让某个(几个)TreeNode根据用户权限显示或隐藏了?
- ~~~~~~数据库与数据库的数据互导~~~~~~
- 一个这样的asp.net+sql2005数据库的网站值多少钱呢,请各位来评评哦
- C#创建虚拟目录 求助!!!同一个问题,再开一贴
- GridView分页问题
- 哈哈~~ insert into要我的命啦。\
- 有关URL重写的问题(高手进来看哈,在线等哦)
- 将动态生成的表中数据按 hits 字段降序排序,且只取出前 10条数据,详情请进! 100 分
{
OleDbConnection odc = new OleDbConnection(getconnstr());
odc.Open();
string selstr = "select * from ptype where pid=0 and ppid=0";
OleDbCommand odd = new OleDbCommand(selstr, odc);
OleDbDataReader odr = odd.ExecuteReader();
ArrayList ht = new ArrayList();
while (odr.Read())
{
ht.Add(odr["typename"].ToString());
OleDbConnection odc1 = new OleDbConnection(getconnstr());
odc1.Open();
string selprostr = "select * from product where pid="+odr["id"].ToString ()+ " order by pronum";
OleDbCommand odd1 = new OleDbCommand(selprostr, odc1);
OleDbDataReader odr1 = odd1.ExecuteReader();
try
{
while (odr1.Read())
{
ht.Add("---" + odr1["pronum"].ToString());//, "productdetail.aspx?id=" + odr1["id"].ToString());
}
}
catch(Exception ee
{ Response.Write(ee.Message); }
finally
{
odr1.Close();
odc1.Close();
}
}
odr.Close();
odc.Close();
city.DataSource = ht;
city.DataBind();
}
就用:
city.font.blod=true;
就可以。
但是领导要求只有大类是粗体,我就不知道了~~