How would these be changed to ASP?
if($FTGCHECKBOXFIELDNAME == "VALUE1") {
$ErrorPage = str_replace('value="'.$value_val.'"', 'value="'.$value_val.'" CHECKED', $ErrorPage);
}
$valuelist = array('VALUE1', 'VALUE2', 'VALUE3');
foreach($valuelist as $value_val) {
if($FTGSELECTFIELDNAME == $value_val) {
$ErrorPage = str_replace('"'.$value_val.'"', '"'.$value_val.'" SELECTED', $ErrorPage);
break;
}
}