HeaderTemplate和FoorterTemplate不支持数据绑定

解决方案 »

  1.   

    建议你别把DropDownList非放在HeaderTemplate中了
      

  2.   

    那为什么我的TextBox就能够在HerderTemplate中绑定,而DropDownList不行?
    TextBox的绑定方法:
    <asp:textbox id="TextBox3" runat="server" Width="52px" BorderWidth="0" Text="<%# pageInfoSourse %>">23/345</asp:textbox>在Page_Load()中初始化pageInfoSourse即可。
      

  3.   

    试试在DataList_ItemDataBound事件中,用.FindControl(DropDownList的ID),再进行数据的加载.
      

  4.   

    同意liangshaojun(君猎) ( ) 
      

  5.   

    试试在DataList_ItemDataBound事件中,用.FindControl(DropDownList的ID),再进行数据的加载.
      

  6.   

    我试了DataList_ItemDataBound事件中,用.FindControl(DropDownList的ID),再进行数据的加
    也不行