12-30-2010, 05:18 PM
參考資料 http://blog.xuite.net/tolarku/blog/25846275
DropDownList 使用 DataSourceID=SqlDataSource時
<asp:ListItem></asp:ListItem>功能就會失效
要加上 AppendDataBoundItems="true" 才能使用 <asp:ListItem>
TextBox 加上 AutoComplete 功能
http://blog.xuite.net/gibpzoob/blog/29219309
GridView 資料轉檔到 Excel [C#]
DropDownList 使用 DataSourceID=SqlDataSource時
<asp:ListItem></asp:ListItem>功能就會失效
要加上 AppendDataBoundItems="true" 才能使用 <asp:ListItem>
程式碼:
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1" DataTextField="company_name" DataValueField="company_name" AppendDataBoundItems="true" Height="24px" Width="120px">
<asp:ListItem></asp:ListItem>
</asp:DropDownList>
TextBox 加上 AutoComplete 功能
http://blog.xuite.net/gibpzoob/blog/29219309
GridView 資料轉檔到 Excel [C#]