代码太长太乱了,没心机看,本来VB的代码就比C#的乱几倍了

解决方案 »

  1.   

    错误信息:
    Compilation Error 
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: BC30390: 'car.test2.Private Function GetDataTable() As System.Data.DataTable' is not accessible in this context because it is 'Private'.Source Error: Line 24:  <HeaderTemplate>
    Line 25:  玻珇嘿<br>摸:
    Line 26:  <asp:DropDownList id="DDList" runat="server" AutoPostBack ="True" DataSource=<%# GetDataTable() %>   DataTextField="CategoryName" DataValueField="CategoryID" OnSelectedIndexChanged="DDList_SelectedIndexChanged"></asp:DropDownList>
    Line 27:  </HeaderTemplate>
    Line 28: 
     Source File: E:\car\car\test2.aspx    Line: 26
      

  2.   

    <HeaderTemplate>
    能绑定数据吗??