what is the data type for datetimevalue? if it is a DateTime, you need to dodatevalue=this.Request.QueryString["date"].ToString(); 
if (datevalue != null)
{
   try
   {
myComponent.datetimevalue = DateTime.Parse(datevalue); 
myComponent.FillDataSet(dataSet_qt1);
Repeater_qt.DataBind();
myComponent.FillDataSet(dataSet_sumqt1);
Repeater_sumqt.DataBind();
Label_date.DataBind();
    }
    catch(Exception ex)
    {
         Response.Write("*****" + ex.Message + "****");
    }
}

解决方案 »

  1.   

    saucer(思归, MS .NET MVP)先生:
        我的问题仍没有得到解决,我的问题说起来其实很简单,就是想知道如何将一个页面传递的参数在组件初始化时传进去,以实现组件内的调用。并请实例试验说明。谢谢!!!
        请各位高手帮忙,如分不够,立即加分。
        急急急!!!!!!!!!!!!!!!我一直在线等待。
      

  2.   

    >>>组件初始化时传进去it is not possible to pass values into the constructor of controls, since the controls are created by the system, try to set the control's property with the query string value in Page_Init
      

  3.   

    谢谢,我试一试,如不行,我只有更改程序了,因为我在组件里利用oleDbDataAdapter作了 很多表的数据查询,包括求和查询等,没办法将查询条件传进去,所以