Posts
247
Comments
67
Trackbacks
4
Einer Dropdownliste nach dem Databind() nachträglich Items hinzufügen

In ASP.NET 2.0 gibt es jetzt die Möglichkeit einer Dropdownliste nach dem Databind() nachträglich Items hinzufügen.

Hierzu gibt es jetzt die Eigenschaft "AppendDataBoundItems", wenn diese auf "true" gesetzt ist, dann kann man nach dem Databind() der Dropdownliste noch Items hinzugefügt werden:

<asp:DropDownList AppendDataBoundItems="true" ID="kategorie" runat="server">
<asp:ListItem Text="Bitte wÃhlen" Value=0></asp:ListItem>
</asp:DropDownList>

 

posted on Thursday, February 02, 2006 3:07 AM Print
Comments
Gravatar
# DropDownList - Nach DataBind() einen zusätzlichen Eintrag hinzufügen
www.aspnetzone.de
4/9/2008 10:27 PM

Post Comment

Title *
Name *
Email
Url
Comment *  
Please add 6 and 6 and type the answer here: