使用代码后置可以避免很多错误
写在前台的话
string strId = Request.QueryString["personid"];
必须在page_load里面

解决方案 »

  1.   

    試試 Request.Params("personid")
      

  2.   

    xhan2000(popeye.net)   ,foxbuilder(小江) 
    两位的我都试过了,都不行。
    结果是在我的page_load里面,无法取得strId 的值,
    出错在  myadapter.Fill(myds,"theplan");//里面没有数据。
      

  3.   

    ="select id,taskday,title from leadertask where personid=strId";
    将这句改为="select id,taskday,title from leadertask where personid=@strId";
    然后定义sql参数增加!