bggzrznew.aspx?bm=<%# Request.QueryString["bm"] %>???

解决方案 »

  1.   

    bggzrznew.aspx?bm=<%=Request.QueryString["bm"]%>
      

  2.   

    Request.QueryString["bm"].ToString()看看不过你这段代码不太好,cn.Close()永远不被执行!!建议放到try{}catch{}finally{}
    的finally{}里!!
      

  3.   

    String strsql="select * from bm where name='"+Request.QueryString["bm"]+"'";
    改成
    String strsql="select * from bm where name='"+Request["bm"].ToString()+"'";
      

  4.   

    String strsql="select * from bm where name='"+Request.QueryString["bm"].ToString()+"'";