add reference项目中,project一项是空的。

解决方案 »

  1.   

    最好别这么做, 要不你的ascx还有什么意义, 它本身就是独立控件嘛你那样做还不如做个单独的页面加一个DropDownList
      

  2.   

    add the operations to the user control, and in your aspx, call these operations
      

  3.   

    最好别这么做, 要不你的ascx还有什么意义, 它本身就是独立控件嘛你那样做还不如做个单独的页面加一个DropDownList???
    我觉得在这个应用上,也的确可以把acsx理解为单独的页面+DropDownList>
    编译过了,
    我直接用了using,但是也没有办法引用这个DropDownList对象。
    atian稍微详细点说一下。
      

  4.   

    saucer请详细说,这个user control我已经放在aspx里面的,也有相应的作用。
    我的意思是我要在aspx里面引用这个user control里面的一个DropDownList对象。
    改变一些它的属性。
    比如在aspx里面
    DropDownList.Items[2].Selected=true;
      

  5.   

    in your user control, add this methodpublic void SetSelection(int i)
    {
       DropDownList.Items[i].Selected=true;
    }
    then in your aspx, doYourUserControlID.SetSelection(2);