non si disdegna di sapere quale sia l'analoga funzione in asp
if Request.ServerVariables("http_user_agent")="portal mmm" or
Request.ServerVariables("http_user_agent")="SonyEr icssonZ1010" then

......

end if

E se fossero palmari?
Basta sapere lo user agen e aggiungerlo all'if