Archive for December, 2009

Add Item to DropDownList w/ DataSource

If you’re having problems adding an item to a dropdownlist because that ddl has a Datasource then this should work. You need to set AppendDataBoundItems=”true” to add items to a datasource bound DropDownlist. <asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="SqlDataSource1"DataTextField="Short_Name" DataValueField="Short_Name" Width="150px" AppendDataBoundItems="true" > <asp:ListItem Value="" Selected="True">Select an item</asp:ListItem> </asp:DropDownList> Technorati Tags: code, VB.NET

A Day of Array

I knew today’s online app would be a pain, because I more/less learned .net from playing around there are many things that I’ve skipped because I haven’t needed them. Array’s is one of those things, I know their a huge part of working with data but so far I’ve only had to read them, loop [...]