I am attempting to do server-side validation on a select box that was created and populated client-side. The following code is what I thought should work. I'm attempting determine if the box contains options and if so, how many. The box may not be populated at all and the options will never be selected. I get the error message 'Request.Form(...).0.value' is null or not an object. I realize I'm doing something wrong with the array object...not sure what though. Thanks in advance!!
var temp=Request.Form("skills2"[0].value
if( temp > 2 || temp < 0 ){
alert('You must select at least on skill, but no more than 3')
return false;
}
var temp=Request.Form("skills2"[0].value
if( temp > 2 || temp < 0 ){
alert('You must select at least on skill, but no more than 3')
return false;
}