日期:2014-05-18  浏览次数:20400 次

这个脚本出问题了
///   <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;

        }

------解决方案--------------------

------解决方案--------------------

------解决方案--------------------