Hi,
your problme is in this line
OnClientClick="javascript:selectedItems();return false;"
if "return false" is execute then it would never submit and OnClick(which is sever side would never executed).
"return false" statement should be conditional.
change the code like this:
OnClientClick="javascript:selectedItems();"
and in the defination of selectedItems() javascript function
if (selectedItemsCount == 0)
{
alert("Select at least one item!");
return false;
}
else
{
return true;
}
Hope that helps,
Thanks
Arindam D Tewary,