There is a similar function that you can use with asp but it depends what flavor you are using, here are examples in VBscript and JS:
VBscript
if WA_eCart_InCart(WA_eCart, "123") then
'do something
end if
JS
if(WA_eCart_InCart("123")){
// do something
}