Posts
391
Comments
137
Trackbacks
0
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
No comments posted yet.

Post Comment

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