Emptying dropdown lists

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
 
Back
Top