Maintain Added List Item while binding from datasource
        Posted  
        
            by Kronass
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Kronass
        
        
        
        Published on 2010-05-24T16:14:50Z
        Indexed on 
            2010/05/24
            16:21 UTC
        
        
        Read the original article
        Hit count: 407
        
Hi, I have a drop down list, and I added some items in it as follows
        <asp:DropDownList ID="ddlInsAuther" runat="server" 
            DataSourceID="ObjectDataSourceInsAuthers" DataTextField="AutherName" 
            DataValueField="AutherID">
        <asp:ListItem Value="-1">No Authers</asp:ListItem>
        </asp:DropDownList>
And in Datasource
        <asp:ObjectDataSource ID="ObjectDataSourceInsAuthers" runat="server" 
            SelectMethod="GetAll" TypeName="MyProject.BusinessLayer.AuthersFactory">
        </asp:ObjectDataSource>
When it loads it clears the list and loads the new items, I don't want to make a custom binder on page load, how can I maintain my added items in the list while binding from datasource?
© Stack Overflow or respective owner