Aug 24, 2004 #1 M mike55 Contributor Joined Mar 26, 2004 Messages 727 Location Ireland Is it possible to empty a dropdown list in one command??
Aug 24, 2004 #2 E eramgarden Contributor Joined Mar 8, 2004 Messages 579 clear() , i think. ddl.controls.clear or something like that.
Aug 24, 2004 #3 P PWNettle Centurion Joined Jun 2, 2003 Messages 128 Location Phoenix, AZ In code behind: Code: // C# but it's the same without the semi-colon in VB.Net ddlWhatever.Items.Clear(); In client side (javascript): Code: <script language="javascript"> document.all.ddlWhatever.length = 0; </script> Paul
In code behind: Code: // C# but it's the same without the semi-colon in VB.Net ddlWhatever.Items.Clear(); In client side (javascript): Code: <script language="javascript"> document.all.ddlWhatever.length = 0; </script> Paul
Aug 24, 2004 #4 A Arch4ngel Senior Contributor Joined Mar 22, 2004 Messages 940 Location Montreal, QC In server-side if the control is bound : C#: ddl.DataSource = null;