your better off with javascript on this, try this for effect:
function checkFields()
{
var myForm = document.forms[0];
if ((myForm.txtField.value!='') && (myForm.lstbox.value !=''))
{
alert('Error Message');
return false;
}
return true;
}
just call this function on your on submit event.
here's an additional tip:
add this to your textbox:
onkeypress="javascript: document.forms[0].lstbox.value='';"
and inside your listbox:
onchange="javascript: document.forms[0].txtbox.value='';"
As you continue on, you'll find that this are pretty simple codes but hope it helps you today.