/// <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; }
/// 读公司的名字
/// </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; }
解决方案 »
- 有个复制时候的问题,在线等
- 向数据库录入文件信息时,怎样在数据库中实现录入的文件自动编号???请高手指点!!!
- 如何得到XML某节点(node1)的子节点个数(客户端)
- 这样的关联如何做合适?
- 浏览时出现错误 大家帮帮忙吧 我都弄一天了
- 菜鸟想问:DataList1控件和Repeater1控件有什么区别,在什么时候用Repeater1,什么时候用DataList1控件呢??
- 我的VS2005中文版(就是180天的那个)找不到用ACCESS做身份验证.郁闷.有没有什么办法
- 请教:在javascript中怎样Bind一个Array数组作为数据源
- 用Request.QueryString接值的怪问题?
- 如何在ASP.net下实现 截图
- 验证两个TextBox为空的 问题!!!!!!!!
- 在VS2005调试正常,在IIS上调试出错,怎么回事??
rstr += "mm_menu_0704102145_0.addMenuItem('" + dst.Tables[0].Rows[i]["companey_name"].ToString() + "',\"window.open('../other/main.aspx?id=" + dst.Tables[0].Rows[i]["companey_id"].ToString() + "', '_blank');\");";
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');\");";