读书人

这个脚本出有关问题了

发布时间: 2012-03-13 11:21:10 作者: rapoo

这个脚本出问题了
/// <summary>
/// 读公司的名字
/// </summary>
private string readcom()
{

SqlConnection con = new SqlConnection( "uid=sa;server=.;pwd=337024;database=zhuoyue ");
SqlDataAdapter cmd = new SqlDataAdapter( "select * from zuoyue_companey ",con);
DataSet dst = new DataSet();
cmd.Fill(dst);
string rstr = " ";
for (int i = 0; i < dst.Tables[0].Rows.Count; i++)
{

rstr += "mm_menu_0704102145_0.addMenuItem( ' " + dst.Tables[0].Rows[i][ "companey_name "] + " ',\ "window.open( '../other/main.aspx?id= " + dst.Tables[0].Rows[i][ "companey_id "] + " ', '_blank ');\ "); ";

}


return rstr;

}

[解决办法]

[解决办法]

[解决办法]

读书人网 >asp.net

热点推荐