asp.net - Empty DropDownList on Page Load -



asp.net - Empty DropDownList on Page Load -

i have dropdownlist beingness populated items coming through databinding wcf webservice. however, whenever first start page first item in list gets selected automatically, while start blank. perhaps solve adding blank item on top of list's items, don't want blank item show 1 time users clicks dropdownlist. can accomplish in easy way?

ddl.insertat(0, new item('','0')); ddl.attributes["onclick"] = "if(this[0].value=='0') this.remove(0);";

asp.net wcf data-binding drop-down-menu

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -