For validation
<asp:button id="btnSave" text="Save" onclientclick="return ValidateFun();" runat="server" onclick="btnSave_Click" xmlns:asp="#unknown" />
Javascript:
<script>
var ValidateFun = function ()
{
var listbox = document.getElementById('<%= Select49.ClientID%>');
var count = listbox.selectedOptions.length;
if (count == 0)
{ alert('Please select !!'); return false; }
return true;
}
</script>