当前位置: 代码迷 >> ASP.NET >> 这个脚本出有关问题了
  详细解决方案

这个脚本出有关问题了

热度:8893   发布时间:2013-02-25 00:00:00.0
这个脚本出问题了
///   <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;

        }

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

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

------解决方案--------------------------------------------------------
  相关解决方案